Commit Graph

4 Commits

Author SHA1 Message Date
Syed Paymaan Raza 392bad2bd3
More copyright end year updates (#11556) 2024-08-05 14:00:32 -07:00
He Liu 422da7d7c7
Throttle fetch keys (#11060)
* Added ThroughputLimiter class.

* Throttle fetchKeys.

* cleanup.

* Increased fetchKeys rate limit for sim tests.

* Added unit.

* Resolved comments.
2023-11-16 10:30:40 -08:00
He Liu 967a546e15
Optimize physical shard move (#10962)
* Allow applyUpdates in multiple batches.

* Persist lastAppliedVersion together with a batch of updates.

* Fixed repeatedly applying the same fetched mutation.
Apply updates at different versions.

* Fixed race between removeDataShard and isInVersionedData.

* Ignore mutations earlier than `lastAppliedVersion`.

* Buggify the batch limit for applying updates.

* Implemented async load of updates.

* Fixed out-of-order version issue.

* Cleanup.

* Batch commit MoveInUpdates.

* Avoid popping unpersisted updates.

* Increment MoveInUpdates::lastAppliedVersion in MoveInUpdates::next().
Fixed MoveInUpdates::hasNext().

* Fixed loadUpdates start version.

* cleanup.

* Cleanup.

* fmt

* Commit MoveInUpdates regardless of MoveInShard status.

* Enable move restore.

* Disabled move restore and fallBackToAddingShard from ingestion failure.

* Resolved comments.

* Fixed leaks from other prs.
2023-11-07 14:19:18 -08:00
He Liu 8ad7ec6fdf
Psm ss (#9817)
* Update NativeAPI getCheckpointForRange().

* Implemented checkpoint in SS.

* clean up.

* Disabled StorageServerCheckpointTest.

* Serialized checkpoint creation and deletion.

Simplified checkpoint GC, via deleting CheckpointMetaData::dir.

* Fixed PhysicalShardMove test. Where fetchCheckpoint target range is misset.

* Minor improvements on CheckpointMetaData and DataMoveMetaData.

* fmt.

* Optimized PhysicalShardMove test

cleanup.

* Refactored ShardedRocks checkpoint/restore for psm.

* Complete ShardedRocks::restore.

* dismiss operation_obsolete, and throw actor_cancelled.

* Validate checkpoint when !asKeyValues.

* fmt.

* Don't read from uninitialized physical shard.

* Resolved commments.

* cleanup.

* Added verify_checksum_before_restore for ShardedRocks.

* Added ShardedRocksDB checkpoint/restore unit test.

* Populate CheckpointMetaData::dir in RocksDB.

* Rename MovingIn as Adding.

* Added StorageServerUtils.

* Added physical shard move in SS.

* Fix on ApplyMetaData, doFetchFile error handling etc.

* Debugging incorrect shard size.

* Create/delete checkpoints only when Physical shard move is enabled.

* Added back SHARD_ENCODE_LOCATION_METADATA.

* Fixed bytesSample incorrect issue.

Essentially dedicated CheckpointRocksDBCF as key-value based checkpoint, will need to add a new format for the file-based checkpoint.

* Cleanup.

* Cleanup & compile rocksdb with 8.1 branch.

* clean up.

* clean up.

* Allowed request_maybe_delivered error type in FetchShard.

* Added FDBRocksDBVersion.h.

* Fixed stuck fetchShard.

* Don't create checkpoint on TSS.

* Upgrade to RocksDB 8.1.1

* Cleanup.

* Fixed accidently deleted db_path and name fields.

* Improved trace event.

* Removed redundants from previuos ShardedrocksDB.

* Cleanup.

* cleanup.

* cleanup.

* reanme `state`.

* Cleanup.

* Removed excessive TraceEvent.

* * Fixed shardMap race condition on different threads
* Added *Stats, logging data move rates.
* Added `DD_PHYSICAL_SHARD_MOVE_PROBABILITY` to support hybrid data move.

* Resolved comments.

* fmt.

* Use physical shard move in PhysicalShardMoveTest.

* Enforce physical-shard-move for PhysicalShardMoveTest.

* fmt
2023-05-23 11:18:35 -07:00