-
Notifications
You must be signed in to change notification settings - Fork 276
osm: disable ticker, space k8s resyncs to 5m #2095
Conversation
c0e0e38
to
819bcf6
Compare
Not Final. TBD if/how do we want this. - OSM does not require this at this time to properly function. - Even when they don't do anything, DeepEqual over all catalog objects does take a rather quantifiable amount of cpu cycles. Signed-off-by: Eduard Serra <eduser25@gmail.com>
- Ticker disabled - Kubernetes resyncs scheduled for 5mins This is to make sure that resyncs are never the go-to behavior at testing time. Opened issue to make these programable openservicemesh#2103 Signed-off-by: Eduard Serra <eduser25@gmail.com>
Signed-off-by: Eduard Serra <eduser25@gmail.com>
da2917e
to
a4ba021
Compare
Codecov Report
@@ Coverage Diff @@
## main #2095 +/- ##
==========================================
- Coverage 58.56% 58.38% -0.19%
==========================================
Files 144 144
Lines 5906 5911 +5
==========================================
- Hits 3459 3451 -8
- Misses 2444 2457 +13
Partials 3 3
Continue to review full report at Codecov.
|
@@ -17,7 +17,8 @@ import ( | |||
|
|||
const ( | |||
// this is catalog's tick rate for ticker, which triggers global proxy updates | |||
updateAtLeastEvery = 30 * time.Second | |||
// 0 disables the ticker | |||
updateAtLeastEvery = 0 * time.Second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works.
I would have said - pull the ticker out; leave a crumb in the commit message so we can revert if we ever need this back;
I plan to introduce some configurability on it next week. Not going to be dead code, no worries. |
osm: disable config replay/resync mechs by default OSM does not hard-require periodic re-configs to guarantee state correctness in its current form. In order to help maintain this statu quo, we will disable ticker and increase the k8s resync period, which will help catch issues that break on-event updates at testing/CI time. Since we still believe periodic arbitrary resyncs could be something that we still might want to have at later time/different circumstances, to ensure config correctness, we will add configurability into ticker and resync intervals in a later patch (openservicemesh#2103). Signed-off-by: Eduard Serra <eduser25@gmail.com>
OSM does not hard-require periodic re-configs to guarantee state
correctness in its current form. In order to help maintain this statu quo,
we will disable ticker and increase the k8s resync period, which will
help catch issues that break on-event updates at testing/CI time.
Since we still believe periodic arbitrary resyncs could be something
that we still might want to have at later time/different circumstances, to
ensure config correctness, we will add configurability into ticker and
resync intervals in a later patch (Add runtime config/osm boot flags to configure ticker/resyncs #2103).
Control Plane [X]
Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
No