Skip to content

Commit

Permalink
Increase cache ttl for dev delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
epavlova committed Jul 3, 2019
1 parent 0f4da20 commit fad6cce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion cachingController.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ func (c *healthCheckController) updateCachedHealth(services map[string]service,

func (c *healthCheckController) scheduleCheck(mService measuredService, refreshPeriod time.Duration, timer *time.Timer) {

log.Infof("scheduleCheck check for %s at %v", mService.service.name, time.Now())
// wait
select {
case <-mService.cachedHealth.terminate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ categories:
healthcheck-categories-for: aggregate-healthcheck
data:
category.name: default
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -24,7 +24,7 @@ categories:
data:
category.name: content-publish
category.services: cms-kafka-bridge-pub-pre-prod,cms-notifier,content-ingester,document-store-api,methode-article-internal-components-mapper,methode-article-mapper,methode-content-collection-mapper,methode-content-placeholder-mapper,methode-image-binary-mapper,methode-image-set-mapper,video-mapper,wordpress-article-mapper,wordpress-image-mapper
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -35,7 +35,7 @@ categories:
data:
category.name: content-read
category.services: api-policy-component,content-public-read,document-store-api,system-healthcheck
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -46,7 +46,7 @@ categories:
data:
category.name: internalcontent-read
category.services: api-policy-component,content-public-read,document-store-api,system-healthcheck,enriched-content-read-api,internal-content-api,public-annotations-api,relations-api
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -57,7 +57,7 @@ categories:
data:
category.name: lists-publish
category.services: cms-kafka-bridge-pub-pre-prod,cms-notifier,content-ingester,document-store-api,methode-list-mapper,public-concordances-api,public-things-api,system-healthcheck
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -68,7 +68,7 @@ categories:
data:
category.name: read
category.services: api-policy-component,concept-rw-elasticsearch,content-preview,content-public-read,content-public-read-preview,document-store-api,enriched-content-read-api,internal-components-preview,internal-content-api,internal-content-preview-api,list-notifications-rw,notifications-rw,public-brands-api,public-concordances-api,public-content-by-concept-api,public-organisations-api,public-people-api,public-things-api
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -79,7 +79,7 @@ categories:
data:
category.name: concordances-read
category.services: api-policy-component,public-concordances-api,system-healthcheck
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -90,7 +90,7 @@ categories:
data:
category.name: enrichedcontent-read
category.services: api-policy-component,content-public-read,document-store-api,enriched-content-read-api,public-annotations-api,relations-api,system-healthcheck
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -101,7 +101,7 @@ categories:
data:
category.name: image-publish
category.services: binary-ingester,binary-writer,cms-kafka-bridge-pub-pre-prod,cms-notifier,content-ingester,document-store-api,methode-image-binary-mapper,methode-image-model-mapper,methode-image-set-mapper,synthetic-image-publication-monitor,system-healthcheck
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -112,7 +112,7 @@ categories:
data:
category.name: lists-read
category.services: api-policy-component,document-store-api,system-healthcheck
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -123,7 +123,7 @@ categories:
data:
category.name: system
category.services: system-healthcheck
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -134,7 +134,7 @@ categories:
data:
category.name: annotations-publish
category.services: public-annotations-api,system-healthcheck
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -145,7 +145,7 @@ categories:
data:
category.name: annotations-read
category.services: annotations-mapper,annotations-rw-neo4j,upp-next-video-annotations-mapper,pac-annotations-mapper,system-healthcheck
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"
- kind: ConfigMap
apiVersion: v1
Expand All @@ -156,5 +156,5 @@ categories:
data:
category.name: concept-search
category.services: concept-search-api,system-healthcheck
category.refreshrate: "60"
category.refreshrate: "120"
category.issticky: "false"

0 comments on commit fad6cce

Please sign in to comment.