Operations grimoire/Alkane

From Nasqueron Agora

📕📁📜 Old technical information :: content warning

⌛ This Nasqueron Operations Grimoire page hasn't been updated for a long time.

☣ As our infrastructure evolves quickly, there is a good chance this information is outdated or now inaccurate. Be careful and consider update it.

➡️ To assert the information is still up-to-date or not, you can check the history of the relevant role in our Operations repository.

Alkane is the new codename for our platform to host PHP and static websites.

Alkane servers offer:

  • nginx to serve static content directly and proxy other requests
  • php-fpm to serve PHP content

We maintain a state-of-art installation in the continuity of our shared hosting expertise: up-to-date PHP versions, dedicated site users for privilege separations, custom PHP pools.

Sites are published to Alkane by a Jenkins job running on CD. Again for privilege separation, Jenkins uses different containers per site to build the site artefact.

Alkane is a work in progress to track at T1803.

Guides

Host a new site

DNS

Production. subdomain.domain.tld CNAME www-alkane.nasqueron.org

Devserver. subdomain.domain.tld CNAME www-dev.nasqueron.org

= nginx

= Auto-provisioning

Through Jenkins
  • A CD job to deploy specific releases or your last commit
  • Nothing fancy? You can adopt a standard job template "git fetch --all && git switch <new tag>" or the job "ensure you're on main then git pull"
    • But beware to trap like Laravel cache clearing, databases migrations
  • Jenkins build scripts can be ported to Dockerfile if you prefer to host the PHP site on our Docker PaaS
Through Salt

rOPS: roles/webserver-content can provision configuration for your site, especially if you need content elsewhere than in /var/wwwroot/<domain.tld>/ (that content is for Jenkins to provision)

Database

PostgreSQL. Hosted on db-A cluster, see Operations grimoire/PostgreSQL

MySQL. Hosted on db-B cluster, see Operations grimoire/MySQL

Redis/memcached/etc. There are fully supported. For more complex applications, there are two roads:

  • (i) the Docker PaaS, look for example how are deployed Airflow, Sentry and Penpot stacks;
  • (ii) we create role/saas-<app> and we look if it's suitable for Alkane or if we create a specific server for that app.

We're here to help, create a task on DevCentral with your ideas and we can offer architecture guidance and tips to host it in the best conditions.

Migrate from Ysul

A small checklist:

  • Secrets should be stored on Vault
  • Build instructions should be moved from rOPS: roles/webserver-content to a Jenkinsfile on your repository
  • Access to Docker resources should use private network

Why the name Alkane?

Oh, it's a word Dereckson thought about while thinking about a new webserver-<word> to replace webserver-legacy.

Meanwhile, ChatGPT suggested "pulse" among other uninspired names.

Some fun about what ChatGPT has to say about Alkane:

   Alkane could be a good product name for a webserver distribution for PHP and static sites. The name "Alkane" is a chemical term that refers to a type of hydrocarbon molecule that is characterized by its stability and simplicity. This name could be interpreted to mean that the webserver distribution is stable and easy to use.
   
   Additionally, the name "Alkane" has a unique and memorable sound, which could help the product stand out in a crowded market. The name is also short and easy to spell, which could make it easy to remember and type into search engines.
   
   ______
   
   Alkane, with its connotations of stability and simplicity, could be a good fit for a PaaS that offers a reliable and user-friendly hosting experience. The name also has a technical-sounding quality that could resonate with developers and IT professionals who are familiar with the concept of hydrocarbons in chemistry.
   

Both Alkane and Pulse are aligned with Nasqueron values:

   Alkane, with its connotations of stability and simplicity, could reflect the value of elegance and simplicity that Nasqueron promotes. Meanwhile, Pulse, with its connotations of speed and responsiveness, could reflect the values of innovation and continuous improvement that Nasqueron also promotes.