opendata.cern.ch icon indicating copy to clipboard operation
opendata.cern.ch copied to clipboard

installation: harmonise service names

Open tiborsimko opened this issue 7 years ago • 2 comments

Currently-used container names in our docker setup are:

  • wdb
  • web
  • worker
  • web-files
  • postgresql
  • redis
  • elasticsearch
  • elasticsearch-proxy
  • rabbitmq
  • nginx
  • static

This has some drawbacks, e.g. the notion of "web" is wider than the sole application node, e.g. sometimes we use technology-based names ("nginx", "redis") and sometimes function-based names ("proxy", "cache").

We can standardise all names to use some homogeneous schema, for example:

  • <service>-<function>

to have web-app, web-files, web-proxy, denoting web service and various containers serving various aspects of the service.

The attention should be paid to the OpenShift service naming as well.

tiborsimko avatar Jan 08 '18 14:01 tiborsimko

The current names in openshift qa and prod are:

cache
logstash
mq (not in dev)
proxy
web
web-files

On top of that, openshift dev has:

db
search

I think that the two extra from dev should be deleted.

Then, in docker compose, we use:

wdb (only on dev)
web
worker
web-files
postgresql
redis
opensearch
opensearch-dashboards
rabbitmq
nginx (only on prod)

I would prefer to touch the docker naming instead of the openshift, so I would suggest:

  1. Dropping worker
  2. Rename redis to cache
  3. rename nginx to proxy
  4. rename rabbitmq to mq
  5. rename postgrsql to db
  6. rename opensearch to search
  7. rename opensearch-dashboards to search-ui

psaiz avatar Apr 23 '24 15:04 psaiz

And this might be a good moment to move from two independent docker compose files to a merging of files. The example is exactly what we want

psaiz avatar Apr 23 '24 15:04 psaiz