Commit Graph

35 Commits

Author SHA1 Message Date
Stanley Dimant
6ab27d9698 requeue requests where files are still downloading 2024-05-04 15:21:53 +02:00
Stanley Dimant
ff81b269b8 kms 2024-04-28 12:27:28 +02:00
Stanley Dimant
33df74b037 some fixes maybe 2024-04-28 12:21:24 +02:00
rootdarkarchon
68f0b28e9d add some more metrics for files downloading from caches 2024-03-01 11:13:10 +01:00
rootdarkarchon
6eac05e91b refactor file server 2024-01-15 12:26:09 +01:00
rootdarkarchon
c674e4eccd something 2024-01-14 21:41:22 +01:00
rootdarkarchon
1c97fd9150 do not use async for queue processing 2024-01-14 21:24:12 +01:00
rootdarkarchon
c3d674b188 fix queue processing, the third 2024-01-14 12:37:51 +01:00
rootdarkarchon
4d226eb616 fix queue processing, again 2024-01-14 12:34:44 +01:00
rootdarkarchon
024796c459 fix queue processing 2024-01-14 12:32:52 +01:00
rootdarkarchon
a66e93c901 update metrics more often 2024-01-14 12:28:04 +01:00
rootdarkarchon
4c1131a988 break, not return 2024-01-14 12:05:58 +01:00
rootdarkarchon
63286127a2 add alias to jwt, remove caching from auth, remove db usage from files 2024-01-14 11:57:18 +01:00
rootdarkarchon
2c7ff6f73a some file server fixes I guess 2024-01-13 12:08:49 +01:00
rootdarkarchon
302e6ffb62 Mare 0.9 (#27)
* add jwt expiry

* update api

* merge

* start rework permissions

* ok so in theory this compiles

* make it work I guess

* reuse some permissions

* fix intermediate connectivity issues

* fixes

* whatever

* some fixes I guess

* fix some stuff

* idk some random fixes I guess

* change some defaults

* update nuget

* adjust order of operations

* adjust deletion of account

* remove todo

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-10-17 21:36:33 +02:00
rootdarkarchon
1d470d3d80 use maredbcontext from controller 2023-09-17 03:30:43 +02:00
rootdarkarchon
9f403345c9 add high priority queue 2023-09-17 03:21:10 +02:00
rootdarkarchon
a3b33c0e6b expire requests regardless of queue presence of entries 2023-08-03 08:47:16 +02:00
rootdarkarchon
dd74903eff fix handling for finishrequest 2023-08-02 11:48:07 +02:00
rootdarkarchon
ba37a25869 adjust queue processing 2023-08-02 11:37:34 +02:00
rootdarkarchon
255798c0c6 add gauges for queue free/active/inactive 2023-08-02 10:14:27 +02:00
rootdarkarchon
fd0327b2c4 Single file transfer (#26)
* move to single file transfer for server

* fix cache get

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-08-01 16:48:08 +02:00
rootdarkarchon
abda79a15a potentially fix staticfileserver crashes 2023-04-08 13:59:20 +02:00
rootdarkarchon
48323d68b0 [Draft] Update 0.8 (#25)
* get rid of file handling through grpc and signalr

* fix upload on controller

* adapt usersetpairpermissions

* send user perms

* server-side fixes

* rework file upload

* adjust log level to debug in docker standalone json

* update dependencies

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-03-14 19:46:59 +01:00
rootdarkarchon
aa03d400d4 - reload configs on change
- remove grpc config service replace with http
- add messaging to channel
2023-02-25 12:20:59 +01:00
rootdarkarchon
ca16b08a2f Server rework for API change and paradigm shift (#23)
* start with group permissions implementation

* some minor refactoring

* adjust hub for api changes

* fixes and database migration

* fixes sending online/offline message to clients stuff

* remove admin stuff from server

* fixes get server permissions

* send group pair info to client on joining a group

* send online only on sending connection dto

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-29 15:15:02 +01:00
rootdarkarchon
20d8970a15 return in RemoveFromQueue always when not in queue 2023-01-15 18:32:48 +01:00
rootdarkarchon
4bd71a5889 Download rework (#22)
* rework server to send download ready back via signalr

* adjust queue handling for removal

* adjust api to main

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-15 16:00:38 +01:00
rootdarkarchon
5e0e21ef68 parallel for the queue processing, up request semaphore, remove queue position (unused), bump api version 2023-01-15 01:44:10 +01:00
rootdarkarchon
e968adb7be actually start the queue processing timer 2023-01-15 01:12:46 +01:00
rootdarkarchon
60f6bb5829 ignore queue semaphore when processing queue 2023-01-15 01:10:35 +01:00
rootdarkarchon
cf6ad890cd try processing queue with timer instead of task 2023-01-15 01:07:45 +01:00
rootdarkarchon
aa177583e0 sanitize queue processing 2023-01-14 12:57:34 +01:00
rootdarkarchon
a0cea2432f fixes for activate/finishrequest 2023-01-11 17:22:04 +01:00
rootdarkarchon
42b15cb6b7 Add Server-Side Download Queue (#21)
* test add queueing to file service

* further adjustments to download queueing

* add check for whether the request is still in the queue to CheckQueue

* forcefully release slot if download didn't finish in 15s

* actually cancel the delay task

* add metrics and refactor some of the request queue service

* refactor pathing

* reuse httpclient

* add queue request dto to requestfile, enqueue users immediately if a slot is available

* change startup to include all controllers

* update server pathing

* update pathing, again

* several adjustments to auth, banning, jwt server tokens, renaming, authorization

* update api I guess

* adjust automated banning of charaident and reg

* generate jwt on servers for internal authentication

* remove mvcextensions

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-11 12:22:22 +01:00