You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/
PostgreSQL Server v15.2 New Database and User creation.
PostgreSQL Server v15.2 SSL set up pg_hba.conf
Django v4.1.2 <> PostgreSQL Server v15.2 connection django.db.backends.postgresql
Django v4.1.2 <> PostgreSQL Server v15.2 SSL transactions SSLMODE=require
Django v4.1.2 <> PostgreSQL Server v15.2 ETL python manage.py xloader
Issues
Public Link running only once then error 503 upstream connect error or disconnect/reset before headers. reset reason: connection termination 🙅 (Solved on 2023, March 24th).
Outdated Python 🐍 versions in containerized app.
End of March, 2023 👀
PostgreSQL server v14.5 version bump to v15.2
Django v4.1.2 version bump to v4.1.7
Python version bump to v3.11.2
TODO
Python 3.11.2 - Always run latest stable release of Python 🐍 in containerized app (at least Django).
PgBouncer - 1.18.0 Dec 12, 2022. Install, setup with PostgreSQL Server v15.2.
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)
app-thalassa.cloud.sdu.dk running in DEBUG=False with cache activated and collectstatic.
pg_hba.conf
os.environ.get("DBHOST")
DEBUG=True
SECURE_SSL_REDIRECT = True
fails 👉 should not be declared insettings.py
🚫SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
✅django.db.backends.postgresql
SSLMODE=require
makemigrations
&migrate
create_superuser
CSRF_COOKIE_SECURE = True
andCSRF_USE_SESSIONS = True
DEBUG=False
ALLOWED_HOSTS
set to['localhost', 'app-627236-0.cloud.sdu.dk', 'app-githubbing.cloud.sdu.dk']
collectstatic
whitenoise
django.core.cache.backends.filebased.FileBasedCache
python manage.py xloader
.pg_hba.conf
django.db.backends.postgresql
SSLMODE=require
python manage.py xloader
Issues
End of March, 2023 👀
v15.2
v4.1.7
v3.11.2
TODO
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 📝
The text was updated successfully, but these errors were encountered: