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/zenserver/proxy/zenproxyserver.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/zenserver/proxy/zenproxyserver.cpp')
| -rw-r--r-- | src/zenserver/proxy/zenproxyserver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zenserver/proxy/zenproxyserver.cpp b/src/zenserver/proxy/zenproxyserver.cpp index c768e940a..cf84c159a 100644 --- a/src/zenserver/proxy/zenproxyserver.cpp +++ b/src/zenserver/proxy/zenproxyserver.cpp @@ -454,6 +454,7 @@ ZenProxyServerMain::DoRun(ZenServerState::ZenServerEntry* Entry) Server.SetContentRoot(m_ServerOptions.ContentDir); Server.SetTestMode(m_ServerOptions.IsTest); Server.SetDedicatedMode(m_ServerOptions.IsDedicated); + Server.SetAllowPortProbing(!m_ServerOptions.IsDedicated && m_ServerOptions.AllowPortProbing); const int EffectiveBasePort = Server.Initialize(m_ServerOptions, Entry); if (EffectiveBasePort == -1) |