mirror of
https://github.com/huggingface/xet-core.git
synced 2026-06-04 13:30:29 +08:00
- 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.
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"