aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* individual gc stats (#506)Dan Engelbrecht2023-10-3014-553/+966
| | | | | - Feature: New parameter for endpoint `admin/gc` (GET) `details=true` which gives details stats on GC operation when using GC V2 - Feature: New options for zen command `gc-status` - `--details` that enables the detailed output from the last GC operation when using GC V2
* New GC implementation (#459)Dan Engelbrecht2023-10-3021-141/+2701
| | | - Feature: New garbage collection implementation, still in evaluation mode. Enabled by `--gc-v2` command line option
* added missing includes (#504)Stefan Boberg2023-10-2719-0/+32
| | | | | this change adds some includes to files which "inherit" includes from elsewhere this was exposed on another branch when removing some heavy dependencies from central headers
* fixed missing context for cache record PUT operations (#503)Stefan Boberg2023-10-271-2/+6
|
* fix CacheBucket::CollectGarbage removing standalone entries without an ↵Dan Engelbrecht2023-10-271-4/+7
| | | | exclusive lock (#502)
* block sending error reports from sentry_sink to Sentry unless the log is ↵Dan Engelbrecht2023-10-271-0/+4
| | | | actually an error log (#501)
* only measure a variable integer once where we can (#500)Dan Engelbrecht2023-10-252-7/+19
|
* eliminate redundant logging code (#499)Stefan Boberg2023-10-2510-1136/+759
| | | | | | | | | zenutil and zenserver both contain very similar logging setup code and this change aims to make them have most code in common. * fullformatter/jsonformatter/RotatingFileSink are moved into dedicated header files in zenutil * zenserver `InitializeLogging`/`ShutdownLogging` are renamed `InitializeServerLogging`/`InitializeServerLogging` * these now call into the common zenutil `BeginInitializeLogging`/`FinishInitializeLogging` in addition to setting up server custom logging * `std::filesystem::path` is now logged after stripping any `\\\\?\\` prefix for readability
* statsd metrics reporting (#496)Stefan Boberg2023-10-2518-14/+812
| | | | | 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
* New rotating file logger that keeps on running regardless of errors (#495)Dan Engelbrecht2023-10-253-14/+307
| | | * New rotating file logger that keeps on running regardless of errors
* removed HttpCidStore (#497)Stefan Boberg2023-10-244-165/+0
|
* merge disk and memory layers (#493)Dan Engelbrecht2023-10-2411-1134/+809
| | | | - 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
* chunking moved to zenstore (#490)Stefan Boberg2023-10-234-1241/+438
| | | | | * moved chunking into zenstore * removed vestiges of experimental chunking command
* fix m_LastFullGcDuration, m_LastFullGCDiff, m_LastFullGcDuration and ↵Dan Engelbrecht2023-10-233-28/+23
| | | | m_LastLightweightGcDuration stats (#494)
* Remove any unreferenced blocks in block store on open (#492)Dan Engelbrecht2023-10-235-17/+28
| | | * Remove any unreferenced blocks in block store on open
* Filter expired cache entries against ExpiredKeys - not CAS entries to retain ↵Dan Engelbrecht2023-10-231-40/+23
| | | | (#491)
* typedef for std streaming to StringBuilderStefan Boberg2023-10-201-0/+2
|
* explicit ChunkingLinearAllocatorStefan Boberg2023-10-201-1/+1
|
* more cleanup from sb/protoStefan Boberg2023-10-203-16/+30
|
* improve error handling when parsing http requests (#489)Dan Engelbrecht2023-10-201-6/+36
| | | * catch exceptions in HttpRequestParser::OnMessageComplete() callback
* place tests in own group (for sln) (#488)Stefan Boberg2023-10-204-0/+4
|
* added HttpClient::GetBaseUriStefan Boberg2023-10-201-1/+2
| | | | mostly useful when reporting errors
* Don't prune block locations due to missing blocks a startup (#487)Dan Engelbrecht2023-10-205-147/+113
| | | | | | * Don't prune block locations due to missing blocks a startup This makes the behaviour consistent with FileCas - you can have an index that is not fully backed by data. Asking for a location that is not backed by data results in getting an empty result back Also, don't try to GC blocks that are unknown to the block store at the time of snapshot (to avoid removing data that comes in after GatherReferences in GC)
* Cache (rpc) activitity recording improvements (#482)Stefan Boberg2023-10-209-96/+816
| | | | | | | this adds a new RPC recording path aimed at more continuous recording and analysis of recorded sessions the new strategy is implemented alongside the original in order to retain the ability to read the older format the main difference between v2 and v1 is that the new strategy splits the recording into segments which are independent from each other. This is done to enable long running sessions with automatic disk cleanup (not implemented yet), appending to an existing recording (not implemented) and/or partial analysis and processing. The recorder will start a new segment when some criteria is fulfilled, including the number of files in the segment directory, disk footprint etc
* clean up GcContributor and GcStorage to be pure interfaces (#485)Dan Engelbrecht2023-10-2010-46/+31
|
* Add --skip-delete option to gc command (#484)Dan Engelbrecht2023-10-207-2/+23
| | | | - Feature: Add `--skip-delete` option to gc command - Bugfix: Fix implementation when claiming GC reserve during GC
* add `flush` command and more gc status info (#483)Dan Engelbrecht2023-10-1813-68/+345
| | | | | | - 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-174-30/+48
| | | when specified with `--clean`, the data directory will be wiped clean at startup
* removed unnecessary vector in ZenCacheMemoryLayer::DropStefan Boberg2023-10-171-3/+2
|
* fix mem layer total count (#480)Dan Engelbrecht2023-10-172-6/+17
| | | * fix calculation of ZenCacheMemoryLayer::m_TotalSize
* Merge branch 'main' of https://github.com/EpicGames/zenStefan Boberg2023-10-171-0/+2
|\
| * minor - fix references size arrayDan Engelbrecht2023-10-171-0/+2
| |
* | minor: fixed some typosStefan Boberg2023-10-171-3/+2
|/
* added temporary admin/mi_collect handler (#479)Stefan Boberg2023-10-171-0/+40
| | | allows testing impact of calling mi_collect on a running server
* don't call compact references if caching is not enabled (#478)Dan Engelbrecht2023-10-171-6/+12
|
* rewite state marker at startup (#477)Dan Engelbrecht2023-10-171-6/+4
| | | * rewrite state_marker at startup
* support for multiple http servers (#473)Stefan Boberg2023-10-1314-393/+559
| | | | | | * added support for having multiple http servers active in one session * added configuration API to pluggable transports * removed pimpl pattern from some pluggable transports implementations
* improved http.sys initialization diagnostics and amended logic for dedicated ↵Stefan Boberg2023-10-131-40/+71
| | | | servers (#475)
* restructured zenhttp (#472)Stefan Boberg2023-10-1316-7/+6
| | | separating the http server implementations into a directory and moved diagsvcs into zenserver since it's somewhat hard-coded for it
* faster oplog iteration (#471)Dan Engelbrecht2023-10-137-44/+72
| | | | | * use a CbObjectView instead of CbObject to avoid creating IOBufferCore instances * use BasicFileBuffer directly where possible * changelog
* Merge remote-tracking branch 'origin/main' into zs/default-port-changeStefan Boberg2023-10-1217-50/+682
|\
| * Update README.mdStefan Boberg2023-10-121-1/+1
| |
| * added initial README.mdStefan Boberg2023-10-121-0/+5
| |
| * restructured transports SDK for easier UE integration (#470)Stefan Boberg2023-10-126-4/+14
| |
| * added logging utility functions (from sb/proto) (#469)Stefan Boberg2023-10-122-0/+549
| | | | | | these allow standalone programs to share much of the logging setup from zenserver
| * skip lightweight GC if full GC is due soon (#467)Stefan Boberg2023-10-121-20/+30
| | | | | | | | | | | | GC will now skip a lightweight GC if a full GC is due to run within the next lightweight GC interval also fixed some minor typos
| * adjust resource usage for dedicated servers (#466)Stefan Boberg2023-10-127-26/+84
| | | | | | | | | | | | | | | | | | 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-119-13/+13
|/ | | | Changes the default port without altering config for shared instances.
* added explicit implementation of IoHash equals operator (#464)Stefan Boberg2023-10-111-0/+2
| | | | | | | | | * added explicit implementation of IoHash equals and less than operator using memcpy This improves codegen on MSVC in particular. Without this the operator is not inlined and consists of 20 individual (not in a loop) byte-by-byte comparisons each with an associated branch. With this change we get three comparisons (two uint64, one uint32) and three branches. So less pressure on branch predictors and as the code gets inlined the predictor should hopefully also function better.
* pluggable asio transport (#460)Stefan Boberg2023-10-1116-117/+607
| | | | | | | | | added pluggable transport based on asio. This is in an experimental state and is not yet a replacement for httpasio even though that is the ultimate goal also moved plugin API header into dedicated part of the tree to clarify that it is meant to be usable in isolation, without any dependency on zencore et al moved transport implementations into dedicated source directory in zenhttp note that this adds code to the build but nothing should change at runtime since the instantiation of the new code is conditional and is inactive by default