Commit Graph

3 Commits

Author SHA1 Message Date
Utku Ozdemir
89e8a62340
fix: pass the logger to machine logs circular buffer
We were not passing a logger to this, so its logs were going nowhere.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
2024-08-21 10:10:05 +02:00
Utku Ozdemir
b7a06208e9
feat: use circular buffer's new persistence option for machine logs
Switch from the old machine log storage approach to using the new persistence feature in the go-circular: https://github.com/siderolabs/go-circular/pull/4

Implement a migration code to migrate from old format to the new format when a machine log buffer is initialized.

Move some hardcoded log buffer settings into config (CLI args).

Use a default jitter of 0.1 (10+-1 minutes).

Rework the CLI arg names to be consistent.

Closes siderolabs/omni#118.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
2024-06-10 20:49:57 +02:00
Andrey Smirnov
dfcbaae7d0
chore: initial commit
Omni is source-available under BUSL.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Co-Authored-By: Artem Chernyshev <artem.chernyshev@talos-systems.com>
Co-Authored-By: Utku Ozdemir <utku.ozdemir@siderolabs.com>
Co-Authored-By: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
Co-Authored-By: Philipp Sauter <philipp.sauter@siderolabs.com>
Co-Authored-By: Noel Georgi <git@frezbo.dev>
Co-Authored-By: evgeniybryzh <evgeniybryzh@gmail.com>
Co-Authored-By: Tim Jones <tim.jones@siderolabs.com>
Co-Authored-By: Andrew Rynhard <andrew@rynhard.io>
Co-Authored-By: Spencer Smith <spencer.smith@talos-systems.com>
Co-Authored-By: Christian Rolland <christian.rolland@siderolabs.com>
Co-Authored-By: Gerard de Leeuw <gdeleeuw@leeuwit.nl>
Co-Authored-By: Steve Francis <67986293+steverfrancis@users.noreply.github.com>
Co-Authored-By: Volodymyr Mazurets <volodymyrmazureets@gmail.com>
2024-02-29 17:19:57 +04:00