Skip to content

Set new defaults for caches and stores#2702

Open
aduffeck wants to merge 2 commits intoopencloud-eu:mainfrom
aduffeck:fix-nats-ttl
Open

Set new defaults for caches and stores#2702
aduffeck wants to merge 2 commits intoopencloud-eu:mainfrom
aduffeck:fix-nats-ttl

Conversation

@aduffeck
Copy link
Copy Markdown
Member

See #2681 for more details.

fixes #2681

@aduffeck aduffeck requested a review from rhafer May 5, 2026 13:57
Nodes: []string{"127.0.0.1:9233"},
Database: "storage-system",
TTL: 24 * 60 * time.Second,
TTL: 24 * 60 * 60 * time.Second,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 how about 24 * time.Hour? But anyway, this is an memory Store by default, did you really want to change the value.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to time.Hour. And yes, I think it also makes sense fix the 24m vs 24h bug for the memory stores and set the TTL values as discussed in the linked issue.

Comment thread services/storage-users/pkg/config/defaults/defaultconfig.go Outdated
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 7, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nats streams max age should be configured

2 participants