aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* close thread pool + parallel CasImpl::Initialize (#576)Dan Engelbrecht2023-11-282-4/+18
| | | | * close thread pool at destruction * parallell casimpl::initialize
* moved LuaConfig code so it can be used outside of config.cpp (#575)Stefan Boberg2023-11-283-540/+705
|
* tracing for gcv2 (#574)Dan Engelbrecht2023-11-286-17/+53
| | | | | | - Improvement: Added more trace scopes for GCv2 - Bugfix: Make sure we can override flags to "false" when running `zen gc` commmand - `smallobjects`, `skipcid`, `skipdelete`, `verbose`
* Don't call spdlog::drop_all, spdlog::shutdown will do that for us in a ↵Dan Engelbrecht2023-11-271-1/+0
| | | | controlled manner (#573)
* fix missing locks/sync of log position when writing index snapshots (#572)Dan Engelbrecht2023-11-272-4/+9
| | | | * fix missing locks/sync of log position when writing index snapshots * changelog
* gcv2 tests for project store and bugfixes (#571)Dan Engelbrecht2023-11-272-84/+213
| | | * gcv2 tests for project store and bugfixes
* optimized index snapshot reading/writing (#561)Stefan Boberg2023-11-2717-534/+1074
| | | | | the previous implementation of in-memory index snapshots serialise data to memory before writing to disk and vice versa when reading. This leads to some memory spikes which end up pushing useful data out of system cache and also cause stalls on I/O operations. this change moves more code to a streaming serialisation approach which scales better from a memory usage perspective and also performs much better
* gc stop command (#569)v0.2.36-pre2Dan Engelbrecht2023-11-278-7/+125
| | | | | - Feature: New endpoint `/admin/gc-stop` to cancel a running garbage collect operation - Feature: Added `zen gc-stop` command to cancel a running garbage collect operation - Bugfix: GCv2 - make sure to discover all projects and oplogs before checking for expired data
* Add GC Cancel/Stop (#568)Dan Engelbrecht2023-11-247-138/+353
| | | | - GcScheduler will now cancel any running GC when it shuts down. - Old GC is rather limited in *when* it reacts to cancel of GC. GCv2 is more responsive.
* fix truncation of sentry hostnameDan Engelbrecht2023-11-241-1/+1
|
* Updated branding (#567)Stefan Boberg2023-11-233-5/+5
|
* added --powercycle option (#565)Stefan Boberg2023-11-237-120/+164
| | | | | * 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
* embed html frontend content as binary compiled data (#559)Dan Engelbrecht2023-11-233-2/+7
| | | | | | - Feature: Added xmake task `updatefrontend` which updates the zip file containing the frontend html (`/src/zenserver/frontend/html.zip`) - Improvement: The frontend html content is no longer appended at the end of the executable which prevented signing, instead it is compiled in from the `/src/zenserver/frontend/html.zip` archive - Improvement: MacOS now does ad-hoc code signing by default when issuing `xmake bundle`, signing with proper cert is done on CI builds
* fix block cloning copy argument validation (#560)Stefan Boberg2023-11-224-4/+40
|
* reduce work when there are no blocks to compact (#558)Dan Engelbrecht2023-11-222-105/+115
| | | | * reduce work when there are no blocks to compact * fix lock scopes
* lined up rpc command descriptions with namesStefan Boberg2023-11-221-3/+3
|
* add command line options for compact block threshold and gc verbose (#557)Dan Engelbrecht2023-11-2112-163/+332
| | | | | | | | | | | - 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
* compact separate for gc referencer (#533)Dan Engelbrecht2023-11-2113-991/+1321
| | | | | - Refactor GCV2 so GcReferencer::RemoveExpiredData returns a store compactor, moving out the actual disk work from deleting items in the index. - Refactor GCV2 GcResult to reuse GcCompactStoreStats and GcStats - Make Compacting of stores non-parallell to not eat all the disk I/O when running GC
* zen run command (#552)Stefan Boberg2023-11-2124-675/+605
| | | | | | | | | | initial version -- this is primarily intended to be used for running stress tests and/or benchmarks example usage: `zen run -n 10 -- zenserver-test` `zen run -n 10 -- zenserver-test --ts=core.assert` run zenserver-test 10 times (testing only the `core.assert` test suite) `zen run --time 600 --basepath=d:\test_dir\test1 -- zenserver-test` keeps spawning new instances for 10 minutes (600 seconds)
* basic ZEN_ASSERT_FORMAT implementation (#556)Stefan Boberg2023-11-215-60/+131
| | | includes porting some compact binary builder code to use it since it had vestiges of the UE-side asserts
* Merge branch 'main' of https://github.com/EpicGames/zenStefan Boberg2023-11-211-1/+1
|\
| * Added HTTP verb HEAD to objstore get-object. (#554)Per Larsson2023-11-201-1/+1
| | | | | | | | | | | | | | * Added HTTP verb HEAD to objstroe get-object. * Added HTTP verb HEAD to objstore get-object. * Removed HEAD request exception for list-object.
* | minor: updated transport plugin default ports to match the new defaultsStefan Boberg2023-11-201-3/+3
|/
* moved process handling code into separate h/cpp (#555)Stefan Boberg2023-11-2010-747/+822
|
* fix named event (#553)Dan Engelbrecht2023-11-173-19/+34
| | | * fix named event timout and test, fix blocking queue
* use dynamic port assignment for tests (#545)Stefan Boberg2023-11-173-215/+216
| | | this change replaces hard-coded port numbers in tests with dynamically assigned ports, to avoid potential issues around socket lifetimes and re-use policies
* removed zen runtests command (#551)Stefan Boberg2023-11-161-29/+0
|
* blocking queue fix (#550)Dan Engelbrecht2023-11-167-54/+78
| | | | | | | | | * make BlockingQueue::m_CompleteAdding non-atomic * ZenCacheDiskLayer::Flush logging * name worker threads in ZenCacheDiskLayer::DiscoverBuckets * name worker threads in gcv2 * improved logging in ZenServerInstance * scrub threadpool naming * remove waitpid handling, we should just call wait to kill zombie processes
* add wipe prevention via file in data root dir (#548)Dan Engelbrecht2023-11-161-3/+18
| | | * if a file named root_manifest.ignore_schema_mismatch exists in the root data dir, ignore schema mismatch
* further posix event improvements (#549)Stefan Boberg2023-11-161-6/+23
| | | | | | | | * changed posix event implementation to use std::atomic instead of volatile * ensure Event::Close() can take lock before deleting the inner object * don't try to take the Event lock if the event is already signaled * changed logic around Event::Wait without time-out. this works around some apparent issues on MacOS/Linux * fix logic for posix process exit wait
* add zenserver state snapshot support (#543)Stefan Boberg2023-11-166-2/+146
| | | | | 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.
* changed posix event implementation to use std::atomic instead of volatile (#547)Stefan Boberg2023-11-162-10/+12
|
* Trim any leading slash and backslash from bucket prefix. (#541)Per Larsson2023-11-151-0/+2
|
* remove dependency on cxxopts exception types (#542)Stefan Boberg2023-11-152-31/+34
| | | | | | 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
* don't do blocking call to waitpid (#540)Dan Engelbrecht2023-11-151-35/+3
| | | | fix process wait timeout always use kill(pid, 0) to determine if process is running
* Make object store endpoint S3 compatible. (#535)Per Larsson2023-11-155-46/+435
| | | | | * Make object store endpoint S3 compatible. * Removed XML pretty printing and set object store endpoint disabled by default.
* add doctest listener so we can output when test/subtests begin (#538)Dan Engelbrecht2023-11-152-0/+53
| | | | * add doctest listener so we can output when test/subtests begin * disable sentry when running a test server
* fix race contdition when signaling shutdown of process and waiting for ↵Dan Engelbrecht2023-11-154-13/+63
| | | | completion (#539)
* add host name to sentry (#537)Dan Engelbrecht2023-11-152-7/+51
| | | * add hostname to sentry user id
* fix comparison operator for cache disk location (#534)Dan Engelbrecht2023-11-141-1/+12
| | | * proper != operator for DiskLocation
* fix index out of bounds in CacheBucket::CompactState (#532)Dan Engelbrecht2023-11-141-25/+24
| | | | | * use PayloadIndex for indexing into payload array * naming cleanup * fix metadata index in CacheBucket::CompactState
* fix potential logic error in bucket manifest readStefan Boberg2023-11-131-17/+21
|
* gc history log (#519)Dan Engelbrecht2023-11-139-199/+535
| | | | | - 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.
* If a directory is deleted while we try to traverse it, skip it and continue ↵Dan Engelbrecht2023-11-101-0/+11
| | | | (#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-101-14/+14
| | | 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)
* option for zenserver - `--http-forceloopback` (#516)Dan Engelbrecht2023-11-097-30/+67
| | | | * 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
* removed duplicate and unused constantsStefan Boberg2023-11-091-8/+0
|