Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/controlplane/pkg/auditor/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ func (p *AuditLogPublisher) initJetStream() error {
if _, err := js.CreateOrUpdateStream(ctx, jetstream.StreamConfig{
Name: streamName,
Subjects: []string{subjectName},
Replicas: p.rc.Replicas,
}); err != nil {
return fmt.Errorf("creating stream: %w", err)
}

p.logger.Infow("msg", "stream created or updated", "name", streamName, "subject", subjectName)
p.logger.Infow("msg", "stream created or updated", "name", streamName, "subject", subjectName, "replicas", p.rc.Replicas)

return nil
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/cache/attestationbundle/attestationbundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
)

const (
ttl = 5 * 24 * time.Hour
maxBytes = 100 * 1024 * 1024 // 100 MB
ttl = 48 * time.Hour
maxBytes = 200 * 1024 * 1024 // 200 MB
bucket = "chainloop-attestation-bundles"
description = "Cache for attestation bundles"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/cache/natskv.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func newNATSKV[T any](cfg *config) (*natsKVCache[T], error) {
go c.watchReconnect(cfg.reconnCh)
}

cfg.logger.Infow("msg", "cache: using NATS KV backend", "bucket", cfg.bucketName, "ttl", cfg.ttl)
cfg.logger.Infow("msg", "cache: using NATS KV backend", "bucket", cfg.bucketName, "ttl", cfg.ttl, "replicas", cfg.replicas)
return c, nil
}

Expand Down
Loading