HomePhabricator

cache: vary statsd_server with hiera
874c606e6f0cUnpublished

Authored by hashar on Oct 28 2015, 8:06 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

cache: vary statsd_server with hiera

On the beta cluster the Varnish caches have a few process that reference
the prodution statsd host:

/usr/local/bin/varnishstatsd --statsd-server=statsd.eqiad.wmnet \

--key-prefix=varnish.eqiad.backends

/usr/local/bin/varnishxcps --statsd-server=statsd.eqiad.wmnet
/usr/local/bin/varnishrls --statsd-server=statsd.eqiad.wmnet

Update the role::cache::* classes to use the generic hiera key 'statsd'
which is defined with:

hieradata/labs.yaml:# Labs statsd instance
hieradata/labs.yaml:statsd: labmon1001.eqiad.wmnet:8125
hieradata/common.yaml:# Main statsd instance
hieradata/common.yaml:statsd: statsd.eqiad.wmnet:8125

The three python scripts are in modules/varnish/files they recognize the
'host:port' format and default the port to 8125.

The change for production would be:

  • --statsd-server=statsd.eqiad.wmnet

+ --statsd-server=statsd.eqiad.wmnet:8125

Such a change could have impacted an Icinga check_proc command, but
there is apparently none defined.

Bug: T116898
Change-Id: I51c754fbec577a73e258922d4fc2054e9b1a854a

Details

Committed
hasharJun 30 2016, 12:50 PM
Parents
rOPUP8c0e34c5600b: Add three more jessie-based image scalers
Branches
Unknown
Tags
Unknown
References
refs/changes/90/249490/6
ChangeId
I51c754fbec577a73e258922d4fc2054e9b1a854a