Files
xet-core/utils
Hoyt Koepke 610874ab04 Allow Duration and byte sizes in constants for easier use. (#495)
- Duration: Currently, we use a lot of _MS and _SEC suffixes in
constants to denote duration. This PR allows std::time::Duration to be
used directly, with values such as "10sec" or "100ms" or "1d" translated
directly into std::time::Duration.

- ByteSize: It also introduces a new utility type, ByteSize, that simply
wraps a u64 but allows the user to specify "1mb" or "45gb" as the value
when setting constant values. The suffixes mb, mib, kb, kib, gb, gib, b,
etc. are all supported, with the default being the raw value.
2025-09-19 10:59:11 -07:00
..
2024-09-11 13:30:20 -07:00

Proto

Directory where gproto files will be created

Operational helpers

  • Logs, metrics and traces
  • Configuration
  • Access to AWS services (e.g. S3)

Examples

Identify which cas_server owns a particular key

cargo run --example infra -- --server-name cas-lb.xetbeta.com:5000 --key bar
Host: 35.89.208.89
Load Stats: SystemStatus { timestamp: "2022-07-06T19:15:00Z", cpu_utilization: 0.3416666833712037 }
Host: 54.245.178.249
Load Stats: SystemStatus { timestamp: "2022-07-06T19:15:00Z", cpu_utilization: 0.2943333333333333 }
Key bar gets hashed to server "54.245.178.249"