[openstreetmap/openstreetmap-website] Extend `contributing.md` with a bird's eye view of server and services (Issue #4275)
Andy Allan
notifications at github.com
Thu Oct 5 09:17:35 UTC 2023
> * What is the production server architecture of the website (# of application server, deployment process)
I don't actually know this. Although I'm a maintainer it's not really relevant to the codebase or the work we do on it. Last time I was involved in OWG matters there were 6 machines running rails (and some? with cgimap) a primary database and I think 2 read-only database replicas. But that was years ago and I think it has changed substantially since. But I haven't needed to know at any point, since it's not relevant to pretty much any of the development on the codebase, and as Tom pointed out it's different for different deployments too.
> * Is there a queuing system / which and some relevant specs
We use the standard ActiveJob abstraction layer, with `delayed_job_active_record` as the implementation. I don't know any stats on how many jobs per day are processed, I expect it's a substantial number.
> * Is there a system in place to use [Action Cable](https://guides.rubyonrails.org/action_cable_overview.html)? AFAIK we don't but could we?
At the moment we aren't using ActionCable for anything, but I suspect it will be used at some point in the future, likely as an implementation detail for Turbo.
> * Relevant notes on the database server
It's PostgreSQL, but I don't know anything else about the database server. Other than it's huge.
> * Relevant notes on the staging / testing server
We use Github Actions for testing. We don't have any test servers i.e. servers running automated tests or for QA teams.
We don't have staging servers, in the typical use of the term (i.e. as the final step before production). OSMF has a development server, and a small number of branches and/or configurations have been deployed on that, but it's very rarely used (compared to the amount of PRs we handle - I'd say once every 2-3 years a branch is published there) and I've never used it.
If you are curious you can see the list of deployments on the OSMF dev server at https://apis.dev.openstreetmap.org/
I'm happy to answer any other questions!
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4275#issuecomment-1748457693
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/4275/1748457693 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231005/023e33fb/attachment.htm>
More information about the rails-dev
mailing list