-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Containerise small services #807
Comments
I am going to test OSQA as a container first. |
Yes sure why not pick literally the hardest possible thing to try first. |
Choose container system... examples could be:
|
Well there's actually really two separate questions - what to use to build images and what to use to deploy them. As I understand there are other less horrible languages that Dockerfile for describing images and those images can be deployed with any of the major systems just as podman for example can deploy an image built from a Dockerfile. |
Some articles on container systems and orchestration systems. I think https://buildah.io/ is what I was thinking of as the main alternative to Dockerfile - it can actually use Dockerfiles but the native way is just based around writing a script that uses |
There are alternatives for building OCI compatible container images with varying levels completeness. Other than https://buildah.io/ there is also https://github.com/genuinetools/img (uses Dockerfile) and https://github.com/GoogleContainerTools/jib (java images) |
The stuff that runs on naga (redirectors, blog aggregator, munin server that we're going to demise (#501)) might be good. |
https://hardware.osm.org which runs on idris even already has a dockerfile in https://github.com/osmfoundation/osmf-server-info |
You probably want to deploy https://github.com/google/cadvisor on every Docker host and point Prometheus at that, |
Well that rather depends how it works - if it depends on the docker daemon then it probably won't work for us. |
A quick test on naga suggests it doesn't manage to collect anything useful in our setup - all it finds is some basic host hardware metrics:
|
Also generating metrics with timestamps (rather than letting the server add them) is generally considered bad form and can cause problems with metric ingestion. |
Do you have a source for this? Because just searching for "timestamp" on my own Grafana brings up:
|
I mean that fact that each of those metrics has a timestamp like See https://promlabs.com/blog/2022/12/15/understanding-duplicate-samples-and-out-of-order-timestamp-errors-in-prometheus/#buggy-client-side-timestamps for some discussion of the potential issues with it. |
Ah yes - that's already discussed on cAdvisor issue #2526. However, if you don't see one of these https://github.com/google/cadvisor/blob/master/metrics/prometheus.go#L138 metrics here, then something is misconfigured. |
Well I didn't do any configuration. I just ran the executable as there didn't seem to be any clear instructions telling me to do anything else. As I say because we are using podman if it relies on talking to dockerd to get statistics then it's probably not going to work. |
dmca.osm.org now a container: openstreetmap/chef@4ac7cf5 |
Left to containerise on Ridley: tracked in #1028 |
https://github.com/openstreetmap/birthday20-website/ is a wordpress to static site I generated using wp2static. wp2static did a good job. Some cleanup was required, but it does a reasonable job. Linked issue: #1125 |
SoTM 2007, 2008 and 2009 are now containers. |
I need to work out what the list to completion is here. |
There's a number of small services that currently live on a full server, and could live inside a container.
The text was updated successfully, but these errors were encountered: