Quantcast
Channel: Welcome to the StarNet Knowledge Base
Viewing all articles
Browse latest Browse all 274

FastX Clustering

$
0
0

Note: For FastX Version 2 clustering, click here

Multiple FastX servers can be connected together to create a cluster. Clustering allows users to connect to any system and view/interact with/launch sessions in the cluster.

Clustering offers better security and load distribution over a single machine.  Gateway servers can be used as the client access point while session servers can be hidden behind a firewall to do the heavy computing.  Combined with load balancing, the power of FastX can be seen.  New sessions can be routed to servers giving the implementers complete control of where sessions are started.  Power users can integrate their own job scheduling software into the FastX cluster launching sessions when the server resources become available.

Setting up a cluster

Installing the cluster package

  1. Download the FastX plugins package
  2. Extract the files tar xzf fastx-plugins.tgz
  3. copy the extracted plugins directory to var mv plugins /usr/lib/fastx/var
  4. Restart the web server service fastx3 restart

Configuring a cluster member

To join a cluster, a cluster member needs two pieces of information

  1. One (or more) url(s) of the FastX distributed database
    • Each cluster member comes with its own distributed database.  It is sufficient to have the url of a different FastX web server in your cluster
  2. The public keys of the other cluster members
    • Public keys are automatically stored by default in /usr/lib/fastx/var/authorized_keys

Background

FastX uses a distributed database architecture to communicate messages from one cluster member to another.  Communication is done using HTTPS with JSON Web Tokens for authenticating servers.  Messages are encrypted using destination server’s public key preventing unauthorized snooping on the system.

Adding the first cluster member

  1. Log in as an administrator
  2. Go to the System section
  3. Click on Clustering > Servers
  4. Click New Server
  5. Add the url of the FastX distributed database (usually, a different cluster member)
    • Optionally add any https agent options.  Agent options can enforce added security measures when making a connection to the FastX distributed database
  6. Save
  7. Repeat Steps 4 – 6 to add multiple FastX distributed database urls for fault tolerance
  8. Restart the web server service fastx3 restart

Adding additional cluster members

You can repeat the steps above on each server that you want in the cluster.  However, as a convenience, FastX stores the cluster configuration in /usr/lib/fastx/var/config/cluster.json.   You can copy this file over from one server to another to quickly get up and running.

  1. Copy the /usr/lib/fastx/var/config/cluster.json from the initial cluster member to the new cluster member
  2. Restart the web server service fastx3 restart

Cluster Configurations


Viewing all articles
Browse latest Browse all 274

Trending Articles