feat: add use_local_tz configuration #908

Merged
maximilien merged 2 commits from ragazenta/garage:feat/local-timezone into main 2024-12-01 13:23:25 +00:00
Contributor

Used in lifecycle_worker to determine midnight time.

Midnight UTC might be working hour in another timezone. This commit add a boolean use_local_tz config, if it's true, determine midnight time in local timezone instead.

Used in lifecycle_worker to determine midnight time. Midnight UTC might be working hour in another timezone. This commit add a boolean `use_local_tz` config, if it's true, determine midnight time in local timezone instead.
ragazenta added 1 commit 2024-11-22 22:45:51 +00:00
feat: add use_local_tz configuration
Some checks failed
ci/woodpecker/pr/debug Pipeline failed
e478f865cb
Used in lifecycle_worker to determine midnight time
maximilien added the
kind
usability
label 2024-11-22 22:47:04 +00:00
Owner

This could lead to interesting behaviors if not all nodes share the same local TZ settings... Nothing dangerous, but maybe some unexpected?

This could lead to interesting behaviors if not all nodes share the same local TZ settings... Nothing dangerous, but maybe some unexpected?
ragazenta force-pushed feat/local-timezone from e478f865cb to 4c1bf42192 2024-11-22 22:51:42 +00:00 Compare
Author
Contributor

This is only used to determine when the lifecycle_worker starts. Currently we only use single node setup.

If I understand correctly, the node with earlier timezone will win, no?

Fixes: #899

This is only used to determine when the lifecycle_worker starts. Currently we only use single node setup. If I understand correctly, the node with earlier timezone will win, no? Fixes: #899
Owner

Well from my understanding workers might start at different times on different nodes depending on the local configured TZ

Well from my understanding workers might start at different times on different nodes depending on the local configured TZ
Owner

@ragazenta do you mind adding something to the reference configuration?

@ragazenta do you mind adding something [to the reference configuration](https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/main/doc/book/reference-manual/configuration.md)?
maximilien added the
scope
documentation
label 2024-11-24 09:52:01 +00:00
maximilien self-assigned this 2024-11-24 09:52:03 +00:00
maximilien removed their assignment 2024-11-24 09:52:21 +00:00
maximilien requested review from maximilien 2024-11-24 09:52:31 +00:00
ragazenta added 1 commit 2024-11-25 03:35:56 +00:00
doc: add use_local_tz configuration
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
0fd3c0e794
maximilien approved these changes 2024-12-01 13:23:13 +00:00
maximilien merged commit 3661a597fa into main 2024-12-01 13:23:25 +00:00
ragazenta deleted branch feat/local-timezone 2024-12-02 03:41:26 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#908
No description provided.