soruly / trace.moe-api

API server for serving backend requests for trace.moe
https://soruly.github.io/trace.moe-api/
MIT License
121 stars 13 forks source link

add a maintenance mode #328

Closed soruly closed 6 months ago

soruly commented 6 months ago

https://github.com/soruly/trace.moe-api/pull/308

This would put the server away from external traffic so that it can spend full speed doing things like bulk import a lot of hashes, or focus on hashing.

soruly commented 6 months ago

I'd suggest system admin to configure the search quota to 0 in tier table. see https://github.com/soruly/trace.moe-api/blob/master/sql/data.sql

In this way, you can enable/disable the search function without restarting the server. You may even selectively disable search for some groups of users only. Afterall, this is designed to reduce server load while the server is busy hasing a lot of files. In case you want to disable all features, I would suggest you just block the server in firewall, or remove it from your load balancer.