HellsTomato
f783739331
Apply final lab 3 updates
2026-10-29 22:44:52 +03:00
HellsTomato and Claude
7e9a081dc8
Apply working version from updated folder
...
Key changes:
1. scripts/stop-one.sh - proper TARGET_INSTANCE_ID handling using container ID matching
2. REPORT.md - updated with actual test results and measurements
3. application.properties - added connection pool settings
4. MessengerApplication.java - minor improvements
Test results included:
- Failover: 43 successful writes, 0 failures, recovery in ~1.5s
- Rolling update: 384 requests, 0 errors (0%)
All changes from peer-reviewed working version.
Co-Authored-By: Claude <noreply@anthropic.com >
2026-10-29 22:30:24 +03:00
HellsTomato
d017a73391
Finalize lab 3 fixes and reports
2026-10-29 21:03:40 +03:00
HellsTomato and Claude
508d512438
Fix lab3 issues for grade 4
...
Fixes for mandatory level 3:
1. Reduce nginx proxy_connect_timeout to 1s for faster failover detection
- Prevents 499 errors during failover (client timeout < connect timeout)
2. Set executable permissions on scripts (git update-index --chmod=+x)
- restart.sh, stop-one.sh now 100755
3. Fix REPORT.md errors:
- Correct test command: make test-failover (not py -3 tests\failover.py)
- Fix health check explanation (nginx uses timeouts, not Docker healthcheck)
- Fix line numbers: INSTANCE_ID=39, X-Instance-Id=88, message()=321
- Add note about nginx warmup period (~10s after startup)
Additions for level 4:
4. Add scripts/measure-failover.sh - measure RPS, errors, recovery time
- Sequential testing of api-1 and api-2 stops
- Baseline, failover, and recovery measurements
5. Add scripts/rolling-update.sh - demonstrate rolling update under load
- Generates load for 60s while updating replicas sequentially
- Measures errors during rolling update
6. Update REPORT.md with sections 10-11 for level 4 requirements
All changes address reviewer feedback and ensure tests pass consistently.
Co-Authored-By: Claude <noreply@anthropic.com >
2026-10-29 21:02:00 +03:00
HellsTomato
a3ed2239e9
Add final fixes and defense reports for lab 3
2026-10-29 20:46:53 +03:00
HellsTomato
34932d3fbe
Update lab 3 implementation
2026-10-29 20:39:34 +03:00
HellsTomato and Copilot
34f78adf82
Implement lab 3 load balancing and failover
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-10-28 13:02:49 +03:00
Mikhail Verkovykh
0ab3a341aa
Подготовить skeleton лабораторной 3 по мессенджеру
2026-09-10 18:01:35 +03:00