aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-03-17 22:57:20 +0100
committerGitHub Enterprise <[email protected]>2026-03-17 22:57:20 +0100
commitd0d40b36b306236428a764349dbff98d38cf7dbd (patch)
tree2a5511a99eea146b6f7f3632fb3194394e508360 /src/zenutil
parentSuppressed C5105 when building rpmalloc (#852) (diff)
downloadzen-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/zenutil')
-rw-r--r--src/zenutil/include/zenutil/zenserverprocess.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zenutil/include/zenutil/zenserverprocess.h b/src/zenutil/include/zenutil/zenserverprocess.h
index 2f76f0d6c..101b078e9 100644
--- a/src/zenutil/include/zenutil/zenserverprocess.h
+++ b/src/zenutil/include/zenutil/zenserverprocess.h
@@ -151,6 +151,11 @@ struct ZenServerInstance
return GetBasePort();
}
+ inline void SpawnServerAndWaitUntilReady(uint16_t BasePort, std::string_view AdditionalServerArgs = std::string_view())
+ {
+ SpawnServer(BasePort, AdditionalServerArgs, /* WaitTimeoutMs */ 100'000);
+ }
+
inline void SpawnServer(int BasePort, std::string_view AdditionalServerArgs = std::string_view())
{
SpawnServer(BasePort, AdditionalServerArgs, /* WaitTimeoutMs */ 0);