Validate UCloud as a stable cloud service to serve Python Django v4.1.2 web app coupled with a PostgreSQL Server
Provided UCloud is up and running 👉 https://status.cloud.sdu.dk/

app-thalassa.cloud.sdu.dk running in DEBUG=False with cache activated and collectstatic.
Issues
End of March, 2023 👀
TODO
Pseudo UCloud localhost mode
Pseudo UCloud localhost mode = when Django app is running on https://app-{job-id}-0.cloud.sdu.dk interface with no Public link connected.
- Pseudo UCloud localhost execution is cookie restricted to the current browser session 👉 cannot be shared with another browser session; an error 403 is raised: same browser in Private mode will fail, another browser on the same computer will fail.
- Public link and Pseudo UCloud localhost mode are exclusive to one another.
- Public link resources cannot be shared among users 👉 one user has to launch a job and attach a Public link he "owns", he cannot attach a Public link created by another user.
- As an extra-check/validation, UCloud does check your Public link availability on creation for a similar one already existing created by someone else.
Containers overview
March 2022 with u1-standard-8 machine.
| Environment |
set -eufo pipefail |
${USER} |
Python 3.11.0 |
apt update |
Creation |
Age |
| Terminal Debian 0.9.0 |
❌ |
✅ |
3.6.8 ❌ |
|
28/12/2022 |
75 days |
| Terminal Ubuntu 0.20.0 |
❌ |
✅ |
3.10.7 ❌ |
960 sec |
28/12/2022 |
75 days |
Terminal Ubuntu 0.21.0 (Linux version 5.4.228.el8 Ubuntu 22.10) |
❌ |
✅ |
3.10.7 ❌ |
233 sec |
21/03/2023 |
0 days |
| Terminal CentOS 0.8.0 |
❌ |
✅ |
3.6.8 ❌ |
|
14/06/2022 |
272 days |
PostgreSQL Server v14.5 (Linux v5.4.228.el8 Debian) |
✅ |
❌ |
❌ |
218 sec |
12/10/2022 |
152 days |
PostgreSQL Server v15.2 (Linux v5.4.228.el8 Debian 6.1.2023) |
✅ |
❌ |
3.9.2 ❌ |
24 sec |
16/03/2023 |
4 days |
Django v4.1.2 4.1.2 (Linux v5.4.228.el8 Debian) |
✅ |
❌ |
✅ |
962 sec |
08/11/2022 |
125 days |
Incident review
Health Page Status 👉 https://status.cloud.sdu.dk/
| Year |
Incidents (nb) |
| 2023 |
9 |
| 2022 |
18 |
Service Level Objective (SLO) for UCloud Compute >= 85% for Monthly Uptime Percentage.
Notes 📝
- Aalborg (AAU) presentation of UCloud 🎓
app-thalassa.cloud.sdu.dk running in DEBUG=False with cache activated and collectstatic.
pg_hba.confos.environ.get("DBHOST")DEBUG=TrueSECURE_SSL_REDIRECT = Truefails 👉 should not be declared insettings.py🚫SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")✅django.db.backends.postgresqlSSLMODE=requiremakemigrations&migratecreate_superuserCSRF_COOKIE_SECURE = TrueandCSRF_USE_SESSIONS = TrueDEBUG=FalseALLOWED_HOSTSset to['localhost', 'app-627236-0.cloud.sdu.dk', 'app-githubbing.cloud.sdu.dk']collectstaticwhitenoisedjango.core.cache.backends.filebased.FileBasedCachepython manage.py xloader.pg_hba.confdjango.db.backends.postgresqlSSLMODE=requirepython manage.py xloaderIssues
End of March, 2023 👀
v15.2v4.1.7v3.11.2TODO
Pseudo UCloud localhost mode
Containers overview
(Linux version 5.4.228.el8 Ubuntu 22.10)
(Linux v5.4.228.el8 Debian)
(Linux v5.4.228.el8 Debian 6.1.2023)
(Linux v5.4.228.el8 Debian)
Incident review
Service Level Objective (SLO) for UCloud Compute >= 85% for Monthly Uptime Percentage.
Notes 📝