Commit Graph

95 Commits

Author SHA1 Message Date
daniel156161 332e86e3cc rework dataset function and class structure 2026-04-05 02:21:15 +02:00
daniel156161 066a93f755 move RLBootstrapDataset into a own class with its own test file 2026-04-05 00:54:15 +02:00
daniel156161 eb290dd634 rework folder structure complitly 2026-04-04 23:01:34 +02:00
daniel156161 2b8f0396e3 rename Test file and add init file for metric backend to import all at once 2026-04-04 22:26:19 +02:00
daniel156161 043d7654f9 rename Metric Classes and change Folder Structure 2026-04-04 22:14:14 +02:00
daniel156161 a38a600bdc rename ServerMetricsCollector to MetricsCollector 2026-04-04 21:29:40 +02:00
daniel156161 9d33c6fded cleanup all worker stats when starting up servers 2026-04-04 21:28:26 +02:00
daniel156161 6c68f412d2 don't log move_direction_counts into metric because looking almost the same 2026-04-04 19:08:19 +02:00
daniel156161 92a700409d remove http_requests_by_endpoint into metrics 2026-04-04 19:05:59 +02:00
daniel156161 fc8e0657a0 change that oldest_active_game_age_sec not gets inflated when redis already deleted it
Build and Push Docker Container / build-and-push (push) Successful in 1m2s
2026-04-04 16:40:49 +02:00
daniel156161 f8c492f333 not count stale games as active games because they will get deletet after ttl expire into redis
Build and Push Docker Container / build-and-push (push) Successful in 56s
2026-04-04 16:02:51 +02:00
daniel156161 5997a1f6c1 only update stuck game metric when game state backend is not redis
Build and Push Docker Container / build-and-push (push) Successful in 57s
2026-04-04 15:33:07 +02:00
daniel156161 8564606f4c disable removeing cound of stale games in the backend because redis is doing it
Build and Push Docker Container / build-and-push (push) Successful in 1m1s
2026-04-04 15:28:25 +02:00
daniel156161 561527a21b correct end game active metric count
Build and Push Docker Container / build-and-push (push) Successful in 52s
2026-04-04 15:23:56 +02:00
daniel156161 47051a6068 make Metrics Collector Class and auto send to redis when change happend
Build and Push Docker Container / build-and-push (push) Successful in 1m0s
2026-04-04 14:52:21 +02:00
daniel156161 c3da096320 allow to send metrics to memory or redis
Build and Push Docker Container / build-and-push (push) Successful in 52s
2026-04-04 14:21:54 +02:00
daniel156161 33c8fabc4c use redis.asyncio insted of the old aioredis package
Build and Push Docker Container / build-and-push (push) Successful in 51s
2026-04-04 13:25:23 +02:00
daniel156161 65128b25c2 allow to disable self.running_games as L1 Cache into Worker when useing Redis Backend
Build and Push Docker Container / build-and-push (push) Successful in 54s
2026-04-04 12:53:31 +02:00
daniel156161 a1c4a4b68d create MemoryGameBoardStore Class and rework Building of Game Board Storage 2026-04-04 12:34:00 +02:00
daniel156161 4547e3443b add redis backend for storage of gameboards 2026-04-04 12:07:05 +02:00
daniel156161 c6ebb5834b auto remove stuck games
Build and Push Docker Container / build-and-push (push) Successful in 51s
2026-04-04 10:23:12 +02:00
daniel156161 dbcf9cadaf add more metrics data
Build and Push Docker Container / build-and-push (push) Successful in 1m2s
2026-04-04 09:58:11 +02:00
daniel156161 9e826afa5f add Training for AI and AI Model and allow to collect rl data from BestBattleSnake
Build and Push Docker Container / build-and-push (push) Successful in 1m36s
2026-04-03 23:19:09 +02:00
daniel156161 8f6bc3cfdd add timeout budget when exeaded use quick save move before timeout 2026-04-03 21:17:08 +02:00
daniel156161 eace1872d7 move snake builder into __init__ of snakes file and use it into server class 2026-04-03 20:11:46 +02:00
daniel156161 0a3db6ba57 add versions to snakes and read it in server class 2026-04-03 19:57:55 +02:00
daniel156161 013ac98821 implement royale game mode and tighten spaces in duel mode 2026-04-03 19:26:56 +02:00
daniel156161 19e4aee454 rework logging and add metrics and prometheus metrics 2026-04-03 18:26:31 +02:00
daniel156161 1e57ad1af6 add bootstrap script to start the server up the same way 2026-04-03 18:01:18 +02:00
daniel156161 8e733dfe39 add script to analyse dataset 2026-04-03 15:45:54 +02:00
daniel156161 49f2e0b008 add more flags and allow to read more input file then one 2026-04-03 15:44:19 +02:00
daniel156161 37de34cc5e update to store and curate data correctly 2026-04-03 15:43:19 +02:00
daniel156161 2d7a2505d4 create payload of json string and then save it
Build and Push Docker Container / build-and-push (push) Successful in 1m33s
2026-04-03 14:31:15 +02:00
daniel156161 a82eaaaec5 allow sync and async function calls 2026-04-03 14:10:38 +02:00
daniel156161 51de53d01c add dataset updates with doc updates
Build and Push Docker Container / build-and-push (push) Failing after 12m18s
2026-04-03 11:40:47 +02:00
daniel156161 2e1f91355b add Dataset Class and Tests 2026-04-03 10:35:21 +02:00
daniel156161 6e74b5fb57 change from sync to async and from flask to quart
Build and Push Docker Container / build-and-push (push) Successful in 1m35s
2026-01-06 13:36:43 +01:00
daniel156161 5c1ef7f05f have largest turns first 2025-06-03 11:36:55 +02:00
daniel156161 d32568cdf2 order cleanup by turns 2025-06-03 11:11:33 +02:00
daniel156161 61721a7eb6 change request endpoints to async 2025-05-27 13:28:08 +02:00
daniel156161 58bbbf3cbd allow to return cleaned up values 2025-05-15 09:55:12 +02:00
daniel156161 4d515f0784 init class when cleaning up 2025-04-28 17:06:49 +02:00
daniel156161 8424c324e8 fix function nameing 2025-04-28 16:14:04 +02:00
daniel156161 c5c2652f3a add cleanup code for storage classes 2025-04-28 13:36:34 +02:00
daniel156161 0768e7f254 not check tls certificat when connection to server by default 2025-03-08 12:13:46 +01:00
daniel156161 31d2e7ea55 add code to reconnect to database if connection is gettring broken or database getting a reboot 2025-03-08 11:32:19 +01:00
daniel156161 80b7c4df89 fix typo in LocalStorage file path 2024-05-08 23:43:01 +02:00
daniel156161 da0347731c make deletion easyer when linked with other objects and make gameboard url into a function 2024-05-08 19:04:58 +02:00
daniel156161 a09c05b6ec only store one object of GameType and Ruleset when they already exists in the database 2024-05-08 16:11:44 +02:00
daniel156161 aba457423e only store one snake with the same type and move Calculations into moves as the array<json> type 2024-05-08 15:38:14 +02:00