diff options
| author | Dan Engelbrecht <[email protected]> | 2026-03-17 22:57:20 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-17 22:57:20 +0100 |
| commit | d0d40b36b306236428a764349dbff98d38cf7dbd (patch) | |
| tree | 2a5511a99eea146b6f7f3632fb3194394e508360 /src/zenhttp/httpserver.cpp | |
| parent | Suppressed C5105 when building rpmalloc (#852) (diff) | |
| download | zen-d0d40b36b306236428a764349dbff98d38cf7dbd.tar.xz zen-d0d40b36b306236428a764349dbff98d38cf7dbd.zip | |
zen hub port reuse (#850)
- Feature: Added `--allow-port-probing` option to control whether zenserver searches for a free port on startup (default: true, automatically false when --dedicated is set)
- Feature: Added new hub options for controlling provisioned storage server instances:
- `--hub-instance-http` - HTTP server implementation for instances (asio/httpsys)
- `--hub-instance-http-threads` - Number of HTTP connection threads per instance
- `--hub-instance-corelimit` - Limit CPU concurrency per instance
- Improvement: Hub now manages a deterministic port pool for provisioned instances allowing reuse of unused ports
Diffstat (limited to 'src/zenhttp/httpserver.cpp')
| -rw-r--r-- | src/zenhttp/httpserver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenhttp/httpserver.cpp b/src/zenhttp/httpserver.cpp index 4d98e9650..e5cfbcbae 100644 --- a/src/zenhttp/httpserver.cpp +++ b/src/zenhttp/httpserver.cpp @@ -1033,7 +1033,7 @@ CreateHttpServerClass(const std::string_view ServerClass, const HttpServerConfig ZEN_INFO("using asio HTTP server implementation") return CreateHttpAsioServer(AsioConfig { .ThreadCount = Config.ThreadCount, .ForceLoopback = Config.ForceLoopback, .IsDedicatedServer = Config.IsDedicatedServer, - .NoNetwork = Config.NoNetwork, .UnixSocketPath = PathToUtf8(Config.UnixSocketPath), + .NoNetwork = Config.NoNetwork, .AllowPortProbing = Config.AllowPortProbing, .UnixSocketPath = PathToUtf8(Config.UnixSocketPath), #if ZEN_USE_OPENSSL .HttpsPort = Config.HttpsPort, .CertFile = Config.CertFile, .KeyFile = Config.KeyFile, #endif @@ -1049,6 +1049,7 @@ CreateHttpServerClass(const std::string_view ServerClass, const HttpServerConfig .IsRequestLoggingEnabled = Config.HttpSys.IsRequestLoggingEnabled, .IsDedicatedServer = Config.IsDedicatedServer, .ForceLoopback = Config.ForceLoopback, + .AllowPortProbing = Config.AllowPortProbing, .HttpsPort = Config.HttpSys.HttpsPort, .CertThumbprint = Config.HttpSys.CertThumbprint, .CertStoreName = Config.HttpSys.CertStoreName, |