Status

Webtools
DXR
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: phrawzty, Assigned: phrawzty)

Tracking

Trunk
x86
Mac OS X

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

4 years ago
Set up templates for "cooler" and "hotter" index types on the Bunker cluster.

Active indices will be prefixed "dxr_hot_" and (relatively?) inactive indices will be prefixed "dxr_cool_".
(Assignee)

Updated

4 years ago
Assignee: nobody → dmaher
(Assignee)

Comment 1

4 years ago
$ svn ci -m 'add dxr templates to bunker; bug 1022697'
Sending        manifests/nodes/bunker/cooler.pp
Sending        manifests/nodes/bunker/hotter.pp
Adding         modules/bunker/files/dxr_cool.json
Adding         modules/bunker/files/dxr_hot.json
Transmitting file data ....
Committed revision 88939.


[dmaher@node47.bunker.scl3 ~]$ curl -XGET localhost:9200/_template/\?pretty=true
{
  "dxr_cool" : {
    "order" : 0,
    "template" : "dxr_cool_*",
    "settings" : {
      "index.routing.allocation.exclude.profile" : "hotter, master, client",
      "index.routing.allocation.include.profile" : "cooler"
    },
    "mappings" : { }
  },
  "dxr_hot" : {
    "order" : 0,
    "template" : "dxr_hot_*",
    "settings" : {
      "index.routing.allocation.exclude.profile" : "cooler, master, client",
      "index.routing.allocation.include.profile" : "hotter"
    },
    "mappings" : { }
  }
}
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
For some reason, this appears to have caused the following Puppet error on all of the SCL3 bunker servers:

Newlasticsearch::Template[dxr_cool]/File[/etc/elasticsearch/templates/dxr_cool.json]: Could not retrieve information from environment production source(s) puppet:///modules/newlasticsearch/templates/dxr_cool.json
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Assignee)

Comment 3

4 years ago
$ svn ci -m 'fix path to ES templates; bug 1022697'                                       1 ↵
Sending        cooler.pp
Sending        hotter.pp
Transmitting file data ..
Committed revision 89309.


Notice: /Stage[main]//Node[node0-91-30-940.bunker.scl3.mozilla.com]/Newlasticsearch::Template[dxr_cool]/File[/etc/elasticsearch/templates/dxr_cool.json]/ensure: defined content as '{md5}b7d2bd15d543d337ce35f22666d95221'
Status: REOPENED → RESOLVED
Last Resolved: 4 years ago4 years ago
Resolution: --- → FIXED
This warning is appearing on the puppetmasters, perhaps related to the dxr_cool template?

Jun 23 19:50:00 puppetmaster1 puppet-master[17476]: (Scope(Newlasticsearch::Template[dxr_cool])) ERROR: Must pass either var (hash) or file (string) items in configuration.
I guess a couple others, so it's not unique to dxr_cool anyways:

(Scope(Newlasticsearch::Template[compress])) ERROR: Must pass either var (hash) or file (string) items in configuration.
(Scope(Newlasticsearch::Template[compress])) ERROR: Template configuration must declare a settings item (hash).
You need to log in before you can comment on or make changes to this bug.