Commit Graph
100 Commits
Author SHA1 Message Date
Brandon Thomas ff22319c77 purge session cache with billing endpoints 2023-03-12 05:17:37 -04:00
Brandon Thomas 16f2d5557b clear session cache when user is edited 2023-03-12 04:49:59 -04:00
Brandon Thomas e5cdb84c52 correct cache key 2023-03-12 04:34:50 -04:00
Brandon Thomas 8079be9f7e progress with generics 2023-03-12 04:25:44 -04:00
Brandon Thomas 2821240cc0 generic over executor types 2023-03-12 04:12:22 -04:00
Brandon Thomas ae0522419a this *should* work - need to work on non-pooled version 2023-03-12 03:11:33 -04:00
Brandon Thomas 46bb4274ca work in progress session caching (redis) 2023-03-12 03:00:47 -04:00
Brandon Thomas f2b6dc4349 Merge pull request #39 from storytold/bt-redis-cache-endpoint
Bt redis cache endpoint
2023-03-12 01:25:31 -05:00
Brandon Thomas a395c04265 Delete cache when tts model is edited 2023-03-12 01:24:23 -05:00
Brandon Thomas d3a4613cc9 cleanup closures, fail open to db 2023-03-12 00:04:25 -05:00
Brandon Thomas bdca25cf4f cache works! 2023-03-11 23:58:14 -05:00
Brandon Thomas 06a053b6d9 this compiles too 2023-03-11 23:43:39 -05:00
Brandon Thomas 4104ef0129 this compiles too 2023-03-11 23:33:29 -05:00
Brandon Thomas 0f076cbacd work in progress redis caching (this compiles) 2023-03-11 23:21:39 -05:00
Brandon Thomas 817b2c01df new redis ttl cache crate (untested) 2023-03-11 22:53:01 -05:00
Brandon Thomas c06c47f02e Merge pull request #38 from storytold/bt-fix
Bt fix
2023-03-11 21:57:42 -05:00
Brandon Thomas 23b0dafd6b fix compile errors 2023-03-11 21:57:13 -05:00
Brandon Thomas 91e83c8b90 notes 2023-03-11 21:57:13 -05:00
Brandon Thomas 4a32ced9cd Merge pull request #37 from storytold/cache-profiles-redis
cache user profiles with redis
2023-03-11 06:42:15 -05:00
Brandon Thomas 75014a673a cache user profiles with redis 2023-03-11 06:41:51 -05:00
Brandon Thomas 52afa5462d Merge pull request #36 from storytold/block-ips
block more IPs
2023-03-11 05:15:40 -05:00
Brandon Thomas a826d54311 block more IPs 2023-03-11 05:15:09 -05:00
Brandon Thomas 4f38e4b20a codegen 2023-03-11 03:44:54 -05:00
Brandon Thomas 6880efd2f0 Merge pull request #35 from storytold/bt-edit-mfactor
edit tts model m-factor (mods only)
2023-03-11 03:42:27 -05:00
Brandon Thomas e372a4b5ec edit tts model m-factor (mods only) 2023-03-11 03:41:59 -05:00
Brandon Thomas f978f1b055 Merge pull request #34 from storytold/bt-inference-test-jobs
test requests bypass the model cache
2023-03-11 02:36:11 -05:00
Brandon Thomas ee69e72661 test requests bypass the model cache 2023-03-11 02:35:50 -05:00
Brandon Thomas 6295fd9569 update queries codegen 2023-03-11 02:09:03 -05:00
Brandon Thomas 53d9d55036 re-build all the things 2023-03-11 01:13:39 -05:00
Brandon Thomas 7e236f1e81 tts job now conveys mel multiplier 2023-03-11 01:12:35 -05:00
Brandon Thomas 6b7370ee64 migrations for mel multiply factor 2023-03-10 23:49:52 -05:00
Brandon Thomas 406d2eb7af rename paths 2023-03-10 05:54:56 -05:00
Brandon Thomas 1cfb3663e9 endpoint disablement filter allows adjustment of online endpoints 2023-03-10 05:50:00 -05:00
Brandon Thomas aa24f781fb remove old ip banlist filter 2023-03-10 04:33:22 -05:00
Brandon Thomas 3a2dad2027 more cleanup, organization, refactor 2023-03-10 03:08:29 -05:00
Brandon Thomas 814c04cdac more cleanup 2023-03-10 02:59:54 -05:00
Brandon Thomas c45a6da8a5 rid database_queries of container_common::anyhow_result 2023-03-10 02:55:57 -05:00
Brandon Thomas a5b2028588 begin removing container_common stuff 2023-03-10 02:53:48 -05:00
Brandon Thomas 4a743bace1 New static IP filter + docker config includes 2023-03-10 02:45:36 -05:00
Brandon Thomas 5ef5d6832b IP lists of attackers to ban 2023-03-10 02:28:35 -05:00
Brandon Thomas 0ebb1e398b Directory to contain IP bans 2023-03-10 02:21:48 -05:00
Brandon Thomas 4be572c36b refactor / organize top level directories 2023-03-10 02:13:16 -05:00
Brandon Thomas 97bea31b1d load an entire directory of bans 2023-03-10 01:49:11 -05:00
Brandon Thomas f3dd785331 load ip sets from file 2023-03-10 01:34:57 -05:00
Brandon Thomas 0d99c2fc08 new ip address filter middleware (wip) 2023-03-10 01:12:37 -05:00
Brandon Thomas edba26a2db cache leaderboard 2023-03-09 18:29:15 -05:00
Brandon Thomas 89a9448c9a new caching logic for get pending tts counts 2023-03-09 18:16:02 -05:00
Brandon Thomas d557c78123 new LRU cache to bypass expiry 2023-03-09 18:06:21 -05:00
Brandon Thomas 9ac7f33008 feature flag to control frontend tts queue refresh rate 2023-03-09 10:47:59 -05:00
Brandon Thomas 716e7923ff Add IP addresses that attacked us 2023-03-09 02:19:51 -05:00
Brandon Thomas ad389491a2 mark dummy service logs 2023-03-09 00:31:00 -05:00
Brandon Thomas 85b5e427b9 Wrap forwarded ip 2023-03-09 00:30:20 -05:00
Brandon Thomas 74d7b543f2 dummy service too 2023-03-08 21:10:09 -05:00
Brandon Thomas 2078bac70f forwarded IP in logs 2023-03-08 21:09:47 -05:00
Brandon Thomas 2e0110b0d9 omfg I'm dumb 2023-03-08 20:49:59 -05:00
Brandon Thomas 80a32eedf3 default route 2023-03-08 20:37:54 -05:00
Brandon Thomas 539c5ae796 with and without compression (messy af hack) 2023-03-08 20:32:54 -05:00
Brandon Thomas 6440d519f9 build dummy service in docker image 2023-03-08 20:17:30 -05:00
Brandon Thomas 690f4f1064 dummy service for debugging 2023-03-08 20:16:35 -05:00
Brandon Thomas a1e4ca35cd configurable health check duration 2023-03-08 18:49:56 -05:00
Brandon Thomas d93c0a5a8d log dropped requests 2023-03-08 17:10:36 -05:00
Brandon Thomas 9cc5ce9a04 faster builds for outage 2023-03-08 16:53:15 -05:00
Brandon Thomas 202b6c4a97 always opt in health checkers 2023-03-08 16:32:09 -05:00
Brandon Thomas 71abf1caa2 fix the pushback filter for the global GKE load balancer 2023-03-08 15:31:52 -05:00
Brandon Thomas de01d0fde7 protect another endpoint (tts model list) with flag 2023-03-08 15:10:57 -05:00
Brandon Thomas bb5ef2a3fe 404 "None" job statuses from broken Python clients 2023-03-08 14:53:14 -05:00
Brandon Thomas a8ab9c1265 Middleware to disable site with 429 global pushback 2023-03-08 14:44:08 -05:00
Brandon Thomas 2412e15868 add a followup github action step 2023-03-08 12:48:12 -05:00
Brandon Thomas 4b45924455 one more disk space report 2023-03-08 12:30:06 -05:00
Brandon Thomas 72ce767337 bump github actions caching plugin 2023-03-08 12:28:06 -05:00
Brandon Thomas 76c562bf2e trying one more thing 2023-03-08 12:24:37 -05:00
Brandon Thomas 6ac8759aba remove check of filesystem at root due to permissions on /proc 2023-03-08 12:23:45 -05:00
Brandon Thomas 3503a4527c disable docker container build tests (for now - emergency) 2023-03-08 12:23:04 -05:00
Brandon Thomas 03160b73d4 Merge pull request #33 from storytold/bt-space-check
report disk usage
2023-03-08 12:15:42 -05:00
Brandon Thomas 601b786b06 report disk usage 2023-03-08 12:15:25 -05:00
Brandon Thomas 05503512d8 Merge pull request #32 from storytold/bt-space
attempt to fix github builds failing for space issues
2023-03-08 11:48:02 -05:00
Brandon Thomas 7db6f074b6 attempt to fix github builds failing for space issues 2023-03-08 11:47:31 -05:00
Brandon Thomas e7ad3a34de Merge pull request #31 from storytold/bt-ff
feature flag to disable tts queue length
2023-03-08 11:28:13 -05:00
Brandon Thomas 5ccd512a2a feature flag to disable tts queue length 2023-03-08 11:27:42 -05:00
Brandon Thomas c40333e2a2 Fixup sqlx offline query caching, fix failing tests, fix docker 2023-03-08 05:56:59 -05:00
Brandon Thomas edcfc9ff9b port final storyteller-web query out: enqueue infer w2l 2023-03-08 05:31:56 -05:00
Brandon Thomas 862be58f1a port "assign/unassign tts category" out of storyteller-web 2023-03-08 05:14:34 -05:00
Brandon Thomas 8b08f2ba1d port "edit w2l template" queries out of storyteller-web 2023-03-08 05:01:49 -05:00
Brandon Thomas fe3f8dec6c port "edit w2l result" queries 2023-03-08 03:30:09 -05:00
Brandon Thomas 8ae5d34074 port the two "edit tts result" queries 2023-03-08 03:14:54 -05:00
Brandon Thomas 89f8837706 port tts upload job status query 2023-03-08 01:05:35 -05:00
Brandon Thomas 03ed0b4c7b analytics queries 2023-03-07 23:57:43 -05:00
Brandon Thomas f1d8161481 port get pending w2l detailed stats out of storyteller-web 2023-03-06 20:03:43 -05:00
Brandon Thomas 2d20430f55 port tts inference stats from storyteller web 2023-03-06 19:56:26 -05:00
Brandon Thomas e2b98491cb port storyteller-web query: insert w2l template upload job 2023-03-06 19:21:14 -05:00
Brandon Thomas 910caa1000 port storyteller-web get w2l inference job status 2023-03-06 18:58:15 -05:00
Brandon Thomas 0e39999097 port query get upload w2l template status 2023-03-06 06:03:59 -05:00
Brandon Thomas 77779bc231 port insert tts upload job query 2023-03-06 05:47:51 -05:00
Brandon Thomas 898c22b9cc port "edit category" out of storyteller-web 2023-03-06 05:28:17 -05:00
Brandon Thomas 96b80b35a5 port query: set w2l template mod approval 2023-03-06 05:16:22 -05:00
Brandon Thomas d182f800f7 port query: inference job status 2023-03-06 05:07:43 -05:00
Brandon Thomas 60af92ea39 port storyteller-web query: pending w2l template list 2023-03-06 04:57:45 -05:00
Brandon Thomas da8c164b40 port storyteller-web query: create category 2023-03-06 04:49:36 -05:00
Brandon Thomas d304f40984 port useless query - should have just deleted this one 2023-03-06 04:41:05 -05:00
Brandon Thomas 8f0d347c38 move storyteller-web query: set user role 2023-03-06 04:27:34 -05:00