Page MenuHomePhabricator
Paste P12567

ProductionServices.php has cloudelastic-{psi,omega}-eqiad ports mixed up
ActivePublic

Authored by EBernhardson on Fri, Sep 11, 1:51 AM.
As a system administrator i would like consistent naming between clusters so I make fewer mistakes translating commands between services
When cloudelastic was configured the names and ports were mixed up. Concretely this means that all indices in the omega and psi clusters are inverted within cloudelastic, because the configuration has the names flipped. This "works" but will be mental overhead and the source of small mistakes.
```
ebernhardson@mwmaint1002:~$ for port in 9243 9443 9643; do echo $port: $(curl -s https://cloudelastic.wikimedia.org:$port | jq '.cluster_name'); done
9243: "cloudelastic-chi-eqiad"
9443: "cloudelastic-omega-eqiad"
9643: "cloudelastic-psi-eqiad"
```
operations/mediawiki-config wmf-config/ProductionServices.php
```
'cloudelastic-chi' => [ ..., 'port' => 9243 ],
'cloudelastic-psi' => [ ..., 'port' => 9443 ],
'cloudelsatic-omega' => [ ..., 'port' => 9643 ],
```

Event Timeline