aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 0.2.31-pre1v0.2.31-pre1Dan Engelbrecht2023-11-091-1/+1
|
* removed duplicate and unused constantsStefan Boberg2023-11-091-8/+0
|
* reduce number of files generated on shared instances (#524)Stefan Boberg2023-11-093-1/+9
|
* 0.2.31-pre0v0.2.31-pre0Dan Engelbrecht2023-11-081-1/+1
|
* don't try to close NewBlockFile if it hasn't been created (#523)Dan Engelbrecht2023-11-082-1/+2
| | | * Don't try to close NewBlockFile if it hasn't been created
* disk layer gc and error/warnings cleanup (#515)Dan Engelbrecht2023-11-087-80/+134
| | | | | | | - Improvement: Use GC reserve when writing index/manifest for a disk cache bucket when disk is low when available - Improvement: Demote errors to warning for issues that are not critical and we handle gracefully - Improvement: Treat more out of memory errors from windows as Out Of Memory errors Fixed wrong sizeof() statement for compactcas index (luckily the two structs are of same size)
* implemented openssl-free encryption for Windows (#520)Stefan Boberg2023-11-084-14/+196
| | | trims 40% off the (Windows) executable size
* changed logic around sponsor process monitoring (#522)Stefan Boberg2023-11-082-1/+2
| | | with this change, any sponsor is registered synchronously at startup, instead of one second after.
* removed zstd references (#521)Stefan Boberg2023-11-082-4/+2
|
* Don't put cache entries into the memory cache on Put, only on Get (#518)Dan Engelbrecht2023-11-073-21/+25
|
* factored out some compiler definitions etc into zenbase (#517)Stefan Boberg2023-11-0736-343/+376
| | | | | this is a header-only library which mostly contains definitions to support different platforms and compilers. It is part of the zen codebase but is intended to be consumable separately to zenbase etc to support standalone transport plug-ins and similar.
* bump xmake CI version to 2.8.2 (#514)Dan Engelbrecht2023-11-073-18/+13
| | | | * bump xmake CI version to 2.8.2 * show test times in log
* spdlog implementation hiding (#498)Stefan Boberg2023-11-0646-515/+823
| | | | | | | | | 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`.
* gc v2 tests (#512)Dan Engelbrecht2023-11-0613-172/+394
| | | | | | | | | | * set MaxBlockCount at init * properly calculate total size * basic blockstore compact blocks test * correct detection of block swap * Use one implementation for CreateRandomBlob * reduce some data sets to increase speed of tests * reduce test time * rename BlockStoreCompactState::AddBlock -> BlockStoreCompactState::IncludeBlock
* statsd for cas (#511)Dan Engelbrecht2023-11-068-27/+73
| | | | * separate statsd interfaces so they can be accessible to zenstore * statsd for cas
* fixed issue where file log sink would get the wrong pattern assigned (#513)Stefan Boberg2023-11-062-12/+13
| | | | this made the file log emit relative timing instead of an absolute timestamp prefix
* reduce cachebucket mem (#509)Dan Engelbrecht2023-11-063-293/+449
| | | | | | | * reduce memory footprint for disk cache separate dense arrays for rawhash+rawsize and memcache buffer * don't write RawHash/RawSize for buckets with no such metadata * helper functions * make index into metadata and cached payload type safe * helper functions for memcached
* zen copy-state command to copy a zenserver data directory without the bulk ↵Dan Engelbrecht2023-11-064-0/+207
| | | | | data (#510) * zen copy-state command to copy a zenserver data directory without the bulk data
* multithread cache bucket (#508)Dan Engelbrecht2023-11-064-277/+324
| | | | * Multithread init and flush of cache bucket * tweaked threading cound for bucket discovery, disklayer flush and gc v2
* keep a "null" iobuffer core to reduce redundant memory allocations (#507)Dan Engelbrecht2023-11-062-1/+7
|
* individual gc stats (#506)Dan Engelbrecht2023-10-3015-553/+969
| | | | | - 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
* fix changelogDan Engelbrecht2023-10-301-1/+1
|
* New GC implementation (#459)Dan Engelbrecht2023-10-3022-141/+2702
| | | - Feature: New garbage collection implementation, still in evaluation mode. Enabled by `--gc-v2` command line option
* set up arch properly when running tests (mac) (#505)Stefan Boberg2023-10-282-0/+5
|
* 0.2.30v0.2.30Dan Engelbrecht2023-10-271-1/+1
|
* 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
* 0.2.30-pre0v0.2.30-pre0Dan Engelbrecht2023-10-271-1/+1
|
* fixed missing context for cache record PUT operations (#503)Stefan Boberg2023-10-272-2/+7
|
* fix CacheBucket::CollectGarbage removing standalone entries without an ↵Dan Engelbrecht2023-10-272-4/+8
| | | | exclusive lock (#502)
* block sending error reports from sentry_sink to Sentry unless the log is ↵Dan Engelbrecht2023-10-272-0/+7
| | | | actually an error log (#501)
* 0.2.29v0.2.29Dan Engelbrecht2023-10-261-1/+1
|
* only measure a variable integer once where we can (#500)Dan Engelbrecht2023-10-253-7/+20
|
* 0.2.29-pre0v0.2.29-pre0Dan Engelbrecht2023-10-251-1/+1
|
* 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-2519-14/+813
| | | | | 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-254-15/+309
| | | * New rotating file logger that keeps on running regardless of errors
* removed HttpCidStore (#497)Stefan Boberg2023-10-245-165/+1
|
* merge disk and memory layers (#493)Dan Engelbrecht2023-10-2412-1134/+811
| | | | - 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-232-40/+24
| | | | (#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-202-6/+37
| | | * 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-206-147/+114
| | | | | | * 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-2010-96/+821
| | | | | | | 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