aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | removed unnecessary SHA1 referencesStefan Boberg2023-12-112-2/+0
|/
* fix potential logic error in bucket manifest readStefan Boberg2023-11-131-17/+21
|
* gc history log (#519)Dan Engelbrecht2023-11-1310-199/+537
| | | | | - Feature: Writes a `gc.log` with settings and detailed result after each GC execution (version 2 only) - Break out file name rotate to allow access for gclog - CompactBinaryToJson(MemoryView Data, StringBuilderBase& InBuilder)
* package dependency clean-ups (#531)Stefan Boberg2023-11-138-63/+16
| | | | | | | | | | this change just cleans up dependency declarations in xmake.lua files, discovered while exploring a more to xrepo which catches dependency problems since it will not just place all includes in a single directory, unlike vcpkg. * removed spurious asio dependency from zenserver-test * removed rocksdb reference * add missing asio package dependency * removed catch2 reference (no longer available) * added explicit cpr reference * made some zencore package dependencies public (this is necessary because some public zencore headers pull in package headers. If you use a more strict package manager than vcpkg then you get compilation errors whenever these includes are pulled in unless you declare the dependency explicitly)
* fmt compilation fix for fmt v10+new vs build (#529)Stefan Boberg2023-11-131-8/+15
| | | VS 17.7.6 triggers some new compilation errors with certain versions of fmt::make_format_args. This should fix those errors. I don't fully understand why this is necessary, sadly my c++-fu is not strong enough.
* 0.2.31v0.2.31Dan Engelbrecht2023-11-131-1/+1
|
* 0.2.31-pre3v0.2.31-pre3Dan Engelbrecht2023-11-101-1/+1
|
* If a directory is deleted while we try to traverse it, skip it and continue ↵Dan Engelbrecht2023-11-102-0/+12
| | | | (#528)
* fix bad access to unlocked state (#527)Dan Engelbrecht2023-11-103-17/+27
| | | | * don't touch non-locked data when creating manifest * safety assert for test dir
* reduce memory footprint for bucket indexes (#526)Stefan Boberg2023-11-102-14/+15
| | | reduces memory footprint of cache index by 10% or so by limiting the maximum number of entries in a bucket to 2^32 (was 2^64)
* 0.2.31-pre2v0.2.31-pre2Dan Engelbrecht2023-11-091-1/+1
|
* option for zenserver - `--http-forceloopback` (#516)Dan Engelbrecht2023-11-098-30/+68
| | | | * 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
* 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