two api-replicas with LB-nginx
This commit is contained in:
@@ -0,0 +1,149 @@
|
||||
{
|
||||
"started_at_utc": "2026-11-04T13:59:48.203542+00:00",
|
||||
"base_commit": "f20b751207ed9948bfcdab829c458a4af122d611",
|
||||
"worktree_dirty": true,
|
||||
"source_manifest_sha256": "73187c6a987b4fce648f79198a89a99b238bc5aa0617339d662b09c86cb423cb",
|
||||
"runtime_profile": {
|
||||
"API_REPLICAS": "2",
|
||||
"APP_PORT": "8080",
|
||||
"LB_HOST_PORT": "8080",
|
||||
"DB_HOST_PORT": "15432",
|
||||
"REDIS_HOST_PORT": "16379",
|
||||
"MAX_MESSAGES": "100000",
|
||||
"MAX_IN_FLIGHT": "16",
|
||||
"DB_POOL_SIZE": "5",
|
||||
"DB_MAX_OVERFLOW": "10",
|
||||
"DB_POOL_TIMEOUT_SECONDS": "3",
|
||||
"DB_CONNECT_TIMEOUT_SECONDS": "3",
|
||||
"DB_STATEMENT_TIMEOUT_MS": "5000",
|
||||
"REDIS_MAX_CONNECTIONS": "20",
|
||||
"REDIS_POOL_TIMEOUT_SECONDS": "1",
|
||||
"REDIS_CONNECT_TIMEOUT_SECONDS": "1",
|
||||
"REDIS_SOCKET_TIMEOUT_SECONDS": "0.5",
|
||||
"SESSION_TTL_SECONDS": "3600",
|
||||
"IDEMPOTENCY_TTL_SECONDS": "86400",
|
||||
"SHUTDOWN_DRAIN_SECONDS": "1",
|
||||
"GRACEFUL_SHUTDOWN_TIMEOUT_SECONDS": "5",
|
||||
"READINESS_TIMEOUT_SECONDS": "2"
|
||||
},
|
||||
"commands": [
|
||||
"make test-grade4 PYTHON=.venv/bin/python",
|
||||
"make test-nginx PYTHON=.venv/bin/python"
|
||||
],
|
||||
"local_python": "Python 3.12.14",
|
||||
"docker_compose": "5.6.1",
|
||||
"docker_host": {
|
||||
"server_version": "29.9.2",
|
||||
"os": "linux",
|
||||
"architecture": "x86_64",
|
||||
"cpus": 8,
|
||||
"memory_bytes": 16400363520,
|
||||
"kernel": "7.2.11-zen1-1-zen"
|
||||
},
|
||||
"host_cpu_model": "Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz",
|
||||
"finished_at_utc": "2026-11-04T14:07:19.867546+00:00",
|
||||
"results": {
|
||||
"test_grade4_exit_code": 0,
|
||||
"test_nginx_exit_code": 0,
|
||||
"pytest_passed": 156,
|
||||
"pytest_seconds": 42.3
|
||||
},
|
||||
"container_limits": {
|
||||
"postgres": {
|
||||
"cpus": 1,
|
||||
"memory_mib": 512
|
||||
},
|
||||
"redis": {
|
||||
"cpus": 0.5,
|
||||
"memory_mib": 512
|
||||
},
|
||||
"api_each": {
|
||||
"cpus": 1,
|
||||
"memory_mib": 512
|
||||
},
|
||||
"migrate": {
|
||||
"cpus": 0.5,
|
||||
"memory_mib": 256
|
||||
},
|
||||
"nginx": {
|
||||
"cpus": 0.5,
|
||||
"memory_mib": 128
|
||||
}
|
||||
},
|
||||
"test_profile": {
|
||||
"project": "mtusi-messenger-lab3-test",
|
||||
"compose_files": [
|
||||
"compose.yaml",
|
||||
"compose.test.yaml"
|
||||
],
|
||||
"lb_host_port": 18080,
|
||||
"api_replicas": 2,
|
||||
"test_postgres_port": 15432,
|
||||
"test_redis_port": 16379,
|
||||
"pytest_redis_db": 15,
|
||||
"rolling": {
|
||||
"clients": 2,
|
||||
"timeout_seconds": 2,
|
||||
"pause_after_attempt_seconds": 0.08,
|
||||
"warmup_seconds": 1,
|
||||
"after_update_seconds": 1,
|
||||
"image_change": "API_BUILD_REVISION label; same business code",
|
||||
"pending_migrations": false
|
||||
},
|
||||
"failover_each": {
|
||||
"clients": 2,
|
||||
"timeout_seconds": 2,
|
||||
"warmup_seconds": 2,
|
||||
"after_stop_hook_seconds": 10,
|
||||
"error_backoff_seconds": 0.1,
|
||||
"stop_timeout_seconds": 8
|
||||
}
|
||||
},
|
||||
"installed_local_packages": {
|
||||
"fastapi": "0.143.3",
|
||||
"uvicorn": "0.54.0",
|
||||
"pydantic": "2.14.1",
|
||||
"pydantic-settings": "2.16.0",
|
||||
"SQLAlchemy": "2.1.4",
|
||||
"alembic": "1.20.0",
|
||||
"asyncpg": "0.32.0",
|
||||
"redis": "8.1.0",
|
||||
"pytest": "9.1.1",
|
||||
"pytest-asyncio": "1.4.1"
|
||||
},
|
||||
"images": [
|
||||
{
|
||||
"tag": "mtusi-messenger:lab3",
|
||||
"id": "sha256:9eb260e40dd7704888aa66098ff9514a13da1dcb28afb46eb4c8b2bd75b1f413",
|
||||
"repo_digests": [
|
||||
"mtusi-messenger@sha256:9eb260e40dd7704888aa66098ff9514a13da1dcb28afb46eb4c8b2bd75b1f413"
|
||||
],
|
||||
"revision": "verification-81ccd2376178"
|
||||
},
|
||||
{
|
||||
"tag": "postgres:16.10-bookworm",
|
||||
"id": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74",
|
||||
"repo_digests": [
|
||||
"postgres@sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74"
|
||||
],
|
||||
"revision": null
|
||||
},
|
||||
{
|
||||
"tag": "redis:7.4.2-bookworm",
|
||||
"id": "sha256:fbdbaea47b9ae4ecc2082ecdb4e1cea81e32176ffb1dcf643d422ad07427e5d9",
|
||||
"repo_digests": [
|
||||
"redis@sha256:fbdbaea47b9ae4ecc2082ecdb4e1cea81e32176ffb1dcf643d422ad07427e5d9"
|
||||
],
|
||||
"revision": null
|
||||
},
|
||||
{
|
||||
"tag": "nginx:1.28.0-alpine",
|
||||
"id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"repo_digests": [
|
||||
"nginx@sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284"
|
||||
],
|
||||
"revision": null
|
||||
}
|
||||
],
|
||||
"manifest_scope": "Executable sources, tests and configuration; excludes documentation, .env and secrets."
|
||||
}
|
||||
Reference in New Issue
Block a user