You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: add more log to semaphore, add benchmark CLI (#17875)
- Upgrade sub crate `watcher` and `display-more`.
- Add semaphore benchmark:
```
databend-metabench \
--rpc 'semaphore:{"semaphores":10,"capacity":5,"ttl_ms":3000,"hold_ms":1000}' \
--client 200 \
--number 100 \
--prefix "foo" \
--grpc-api-address 127.0.0.1:$grpc_port
```
- Log the proposing time of a raft-log in human-readable format.
- Collect time profiling data of a semaphore and log it when a semaphore
Permit is acquired. It includes the time spent on get/insert
permit-seq CAS loop, and the time spent on waiting for `Acquired`
event to be received.
```
"AcquirerStat{ latencies: {
seq(get/insert): 3/2: [100.1ms/300.1ms, 200.1ms/400.1ms, 250.1ms/-],
events(my_seq:4): 3 [(A-3, **A-4**)=(0.0ns-7.9ms), (D-5)=(200.0ms-200.0ms)],
total-acquired: 700.1ms } }"
```
- Log more detailed add/remove watcher events in meta-service.
0 commit comments