NEX and NEXFS are designed and developed by Roberto Arato of aratoingegneria.it
The features, in brief
|
NEX |
| What it joins |
several Linux machines into one system: the same users, the same /nex folder, the processes of every node seen from every node |
| Where programs run |
on the node with the most room, chosen at start; window, audio and devices stay where you work |
| What is not needed |
containers, manifests, rewritten programs, kernel modules |
| Storage |
NEXFS (see its performance) |
| Services |
replicas, health checks, virtual IP addresses that follow the service, cluster ports, upgrades one node at a time |
| Devices |
serial ports, sockets, disks and USB of another node in /devnodes |
| Desktop |
GNOME integration: Nautilus, menu, notifications, search |
| Security |
TLS with the cluster certificates on every connection, cluster users with quotas |
| Weight |
written in C, one agent per node, installed from .deb packages |
Compiling with the whole cluster
With the sources on /nex, nex make (or nex ninja) sends the
compilations to the nodes with free CPUs; linking and the preprocessor stay
on your node. Nothing changes in the project: the same Makefile, the same
build.ninja, the same command line with nex in front.
- More nodes, more gain: every compute node adds its CPUs to the build,
and the gain grows with the number of nodes.
- Heavier files, bigger gain: the more time a file takes to compile, the
more it pays to send it to another node. With files that compile in an
instant, the final link, which stays on one node, and the time to hand the
files to the nodes weigh more.
- ccache in the shared filesystem: with
nex make --ccache the ccache
cache lives in your home on /nex, the same from every node. The first
build fills it; from then on only what has changed is recompiled, and
recompiling is fast.
- Requirement: every compute node has the same compilers and the same
development libraries.
The storage
The storage of NEX is NEXFS: strong on metadata and small files, with
the number of copies chosen per folder, and a package of a few hundred KB.
The details are on the NEXFS performance page.
NEX and the alternatives
There is no solution that is best in absolute terms: it depends on what has
to be done. This page compares NEX with the families of products you meet
when you want to use several machines together, and also says when the
alternative is the better choice.
The starting point is different
Almost every alternative asks you to adapt the work to the cluster:
- put the programs in containers and describe them in manifests
(orchestrators);
- write job scripts for a queue (HPC systems);
- split the computation with dedicated libraries (Ray, Dask, Spark);
- manage many separate virtual machines (virtualization).
NEX starts from the other side: the cluster adapts to the work. Shell,
programs, users, windows and devices stay those of an ordinary Linux
computer, except that the CPUs, the memory and the disks are those of every
node.
In brief
|
NEX |
Container orchestrators |
Virtualization |
HPC queues |
Single system image (SSI) |
| Examples |
|
Kubernetes, k3s, OpenShift, Nomad, Docker Swarm |
Proxmox VE, VMware vSphere, OpenStack, oVirt, XCP-ng |
Slurm, PBS, HTCondor, LSF, Grid Engine |
MOSIX, openMosix, Kerrighed, OpenSSI |
| Programs as they are |
yes |
no: in containers, with manifests |
yes, inside the VMs |
yes, but started with job scripts |
yes |
| One shell for the whole cluster |
yes (nexsh: on, cn) |
no |
no, one per VM |
no |
yes |
| Desktop: windows, audio and devices where you work |
yes |
no |
per VM |
no |
partly |
| Common users, homes and quotas |
yes |
separately |
per VM |
yes, with external services |
yes |
| Services with virtual IP and rolling upgrades |
yes |
yes, very extensive |
yes, per VM |
no |
no |
| Common storage included |
yes (NEXFS, with encrypted disks) |
to be added |
yes |
to be added |
it depends |
| Kernel modules or patches |
no, everything in user space |
no |
hypervisor |
no |
yes for openMosix, Kerrighed, OpenSSI (modified kernel) |
| Moves processes already running |
no, it chooses the node at start |
no, restarts elsewhere |
yes, VM migration |
no |
yes |
| Installation |
one package and nex-setup |
components and configuration |
dedicated installer |
services and configuration |
often a dedicated kernel |
The alternatives, one by one
Container orchestrators
Kubernetes (also k3s, OpenShift, Rancher), HashiCorp Nomad,
Docker Swarm.
- Choose them for: microservice applications, hundreds or thousands of
nodes, many teams on the same machines, a huge ecosystem of tools. Nomad
is simpler than Kubernetes and also starts programs without containers.
- What NEX adds: no mandatory container, no manifest; the cluster shell
and desktop; users with their home. NEX still has services with replicas,
health checks, virtual IPs and rolling upgrades, and containers for those
who want them (
--image).
Virtualization and private cloud
Proxmox VE, VMware vSphere, Nutanix, OpenStack, oVirt, XCP-ng.
- Choose them for: isolated virtual machines, different operating
systems (Windows too), live migration of VMs, multi-tenancy.
- What NEX adds: one system instead of many machines to manage one by
one; programs use the CPUs and memory of every node without splitting them
into VMs. The two live together: NEX can also run inside Proxmox or VMware
VMs.
Job queues and HPC
Slurm, OpenPBS and PBS Pro, HTCondor, IBM LSF, Grid Engine, and the
cluster managers OpenHPC, Warewulf, Bright/Base Command Manager.
- Choose them for: batch scientific computing on hundreds of nodes, MPI,
queues with priorities and fair-share, per-project accounting. They are
the standard of the large computing centres.
- What NEX adds: besides the queue (
nex submit), interactive work:
shell, desktop, graphical programs, always-on services, devices of other
nodes; distributed compilation with nex make; no job script to write to
start a program.
Single system image (SSI)
MOSIX, openMosix, Kerrighed, OpenSSI.
- Choose them for: the migration of processes already running.
- What NEX adds: no modified kernel (openMosix, Kerrighed and OpenSSI
required one): NEX runs in user space on the standard kernel of the
distribution, with its updates. Many of these projects are no longer
developed.
Distributed computing inside programs
Ray, Dask, Apache Spark.
- Choose them for: programs written on purpose for distributed
computing, analysis of large amounts of data with their libraries.
- What NEX adds: it works with any program, in any language, without
rewriting it. The two combine: Ray or Dask can run on the NEX nodes, with
the data on
/nex.
Shared storage
Ceph, GlusterFS, MooseFS and LizardFS, BeeGFS, Lustre.
- NEX has its own filesystem, NEXFS, and integrates it: adding disks,
maintenance, quotas, snapshots, space accounting, all from the NEX
commands, with traffic and disks always encrypted.
- The other distributed filesystems offer only the storage: users,
processes, services and desktop remain to be built on top.
Where NEX does best
- Several Linux machines to use together without changing the programs
or the way of working.
- People working from the desktop: windows, audio and devices stay with
you, the computation goes where there is room.
- Small and medium clusters to be kept running with little effort: one
package,
nex-setup to add a node in a few seconds, upgrades with apt
and nexctl upgrade without stopping the work.
- Environments that want the standard kernel: no modules or patches,
only the components of the distribution.
The information about the other products describes their general features;
for versions and details, their official sites are the reference.