Feat/cli remove fs (#116)

* support draining feature server manually

* support draining feature server manually

* support CLI to add or remove feature server

* wip

* wip

* wip

* add redis key for feature server and integration test

* wip
This commit is contained in:
Hoan Luu Huu
2025-10-29 06:26:24 +07:00
committed by GitHub
parent 658cb6ae7d
commit 55ace7820f
9 changed files with 1249 additions and 0 deletions

4
app.js
View File

@@ -17,6 +17,7 @@ const {
NODE_ENV,
SBC_PUBLIC_ADDRESS_KEEP_ALIVE_IN_MILISECOND
} = require('./lib/config');
assert.ok(JAMBONES_MYSQL_HOST &&
JAMBONES_MYSQL_USER &&
JAMBONES_MYSQL_PASSWORD &&
@@ -260,6 +261,9 @@ srf.use('options', [
srf.register(require('./lib/register')({logger}));
srf.options(require('./lib/options')({srf, logger}));
// Start CLI runtime config server with access to srf.locals
require('./lib/cli/runtime-config').initialize(srf.locals, logger);
setInterval(async() => {
const count = await srf.locals.registrar.getCountOfUsers();
debug(`count of registered users: ${count}`);