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.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or 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
ChangeId
I51c754fbec577a73e258922d4fc2054e9b1a854a

Commit No Longer Exists

This commit no longer exists in the repository.