Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Lamassu entityCache ttls #244

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Add Lamassu entityCache ttls #244

merged 1 commit into from
Oct 2, 2024

Conversation

hbruch
Copy link
Collaborator

@hbruch hbruch commented Sep 27, 2024

This PR upgrades lamassu to 2024-09-27T11-21. This i.e. includes the stationEntityCacheMinimumTtl and stationEntityCacheMaximumTtlconfiguration options.

For these configuration options, the same value as the already configured LAMASSU_FEED_CACHE_MINIMUM_INTERVAL_IN_S is used.

@@ -53,6 +53,14 @@ org.entur.lamassu.baseUrl=${LAMASSU_BASE_URL}
org.entur.lamassu.feedupdateinterval=${LAMASSU_FEED_UPATE_INTERVAL_IN_MS:21600000}
# How long a feed should be cached, in case it is not updated in between, in seconds, default 6h
org.entur.lamassu.feedCacheMinimumTtl=${LAMASSU_FEED_CACHE_MINIMUM_INTERVAL_IN_S:21600}
# For entities, we set the cache (min and max ttl) to the feed cache interval as well.
# Note that the cache ttl should be greater than
Copy link
Member

Choose a reason for hiding this comment

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

Can you add an explanation why we do this, to make sure that future maintainers (us or others) don't run into the same problem as you did recently?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done with 10c0c36

@hbruch hbruch merged commit b41f224 into main Oct 2, 2024
1 check passed
@derhuerst derhuerst deleted the lamassu/entity-cache-ttl branch October 2, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants