Stack Sizer
תכנון משאבים ל-stack של אפליקציות self-hosted, ממקורות רשמיים.
עומס ואפשרויות
Keycloak
v1.0.0עומס
עד 10,000 משתמשים; שיאים של 6 התחברויות בסיסמה, 48 רענוני token ו-12 client credential grants בשנייה.
אפשרויות
אין אפשרויות שמשנות את המשאבים של האפליקציה הזו.
משאבים מומלצים
דרישות האפליקציות + baseline של המערכת + מרווח בטיחות. לא מתווסף שום דבר אחר, ושום מספר לא מעוגל לגודל של מכונה.
vCPU 4.02, RAM 5.1 GiB, דיסק 18.055 GiB
vCPU4.02
RAM5.1GiB
דיסק18.055GiB
פירוט
| שורה | מקור השורה | vCPU | RAM (GiB) | דיסק (GiB) | מקורות |
|---|---|---|---|---|---|
| Keycloak | Keycloak server · עומס בינוני | 2.25 | 2 | 1 | 12345 |
| Keycloak | PostgreSQL · עומס בינוני | 1 | 1 | 6.5 | 6789101112121314 |
| baseline של המערכת | מערכת הפעלה, container runtime (Docker Engine, containerd), יומני מערכת (journald), ועוד יומנים ל-2 containers | 0.1 | 1.25 | 8.2 | 151617181920 |
| מרווח בטיחות | vCPU 20%, RAM 20%, דיסק 15% מהאפליקציות + baseline | 0.67 | 0.85 | 2.355 | 2116221923 |
| סה״כ מומלץ | 4.02 | 5.1 | 18.055 |
מקורות
- Keycloak Docs: Concepts for sizing CPU and memory (1250 MB base; 1 vCPU per 15 password logins/s, per 120 refreshes/s, per 120 client credential grants/s; 150% CPU headroom) (Keycloak, נקרא ב-14 באוק׳ 2026)
- keycloak repository: perf_recommendations.adoc at 26.8.1 (database: 1400 write IOPS and 0.35 to 0.7 vCPU per 100 login/logout/refresh per second; idle 0.3 vCPU) (Keycloak, נקרא ב-14 באוק׳ 2026)
- Keycloak Docs: Running Keycloak in a container (plain start re-runs the build at every start; KC_BOOTSTRAP_ADMIN_*; heap 70% of the memory limit, 2 GB recommended for small production) (Keycloak, נקרא ב-14 באוק׳ 2026)
- keycloak repository: kc.sh at 26.8.1 (in a container, JAVA_OPTS_KC_HEAP defaults to MaxRAMPercentage=70 and InitialRAMPercentage=50; a set value replaces it) (Keycloak, נקרא ב-14 באוק׳ 2026)
- Quay manifest of quay.io/keycloak/keycloak:26.8.1 (linux/amd64): 4 layers, 265,677,312 B compressed; config User 1000, no Healthcheck (Keycloak, נקרא ב-14 באוק׳ 2026)
- PostgreSQL 18 documentation: 19.4 Resource Consumption (Keycloak, נקרא ב-10 באוק׳ 2026)
- PostgreSQL 18 documentation: 19.3 Connections and Authentication (Keycloak, נקרא ב-10 באוק׳ 2026)
- PostgreSQL 18 documentation: 19.10 Vacuuming (autovacuum settings) (Keycloak, נקרא ב-10 באוק׳ 2026)
- PostgreSQL 18 documentation: 19.5 Write Ahead Log (max_wal_size) (Keycloak, נקרא ב-10 באוק׳ 2026)
- PostgreSQL 18 documentation: 51.2 How Connections Are Established (Keycloak, נקרא ב-10 באוק׳ 2026)
- Docker Official Image postgres: documentation (docker-library/docs) (Keycloak, נקרא ב-10 באוק׳ 2026)
- Docker Hub: library/postgres tag 18.6 (compressed image sizes) (Keycloak, נקרא ב-10 באוק׳ 2026)
- Keycloak Docs: Configuring the database (PostgreSQL 18.x to 14.x supported, tested with 18; db-url, db-username, db-password; connection pool) (Keycloak, נקרא ב-14 באוק׳ 2026)
- Keycloak Docs: All configuration (bootstrap-admin-username temp-admin, db-pool-max-size 100, http-enabled false, cache ispn, health-enabled false, management port 9000) (Keycloak, נקרא ב-14 באוק׳ 2026)
- Ubuntu Server: System requirements (מדיניות sizing, נקרא ב-10 באוק׳ 2026)
- Google Kubernetes Engine: About GKE node sizing (מדיניות sizing, נקרא ב-10 באוק׳ 2026)
- ANAROQ measurement: dockerd and containerd at rest (Ubuntu 24.04, Docker 29.8.2) (מדיניות sizing, נקרא ב-10 באוק׳ 2026)
- Docker Community Forums: Docker resource usage & overhead (מדיניות sizing, נקרא ב-10 באוק׳ 2026)
- journald.conf(5), Ubuntu Manpages (מדיניות sizing, נקרא ב-10 באוק׳ 2026)
- Docker Docs: Local file logging driver (מדיניות sizing, נקרא ב-10 באוק׳ 2026)
- AWS Compute Optimizer: Rightsizing recommendation preferences (מדיניות sizing, נקרא ב-10 באוק׳ 2026)
- Kubernetes: Node-pressure Eviction (מדיניות sizing, נקרא ב-10 באוק׳ 2026)
- mke2fs(8), Ubuntu Manpages (מדיניות sizing, נקרא ב-10 באוק׳ 2026)
Deployment Spec
הפכו את התוצאה לקישור שאפשר לשמור או לשתף. הכול נמצא בקישור, ושום דבר לא נשלח אלינו.
מזהה image קצר באותיות קטנות, למשל ubuntu-24.04.