Skip to content

Commit

Permalink
refactor(safeguard): Setting default high value on item threshold (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert committed Apr 5, 2018
1 parent 72ab6b7 commit 5ae4fff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions igor-web/config/igor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@ netflix:
spinnaker:
build:
pollInterval: 30
pollingSafeguard:
# A lower value can help prevent accidental re-triggers of pipelines, but may require hands-on operations if
# set low.
# See code documentation for more details. Class [PollingSafeguardProperties] in
# https://github.com/spinnaker/igor/blob/master/igor-web/src/main/groovy/com/netflix/spinnaker/igor/IgorConfigurationProperties.groovy#L47
itemUpperThreshold: 1000


endpoints.health.sensitive: false

spring.jackson.serialization.write_dates_as_timestamps: false



#artifact:
# This is a feature toggle for decoration of artifacts.
# decorator:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ class IgorConfigurationProperties {
/**
* Defines the upper threshold for number of new cache items before a cache update cycle will be completely
* rejected. This is to protect against potentially re-indexing old caches due to downstream service errors.
* Once this threshold is tripped, API-driven resolution may be required.
* Once this threshold is tripped, API-driven resolution may be required. By default set higher than most
* use cases would require since it's a feature that requires more hands-on operations.
*/
int itemUpperThreshold = 10
int itemUpperThreshold = 1000
}

@NestedConfigurationProperty
Expand Down

0 comments on commit 5ae4fff

Please sign in to comment.