You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Difference between revisions of "Maps/v2/Common tasks"

From Wikitech-static
< Maps‎ | v2
Jump to navigation Jump to search
imported>Jgiannelos
 
imported>Jgiannelos
Line 2: Line 2:


=== Access map nodes ===
=== Access map nodes ===
<code>ssh maps1009.eqiad.wmnet</code>


=== Deploy new code ===
=== Deploy new code ===
Line 8: Line 9:


===== Tegola =====
===== Tegola =====
*Build a new image using CI
** Each merge builds an image:
*** https://gerrit.wikimedia.org/r/plugins/gitiles/operations/software/tegola/+/refs/heads/wmf/v0.14.x
*** https://docker-registry.wikimedia.org/wikimedia/operations-software-tegola/tags/
* Bump version on [[gerrit:plugins/gitiles/operations/deployment-charts/+/refs/heads/master/helmfile.d/services/tegola-vector-tiles/|deployment-charts]]
* [[Kubernetes/Deployments|Deploy]] new version


=== Configuration changes ===
=== Configuration changes ===


==== Tegola ====
==== Tegola ====
The tegola config is maintained using helm in the deployment charts repo and populated by the helm values per env:
* Config
** https://gerrit.wikimedia.org/r/plugins/gitiles/operations/deployment-charts/+/refs/heads/master/charts/tegola-vector-tiles/templates/_config.tpl
* Values
** Base values
*** https://gerrit.wikimedia.org/r/plugins/gitiles/operations/deployment-charts/+/refs/heads/master/charts/tegola-vector-tiles/values.yaml
** Per env overrides
*** https://gerrit.wikimedia.org/r/plugins/gitiles/operations/deployment-charts/+/refs/heads/master/helmfile.d/services/tegola-vector-tiles/


==== Kartotherian ====
==== Kartotherian ====
Line 26: Line 43:


=== Get a DB shell ===
=== Get a DB shell ===
<code>> ssh maps1005.eqiad.wmnet</code>
<code>> sudo su </code>
<code>> su - postgres </code>
<code>> psql </code>
<code>postgres=# \c gis</code>


=== Run an example query ===
=== Run an example query ===

Revision as of 13:03, 27 September 2021

Common maps tasks

Access map nodes

ssh maps1009.eqiad.wmnet

Deploy new code

Kartotherian

Tegola

Configuration changes

Tegola

The tegola config is maintained using helm in the deployment charts repo and populated by the helm values per env:

Kartotherian

Postgres

Imposm

EventGate

Run a planet import

Pooling/depooling nodes

Get a DB shell

> ssh maps1005.eqiad.wmnet

> sudo su

> su - postgres

> psql

postgres=# \c gis

Run an example query

Reindex DB

Example HTTP requests

Kartotherian

Tegola

EventGate

Example tegola commands