Best Practices
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
This page is about day-2 operating habits.
It is not meant to repeat the hardening page or the reference architecture page. Instead, it collects the practical defaults that keep a Nomatron deployment understandable, maintainable, and predictable over time.
If the other pages answer:
- how to deploy Nomatron;
- how to secure it; and
- how to shape the surrounding infrastructure;
this page answers:
- how to operate it cleanly once it is already in service.
Treat Production As Its Own Environment
Keep development, staging, and production clearly separate.
That means:
- separate Nomatron deployments;
- separate PostgreSQL databases;
- separate secrets;
- separate external hostnames; and
- separate change approval expectations.
Do not treat a lower environment as a loose extension of production, and do not reuse production secrets in non-production environments.
Prefer Declarative Configuration
Nomatron is easier to operate when configuration is rendered and reviewed deliberately instead of being edited ad hoc on live nodes.
Good defaults are:
- keep
nomatron.hclunder change control where appropriate; - render environment-specific values through templates;
- keep secrets outside the committed config file; and
- avoid hand-editing live configuration directly on individual hosts.
The more declarative the deployment is, the easier it is to reason about drift and recover from mistakes.
Prefer Terraform For Managed Nomatron Resources
Where possible, manage Nomatron resources through Terraform rather than a long sequence of manual UI or API changes.
That is a strong operational fit because Nomatron already has a functioning Terraform provider, which makes it much easier to:
- keep important resources under change control;
- review changes before they are applied;
- reproduce environments more consistently;
- reduce configuration drift; and
- rebuild or extend environments without relying on memory.
Terraform is especially useful for resources and structures that you want to stay predictable across environments, such as:
- organizations;
- clusters;
- variables;
- groups and access structure; and
- other repeatable platform configuration.
For many teams, the cleanest long-term model is:
- infrastructure and runtime placement managed by Terraform and the scheduler;
- Nomatron resource configuration managed by the Nomatron Terraform provider; and
- ad hoc UI changes kept to a minimum.
That does not mean every single action must go through Terraform, but the more important and repeatable the resource is, the stronger the case for managing it declaratively.
Use Templates Instead Of Long Environment Variable Lists
For schedulers such as Nomad, prefer rendering a real nomatron.hcl file through a template stanza rather than pushing every setting through large env blocks.
This usually makes the deployment:
- easier to read;
- easier to review;
- closer to the documented config model; and
- less error-prone during updates.
Environment variables still have their place, especially for simple overrides, but large production deployments are usually easier to manage with a rendered config file.
Test Upgrades In Staging First
Do not make production the first place a new Nomatron version runs.
A better habit is:
- deploy the new version in staging;
- validate startup, health, and the main user flows;
- confirm the database path behaves as expected; then
- promote the version into production deliberately.
Even when a release looks straightforward, staging is where you want to discover surprises first.
Pin Versions Intentionally
Avoid a long-term dependency on vague moving targets.
Prefer:
- pinned image tags;
- pinned binary versions;
- versioned job specs; and
- explicit rollout notes for each upgrade.
This makes rollback, incident analysis, and environment comparison much easier.
Roll Out Changes Gradually
For clustered Nomatron deployments, roll changes out gradually.
A good operational default is:
- one server at a time;
- health-checked rollout gates;
- automatic revert where your scheduler supports it; and
- a clear stop point if the health signal changes.
Fast rollouts are useful only when they do not turn a recoverable issue into a full control-plane outage.
Use Named Admin Accounts
Avoid normal day-to-day administration through a shared root identity.
A better pattern is:
- keep the bootstrap root account tightly controlled;
- create named administrator accounts for real operators;
- use RBAC to separate responsibilities; and
- review privileged access regularly.
This improves both accountability and incident response.
Keep Audit Review Routine
Audit data is most useful when it is part of normal operating practice, not something only checked after a problem.
A healthy practice is to review:
- major administrative changes;
- privileged account actions;
- user lifecycle changes;
- cluster and integration changes; and
- unusual bursts of operational activity.
The goal is not constant manual inspection. The goal is to make audit review a real part of operational rhythm.
Practice Restore, Not Just Backup
Backups are necessary, but they are not the same thing as recovery readiness.
A better standard is:
- backups exist;
- restores have been tested;
- the restore runbook is documented; and
- the people responsible know how to execute it under pressure.
If a team has backups but has never practiced a restore, the recovery posture is still immature.
Scale Out Before Scaling Up
Because Nomatron servers are stateless, horizontal scaling is often the cleaner operational move.
That means:
- add more Nomatron servers before building one oversized server node;
- keep the load balancer and health checks in the loop;
- spread servers across hosts; and
- watch PostgreSQL as cluster size grows.
Scaling the application tier without watching the database tier just moves the bottleneck.
Keep The Network Model Simple
The safest network designs are usually the easiest to explain.
A good default is:
- one public entry point for the UI and API;
- private connectivity for agents where possible;
- private connectivity for Serf;
- private connectivity for PostgreSQL; and
- cloud network policies that reflect those boundaries clearly.
If the network path is hard to explain, it will usually be hard to operate during an incident too.
Document Normal Operations
Do not rely on tribal knowledge for routine tasks.
Keep lightweight runbooks for:
- upgrades;
- rollback;
- certificate rotation;
- backup and restore;
- root-password recovery procedure;
- cluster expansion; and
- planned maintenance.
A deployment becomes easier to trust when the normal operator workflow is written down and repeatable.
Watch The Right Signals
For day-2 operations, the most useful signals are usually:
/api/v1/health- load balancer health
- PostgreSQL availability and connection behavior
- Serf membership churn
- restart loops
- certificate expiry
- backup success or failure
- audit-log anomalies
Do not settle for “the process is still running” as the main measure of health.
Keep The Operating Model Boring
This is one of the healthiest defaults for Nomatron.
The best long-lived production environments are usually the ones with:
- clear environment boundaries;
- simple network exposure;
- predictable rollout discipline;
- named operator identities;
- declarative configuration;
- tested recovery steps; and
- as few one-off exceptions as possible.
If a deployment is hard to explain, it is usually also hard to maintain.
Recommended Operator Checklist
Use this as a quick operating checklist:
- production is separate from lower environments
- secrets are not reused between environments
- configuration is rendered or managed declaratively
- Nomatron versions are pinned intentionally
- upgrades are tested in staging first
- production rollouts are gradual
- named admin accounts are used
- the root account is tightly controlled
- audit review is part of normal operations
- backup restores have been tested
- scaling plans consider PostgreSQL as well as Nomatron servers
- network exposure is simple and well documented
- runbooks exist for the common operational tasks
What To Read Next
This page works best alongside: