Skip to content

Commit

Permalink
Merge branch 'main' into lporoli/ticket-770-docs-2
Browse files Browse the repository at this point in the history
  • Loading branch information
leoporoli authored Oct 9, 2023
2 parents 441455d + e6d1f5e commit 0d80f33
Show file tree
Hide file tree
Showing 15 changed files with 448 additions and 303 deletions.
4 changes: 2 additions & 2 deletions cli/cli/commands/clean/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,6 @@ func formattedUuidAndName(enclaveUuidWithName *kurtosis_engine_rpc_api_bindings.
}

func cleanUnusedImages(ctx context.Context, kurtosisBackend backend_interface.KurtosisBackend, shouldCleanAll bool) ([]string, []error, error) {
cleanedImages, cleanError := kurtosisBackend.PruneUnusedImages(ctx)
return cleanedImages, nil, cleanError
cleanedImages, cleanErr := kurtosisBackend.PruneUnusedImages(ctx)
return cleanedImages, nil, cleanErr
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ import (
"github.com/kurtosis-tech/kurtosis/container-engine-lib/lib/backend_interface/objects/port_spec"
"github.com/kurtosis-tech/kurtosis/container-engine-lib/lib/uuid_generator"
"github.com/kurtosis-tech/kurtosis/engine/launcher/args"
"github.com/kurtosis-tech/kurtosis/engine/server/engine/centralized_logs/client_implementations/persistent_volume/log_remover"
"github.com/kurtosis-tech/kurtosis/engine/server/engine/centralized_logs/client_implementations/persistent_volume/logs_clock"
"github.com/kurtosis-tech/kurtosis/engine/server/engine/centralized_logs/client_implementations/persistent_volume/volume_consts"
"github.com/kurtosis-tech/kurtosis/engine/server/engine/centralized_logs/client_implementations/persistent_volume/volume_filesystem"
"github.com/kurtosis-tech/stacktrace"
"github.com/sirupsen/logrus"
"time"
Expand Down Expand Up @@ -111,20 +107,6 @@ func CreateEngine(
removeLogsAggregatorFunc()
}
}()

// schedule log removal for log retention
go func() {
osFs := volume_filesystem.NewOsVolumeFilesystem()
realTime := logs_clock.NewRealClock()
logRemover := log_remover.NewLogRemover(osFs, realTime)
// do a first removal
logRemover.Run()

logRemovalTicker := time.NewTicker(volume_consts.RemoveLogsWaitHours)
for range logRemovalTicker.C {
logRemover.Run()
}
}()
logrus.Infof("Centralized logs components started.")

enclaveManagerUIPortSpec, err := port_spec.NewPortSpec(uint16(enclaveManagerUIPort), consts.EngineTransportProtocol, consts.HttpApplicationProtocol, defaultWait)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const (
// We instruct vector to store log files per-year, per-week (00-53), per-enclave, per-service
// To construct the filepath, we utilize vectors template syntax that allows us to reference fields in log events
// https://vector.dev/docs/reference/configuration/template-syntax/
baseLogsFilepath = "\"" + logsStorageDirpath + "%%Y/%%U/"
baseLogsFilepath = "\"" + logsStorageDirpath + "%%Y/%%V/"

uuidLogsFilepath = baseLogsFilepath + "{{ enclave_uuid }}/{{ service_uuid }}.json\""

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading

0 comments on commit 0d80f33

Please sign in to comment.