aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/config.cpp
Commit message (Collapse)AuthorAgeFilesLines
* meta info store (#75)Dan Engelbrecht2024-08-301-0/+20
| | | | - Feature: Added option `--gc-cache-attachment-store` which caches referenced attachments in cache records on disk for faster GC - default is `false` - Feature: Added option `--gc-projectstore-attachment-store` which caches referenced attachments in project store oplogs on disk for faster GC - default is `false`
* added `--detach` option to zenserver (#115)Stefan Boberg2024-08-141-0/+3
| | | | | added `--detach` option to zenserver. When this is passed in with a false value, we do not create a new process group in order to behave more as expected when running with `xmake run zenserver`. Without this change the zenserver process does not receive any signals and won't exit when xmake does, causing processes to linger in the background. The default behaviour (when run from UE) is unchanged.
* improve logging on main failure (#111)Dan Engelbrecht2024-08-141-0/+2
| | | | | | * add support for indenting callstack output * Explicitly catch option-parse error and reduce log spam on bad parameters * add command line to sentry error reports * log command line at startup
* add gc single threaded option (#104)Dan Engelbrecht2024-08-071-0/+8
| | | * add option to force gcv2 to run single threaded
* workspace shares (#84)Dan Engelbrecht2024-05-291-0/+10
| | | Feature: New 'workspaces' service which allows a user to share a local folder via zenserver. A workspace can have mulitple workspace shares and they provie an HTTP API that is compatible with the project oplog HTTP API. Workspaces and shares are preserved between runs. Workspaces feature is disabled by default - enable with --workspaces-enabled option when launching zenserver.
* added logic to change default HTTP server implementation when running on ↵Stefan Boberg2024-05-021-3/+8
| | | | | | Wine (#71) * added logic to change default HTTP server implementation when running on Wine * added log message to inform user about potential problems when running under Wine
* set gc-v2 as default (#56)Dan Engelbrecht2024-04-221-1/+1
| | | - Change: GCv2 is now the default option, use `--gc-v2=false` to fall back to GCv1
* typo fix in gc.lightweightintervalsecondsStefan Boberg2024-04-111-1/+1
|
* improved assert (#37)Dan Engelbrecht2024-04-041-3/+3
| | | | - Improvement: Add file and line to ASSERT exceptions - Improvement: Catch call stack when throwing assert exceptions and log/output call stack at important places to provide more context to caller
* remove reference caching (#658)Dan Engelbrecht2024-02-271-10/+0
| | | * remove reference caching
* ensure we can build without trace (#619)Stefan Boberg2023-12-191-0/+2
| | | | `xmake config -zentrace=n` would previously not build cleanly
* Adding an info command to display a top-level summary of disk space etc (#602)Stefan Boberg2023-12-121-4/+71
| | | | | this also adds a central, shared folder for storing information which may be found by any instance on the host. The directory is currently located alongside the default install and state directory. Initially this is used to store a collection of known `root_manifest` locations and a copy of the latest manifest version which allow us to find all known locations where zen state is present.
* improved scrubbing of oplogs and filecas (#596)Stefan Boberg2023-12-111-0/+4
| | | | | | - Improvement: Scrub command now validates compressed buffer hashes in filecas storage (used for large chunks) - Improvement: Added --dry, --no-gc and --no-cas options to zen scrub command - Improvement: Implemented oplog scrubbing (previously was a no-op) - Improvement: Implemented support for running scrubbint at startup with --scrub=<options>
* logging configuration via command line options (#589)Stefan Boberg2023-12-061-3/+22
| | | | | | | with these changes it is possible to configure loggers on the command line. For instance: `xmake run zenserver --log-trace=http_requests,http` will configure the system so that the `http_request` and `http` loggers are set to TRACE level
* moved LuaConfig code so it can be used outside of config.cpp (#575)Stefan Boberg2023-11-281-540/+105
|
* added --powercycle option (#565)Stefan Boberg2023-11-231-0/+3
| | | | | * added --powercycle option. when this is passed in the zenserver process will shut down immediately after initialization is complete. This is primarily useful when benchmarking init/cleanup but could also be used to verify/clean up disk state * moved EmptyStandbyList code to make it accessible to more commands
* add command line options for compact block threshold and gc verbose (#557)Dan Engelbrecht2023-11-211-0/+19
| | | | | | | | | | | - Feature: Added new options to zenserver for GC V2 - `--gc-compactblock-threshold` GCV2 - how much of a compact block should be used to skip compacting the block, default is 90% - `--gc-verbose` GCV2 - enable more verbose output when running a GC pass - Feature: Added new options to `zen gc` command for GC V2 - `--compactblockthreshold` GCV2 - how much of a compact block should be used to skip compacting the block, default is 90% - `--verbose` GCV2 - enable more verbose output when running a GC pass - Feature: Added new parameters for endpoint `admin/gc` (PUT) - `compactblockthreshold` GCV2 - how much of a compact block should be used to skip compacting the block, default is 90% - `verbose` GCV2 - enable more verbose output when running a GC pass
* add zenserver state snapshot support (#543)Stefan Boberg2023-11-161-0/+14
| | | | | this introduces a --snapshot-dir command line option to zenserver which specifies a directory which will be propagated to the persistence root directory on start-up. This is most powerful with file systems which support block cloning, such as ReFS on Windows. This allows even very large state snapshots to be used repeatedly without having to worry about mutating the original dataset on disk. When using ReFS the state copy for even large state directories can be very fast since the duration is primarily proportional to the number of files in the tree rather than the size of the files being cloned. The storage requirements are also minimal as all data will be handled in a copy-on-write manner.
* remove dependency on cxxopts exception types (#542)Stefan Boberg2023-11-151-10/+13
| | | | | | changed options parsing so that we don't depend on cxxopts exception types this makes it possible to use any cxxopts-version including beyond 3.0.0
* option for zenserver - `--http-forceloopback` (#516)Dan Engelbrecht2023-11-091-0/+12
| | | | * New option for zenserver - `--http-forceloopback` which forces opening of the server http server using loopback (local) connection (UE-199776) * add fallback to local connection for asio if we get access denied on public port
* spdlog implementation hiding (#498)Stefan Boberg2023-11-061-4/+8
| | | | | | | | | this change aims to hide logging internals from client code, in order to make it easier to extend and take more control over the logging process in the future. As a bonus side effect, the generated code is much tighter (net delta around 2.5% on the resulting executable which includes lots of thirdparty code) and should take less time to compile and link. Client usage via macros is pretty much unchanged. The main exposure client code had to spdlog internals before was the use of custom loggers per subsystem, where it would be common to have `spdlog::logger` references to keep a reference to a logger within a class. This is now replaced by `zen::LoggerRef` which currently simply encapsulates an actual `spdlog::logger` instance, but this is intended to be an implementation detail which will change in the future. The way the change works is that we now handle any formatting of log messages in the zencore logging subsystem instead of relying on `spdlog` to manage this. We use the `fmt` library to do the formatting which means the client usage is identical to using `spdlog`. The formatted message is then forwarded onto any sinks etc which are still implememted via `spdlog`.
* New GC implementation (#459)Dan Engelbrecht2023-10-301-0/+8
| | | - Feature: New garbage collection implementation, still in evaluation mode. Enabled by `--gc-v2` command line option
* statsd metrics reporting (#496)Stefan Boberg2023-10-251-0/+12
| | | | | added support for reporting metrics via statsd style UDP messaging, which is supported by many monitoring solution providers this change adds reporting only of three cache related metrics (hit/miss/put) but this should be extended to include more metrics after additional evaluation
* merge disk and memory layers (#493)Dan Engelbrecht2023-10-241-0/+11
| | | | - Feature: Added `--cache-memlayer-sizethreshold` option to zenserver to control at which size cache entries get cached in memory - Changed: Merged cache memory layer with cache disk layer to reduce memory and cpu overhead
* add `flush` command and more gc status info (#483)Dan Engelbrecht2023-10-181-2/+2
| | | | | | - Feature: New endpoint `/admin/flush ` to flush all storage - CAS, Cache and ProjectStore - Feature: New command `zen flush` to flush all storage - CAS, Cache and ProjectStore - Improved: Command `zen gc-status` now gives details about storage, when last GC occured, how long until next GC etc - Changed: Cache access and write log are disabled by default
* added command line option to start server clean (#481)Stefan Boberg2023-10-171-0/+4
| | | when specified with `--clean`, the data directory will be wiped clean at startup
* Merge remote-tracking branch 'origin/main' into zs/default-port-changeStefan Boberg2023-10-121-0/+2
|\
| * adjust resource usage for dedicated servers (#466)Stefan Boberg2023-10-121-0/+2
| | | | | | | | | | | | | | | | | | when dedicated mode is enabled via `--dedicated` or `server.dedicated` then we tune http.sys server settings to be more suitable for a shared server initially we tune two things * the thread pool used to service I/O requests allows a larger number of threads to be created when needed. The minimum thread count is unchanged but in dedicated server mode we double the maximum number of threads allowed * the http.sys request queue length (`HttpServerQueueLengthProperty`) is increased to 50,000 in dedicated mode. The regular default is 1,000
* | Change default port to 8558zousar2023-10-111-1/+1
|/ | | | Changes the default port without altering config for shared instances.
* remove legacy compute interfaces (#461)Stefan Boberg2023-10-111-150/+0
| | | | | * removed legacy compute code, which will be replaced with a new implementation in the future * also updated references to Jupiter storage
* cache reference tracking (#455)Dan Engelbrecht2023-10-101-0/+10
| | | | | - Feature: Add caching of referenced CId content for structured cache records, this avoid disk thrashing when gathering references for GC - disabled by default, enable with `--cache-reference-cache-enabled` - Improvement: Faster collection of referenced CId content in project store
* zenserver project restructuring (#442)Stefan Boberg2023-10-061-453/+441
|
* added --quiet option to suppress default logging to stdout (#446)Stefan Boberg2023-10-041-0/+2
| | | | added --quiet option for zenserver to suppress default logging to stdout
* removed websocket protocol support(#445)Stefan Boberg2023-10-041-16/+0
| | | removed websocket support since it is not used right now and is unlikely to be used in the future
* Limit size of memory cache layer (#423)Dan Engelbrecht2023-10-021-5/+34
| | | | | | | | - Feature: Limit the size ZenCacheMemoryLayer may use - `--cache-memlayer-targetfootprint` option to set which size (in bytes) it should be limited to, zero to have it unbounded - `--cache-memlayer-maxage` option to set how long (in seconds) cache items should be kept in the memory cache Do more "standard" GC rather than clearing everything. Tries to purge memory on Get/Put on the fly if exceeding limit - not sure if we should have a polling thread instead of adding overhead to Get/Put (however light it may be).
* lightweight gc (#431)Dan Engelbrecht2023-10-021-0/+10
| | | | | | - Feature: Add lightweight GC that only removes items from cache/project store without cleaning up data referenced in Cid store - Add `skipcid` parameter to http endpoint `admin/gc`, defaults to "false" - Add `--skipcid` option to `zen gc` command, defaults to false - Add `--gc-lightweight-interval-seconds` option to zenserver
* http and httpsys config options (#401)Dan Engelbrecht2023-09-141-2/+41
| | | | * Added `--http-threads`, `--httpsys-async-work-threads`, `--httpsys-enable-request-logging` and `--httpsys-enable-async-response` command line options to zenserver * remove unused CreateHttpSysServer
* add `cache-write-log` and `cache-access-log´ configuration options (#394)Dan Engelbrecht2023-09-111-0/+16
| | | * add `cache-write-log` and `cache-access-log´ configuration options
* add `--write-config` to zenserver options (#382)Dan Engelbrecht2023-09-011-7/+23
| | | | | | | | | | - Feature: `zen up` command has two new command line options - `--config <file_path>` tells zenserver to start with a specific config file - `--owner-pid <pid>` tells zenserver to start with a owning process id - Feature: `zen attach` command to add additional owning processes to a running zenserver instance - `--owner-pid <pid>` adds pid to running zenserver instance list of owning processes - Feature: `--write-config` command line option for zenserver - `--write-config <file_path>` path to a file which will contain a lua config file for zenserver combining all command line options and optional lua config files - Improvement: `zen up` command will check if zenserver is currently running before starting up a new instance
* lua config file improvements (#379)Dan Engelbrecht2023-08-311-300/+791
| | | | | | - Bugfix: All options given on command line now overrides lua config file settings - Improvement: All options available from command line can now be configured in the lua config file (with a few exceptions such as `owner-pid`, `install` and `uninstall`) We can now also generate a Lua config (just string so far) that includes all options given on command line together with any optional Lua input config file. The idea here is to be able to save config options in the future.
* Add `--gc-projectstore-duration-seconds` option (#281)Dan Engelbrecht2023-05-161-10/+12
| | | | | | * Add `--gc-projectstore-duration-seconds` option * Cleanup lua gc options parsing * Remove dead configuration values * changelog
* Remove ATL header usage (#306)Stefan Boberg2023-05-151-0/+1
| | | ATL has been used here and there as a convenience. Given that this is a legacy component and not always something which gets installed along with the compiler we hereby remove the dependency altogether in favour of our own simple wrappers
* Low disk space detector (#277)Dan Engelbrecht2023-05-091-4/+12
| | | | * - Feature: Disk writes are now blocked early and return an insufficient storage error if free disk space falls below the `--low-diskspace-threshold` value * Never keep an entry in m_ChunkBlocks that points to a nullptr
* add ip and username to sentry reports if allowed in settings (#276)Dan Engelbrecht2023-05-081-0/+3
| | | | * add ip and username to sentry reports if allowed in settings * add --sentry-allow-personal-info command line options to zenserver
* replace use of cxxopts::OptionParseException in our codeStefan Boberg2023-05-081-3/+10
| | | | later versions of cxxopts changed the signatures of exceptions. This change adds zen::OptionParseException to replace it
* move testing and observability code to zenhttp (#266)Stefan Boberg2023-05-021-6/+6
|
* moved source directories into `/src` (#264)Stefan Boberg2023-05-021-0/+902
* moved source directories into `/src` * updated bundle.lua for new `src` path * moved some docs, icon * removed old test trees