When launching a WEKA cluster, either through the or via a , it is also possible to launch client instances. However, sometimes it may be required to add more clients after the cluster has been installed. To add more clients as separate instances, follow the instructions below.
When launching new clients, ensure the following concerning networking and root volume:
For best performance, it is recommended that the new clients will be in the same subnet as the backend instances. Alternatively, they can be in a routable subnet to the backend instances in the same AZ (note that cross-AZ traffic also incurs expensive network charges).
They must use the same security group as the backends they will connect to, or alternatively, use a security group that allows them to connect to the backend instances.
Enhanced networking is enabled as specified in .
When adding a client, it is required to provide permissions to several AWS APIs, as described in .
These permissions are automatically created in an instance profile as part of the CloudFormation stack. It is possible to use the same instance profile as one of the backend instances to ensure the same credentials are given to the new client.
The network interface permissions are required to create and attach a network interface to the new client. A separate NIC is required to allow the WEKA client to preallocate the network resource for the fastest performance.
The client's root volume must be at least 48 GiB in size and either GP2
or IO1
type.
The WEKA software is installed under /opt/weka
. If it is not possible to change the size of the root volume, an additional EBS volume can be created, formatted, and mounted under /opt/weka
. Make sure that the new volume is either GP2
or IO1
type.
To mount a filesystem in this manner, first install the WEKA agent from one of the backend instances and then mount the filesystem. For example:
This is the same step as in the previous method of adding a client.
When the download is complete, untar the downloaded package and run the install.sh
command in the package directory.
Example:
If you downloaded version 3.6.1, run cd weka-3.6.1
and then run ./install.sh
.
Once the WEKA software is installed, the clients are ready to join the cluster. To add the clients, run the following command line on each of the client instances:
where <backend-ip>
is the IP address or hostname of one of the backend instances.
On most shells the following would get the client instance ID and add it to the cluster:
If successful, running theaws-add-client
command will display the following line:
It is now possible to mount the filesystems on the client instances.
Example:
Using the mkdir -p /mnt/weka && mount -t wekafs default /mnt/weka
command will mount the default
filesystem under /mnt/weka.
If the client is not provided with these permissions, it can only provide ec2:*
and create an additional NIC in the same security group and subnet described above when mounting a second cluster from a single client (see ).
For the first mount, this will install the WEKA software and automatically configure the client. For more information on mount and configuration options, see the section.
It is possible to configure the client OS to mount the filesystem at boot time automatically. For more information, see the or sections.
To download the WEKA software, go to and select the software version. After selecting the version, select the operating system to install and run the download command line as root
on all the new client instances.
Once the aws-add-client
command is complete, one core and 6.3 GB of RAM are allocated for the WEKA system on the client instance. This is performed as part of the WEKA system preallocating resources, ensuring that variance in client activity does not result in allocating resources that may affect the programs running on the client. For more information, see .
For more information about available mount options, see .