danielealbano / cachegrand

cachegrand - a modern data ingestion, processing and serving platform built for today's hardware
BSD 3-Clause "New" or "Revised" License
975 stars 34 forks source link

Improve startup reporting #335

Closed danielealbano closed 1 year ago

danielealbano commented 1 year ago

This PR improves the information reported at the beginning, here the new output

$ ./cachegrand-server -c /etc/cachegrand.yaml
[2023-03-13T18:46:15Z][INFO       ][program_startup_report] cachegrand-server version v0.1.5.1-51-g60bebd96-dirty (built on 2023-04-13T18:42:45Z)
[2023-03-13T18:46:15Z][INFO       ][program_startup_report] > Debug build, compiled using gcc v12.2.0
[2023-03-13T18:46:15Z][INFO       ][program_startup_report] > Hashing algorithm in use t1ha2
[2023-03-13T18:46:15Z][INFO       ][program_startup_report] > Running on Linux daalbano-lnx-pc 5.19.0-38-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 17:33:16 UTC 2023 x86_64
[2023-03-13T18:46:15Z][INFO       ][program_startup_report] > Memory: 64210 MB total, 1955 MB swap total
[2023-03-13T18:46:15Z][INFO       ][program_startup_report] > TLS: mbed TLS 2.28.1 (kernel offloading enabled)
[2023-03-13T18:46:15Z][INFO       ][program_startup_report] > Realtime clock source <POSIX>, resolution <4 ms>
[2023-03-13T18:46:15Z][INFO       ][program_startup_report] > Monotonic clock source <Hardware (TSC)>, estimated cpu cycles per second <4.20 GHz>
[2023-03-13T18:46:15Z][INFO       ][config] Loading the configuration from /etc/cachegrand.yaml
...

Here the previous output

$ ./cachegrand-server -c /etc/cachegrand.yaml
[2023-03-13T18:47:57Z][INFO       ][config] Loading the configuration from /etc/cachegrand.yaml
[2023-03-13T18:47:57Z][INFO       ][program] cachegrand-server version v0.1.5.1-51-g5b6a4889-dirty (built on 2023-04-13T18:47:53Z)
[2023-03-13T18:47:57Z][INFO       ][program] > Debug build, compiled using gcc v12.2.0
[2023-03-13T18:47:57Z][INFO       ][program] > Hashing algorithm in use t1ha2
[2023-03-13T18:47:57Z][INFO       ][program] > TLS: mbed TLS 2.28.1 (kernel offloading enabled)
[2023-03-13T18:47:57Z][INFO       ][program] > Clock resolution: 4 ms