Finalize Assignment 9 Zammad implementation and manual 1.11.1 #23

Merged
glovely merged 23 commits from assignment9/ticket-management into main 2026-11-22 03:02:04 +00:00
4 changed files with 71 additions and 1 deletions
Showing only changes of commit e908359208 - Show all commits
@@ -226,6 +226,24 @@ had not detected; the completed browser test is the acceptance check for the
correction, not merely a successful container restart.
\section{4. Validation, initialization and startup operations}
\paragraph{Post-build footprint tuning, November 21.}
After manual build 29, the team reported nearly full swap. A current SSH
audit found about 2 GiB swap used with roughly 472 MiB available RAM.
Jenkins, Elasticsearch and the three Zammad Ruby services held most of the
swapped pages; the many Elasticsearch rows were threads of one JVM.
A 96 MiB Elasticsearch heap trial did not complete the bounded primary-shard
recovery check and emitted GC pressure, so the 128 MiB setting was restored.
The saved override sets \texttt{MALLOC\_ARENA\_MAX=2} for Elasticsearch,
Rails, websocket and scheduler, and disables unused Elasticsearch ML.
The existing Jenkins controller heap was reduced from 256 to 192 MiB with
the 448 MiB container cap and persistent home retained. All 83 saved Jenkins
build records had a final result before its restart. No volume was deleted,
swap was not forcibly disabled, and no paid capacity change was made.
Restarts released old swapped pages, which is immediate relief rather than
proof of a lasting reduction; later warm-state measurements are required.
These changes postdate the build-29 artifact and require a later manual build
to appear in its PDF.
Run commands in the deployment directory so the same private environment and
all scenarios are loaded:
\begin{verbatim}
+1 -1
View File
@@ -4,7 +4,7 @@ services:
container_name: myfileagent-jenkins
restart: unless-stopped
environment:
JAVA_OPTS: "-Xms64m -Xmx256m"
JAVA_OPTS: "-Xms64m -Xmx192m"
mem_limit: 448m
ports:
- "127.0.0.1:8080:8080"
@@ -0,0 +1,40 @@
{
"captured_at": "2026-11-21T23:20:20.995604+00:00",
"trial_96m": "Rejected: prolonged startup, primary-shard recovery timeout, red cluster; restored 128 MiB",
"retained_changes": {
"elasticsearch_heap_mib": 128,
"elasticsearch_ml_enabled": false,
"malloc_arena_max": 2,
"jenkins_heap_mib": 192
},
"initial_observations": {
"swap_used_approx_mib": 2042,
"available_ram_approx_mib": 472
},
"https": {
"https://support.myfileagent.tech/": 200,
"https://ci.myfileagent.tech/login": 200,
"https://myfileagent.tech/user/login": 200,
"https://metrics.myfileagent.tech/login": 200,
"https://app.myfileagent.tech/health": 200,
"https://staging.myfileagent.tech/health": 200
},
"ta_ticket_read": {
"number": "71007",
"state_id": 4,
"owner_id": 5
},
"customer_search_found": true,
"customer_visibility": {
"article_ids": [
12,
14
],
"internal_marker_absent": true
},
"free": " total used free shared buff/cache available\nMem: 1.9Gi 1.5Gi 134Mi 10Mi 432Mi 385Mi\nSwap: 2.0Gi 1.6Gi 407Mi\n",
"vmstat": "procs -----------memory---------- ---swap-- -----io---- -system-- -------cpu-------\n r b swpd free buff cache si so bi bo in cs us sy id wa st gu\n 1 1 1680056 137692 1648 442740 478 447 920 499 1465 28 22 7 67 2 2 0\n 0 0 1670840 137692 1648 446688 12156 0 16120 0 2981 6696 11 8 69 11 0 0\n 0 0 1670584 137692 1648 446688 36 0 36 0 963 1224 5 1 94 0 0 0\n",
"container_stats": "dos-support-zammad-scheduler-1 CPU=0.35% RAM=120.5MiB / 384MiB\ndos-support-zammad-websocket-1 CPU=0.03% RAM=109.2MiB / 192MiB\nmyfileagent-jenkins CPU=0.61% RAM=68.26MiB / 448MiB\ndos-support-zammad-railsserver-1 CPU=9.24% RAM=105.9MiB / 384MiB\ndos-support-zammad-elasticsearch-1 CPU=23.37% RAM=363.5MiB / 384MiB\ndos-support-zammad-backup-1 CPU=0.00% RAM=628KiB / 192MiB\ndos-support-zammad-nginx-1 CPU=0.00% RAM=1.602MiB / 64MiB\ndos-support-zammad-postgresql-1 CPU=0.45% RAM=38.42MiB / 128MiB\ndos-support-zammad-redis-1 CPU=0.27% RAM=4.398MiB / 48MiB\ndos-support-zammad-memcached-1 CPU=3.70% RAM=2.676MiB / 32MiB\npricing-staging-app-1 CPU=0.01% RAM=8.309MiB / 1.922GiB\npricing-production-app-1 CPU=0.02% RAM=12.46MiB / 1.922GiB\nassignment8-jenkins-agent CPU=0.55% RAM=19.9MiB / 256MiB\nmyfileagent-monitoring-grafana-1 CPU=0.98% RAM=112.2MiB / 1.922GiB\nmyfileagent-monitoring-prometheus-1 CPU=0.26% RAM=49.15MiB / 160MiB\nmyfileagent-monitoring-blackbox-exporter-1 CPU=0.00% RAM=21.48MiB / 32MiB\nmyfileagent-monitoring-node-exporter-1 CPU=0.00% RAM=18.32MiB / 32MiB\nmyfileagent-gitea CPU=0.16% RAM=125.2MiB / 1.922GiB\nmyfileagent-manual-runner CPU=0.00% RAM=9.566MiB / 192MiB\nmyfileagent-caddy CPU=0.00% RAM=24.45MiB / 1.922GiB\n",
"es_health": "{\"status\":\"yellow\",\"timed_out\":false,\"active_primary_shards\":29,\"unassigned_shards\":27}",
"es_user_count": "{\"count\":6,\"_shards\":{\"total\":1,\"successful\":1,\"skipped\":0,\"failed\":0}}"
}
+12
View File
@@ -5,5 +5,17 @@ services:
command: [redis-server, --maxmemory, 16mb, --maxmemory-policy, noeviction]
zammad-railsserver:
environment:
MALLOC_ARENA_MAX: "2"
MIN_THREADS: "1"
MAX_THREADS: "3"
zammad-elasticsearch:
environment:
xpack.ml.enabled: "false"
MALLOC_ARENA_MAX: "2"
zammad-scheduler:
environment:
MALLOC_ARENA_MAX: "2"
zammad-websocket:
environment:
MALLOC_ARENA_MAX: "2"