AGILITY Toolbox and AGILITY Backup
- 1 AGILITY Toolbox
- 1.1 AGILITY-Toolbox Deployment
- 1.1.1 Provision the VM
- 1.1.1.1 VMware ESXi
- 1.1.1.2 OpenStack
- 1.1.1.3 Public Clouds (AWS, Azure, GCP, etc.)
- 1.1.2 Next Steps
- 1.1.1 Provision the VM
- 1.1 AGILITY-Toolbox Deployment
- 2 AGILITY Backup
- 2.1 AGILITY-Backup Deployment
- 2.1.1 Provision the VM
- 2.1.1.1 VMware ESXi
- 2.1.1.2 OpenStack
- 2.1.2 Next Steps
- 2.1.3 [Optional] Attach an External Disk
- 2.1.3.1 Prepare the VM
- 2.1.3.2 NFS example
- 2.1.3.3 Block volume example
- 2.1.3.4 Restart back-up process
- 2.1.3.5 Troubleshooting
- 2.1.1 Provision the VM
- 2.1 AGILITY-Backup Deployment
When AGILITY is installed in customer premises (either private or public clouds controlled by customers), two optional components are included with the AGILITY image and are advisable to deploy.
AGILITY Toolbox
AGILITY-Toolbox is a subject matter expert (SME) execution environment where B-Yond SMEs can perform model improvement-related work at customer-premises. AGILITY-Toolbox allows making incremental changes to deployed models without taking any customer data out of the premises.
AGILITY-Toolbox has Wireshark and Docker enabled.
AGILITY-Toolbox must have HTTPS access to AGILITY via the AGILITY API as well as HTTPS access to B-Yond’s artifact registry (hosted on Oracle US-East cloud) for upgrades/updates of toolkit (a Docker container) used by the SME team for processing customer PCAP files on premises.
AGILITY-Toolbox is deployed as a single VM of 2 vCPU/16GB RAM with 100GB disk.
AGILITY-Toolbox Deployment
AGILITY-Toolbox is available to be deployed in both public and private cloud environments.
Download the VM image sent to you by email. The URL will have a validity period.
The instructions on how to use pre-authenticated URLs are at https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm.
Public Clouds:
AWS
: Use the specified AMI (Amazon Machine Image) provided by B-Yond.
Azure
: Use the specified Azure VM image provided by B-Yond.
Google Cloud
: Use the specified Google Cloud VM image provided by B-Yond.
On-Premises Virtualization Platforms:
OpenStack
: Download the provided qcow2 image specifically configured for OpenStack.
VMware
: Download the provided VMware disk image specifically configured for VMware virtualization environments.
If you are using other cloud providers or virtualization solutions, you may need to convert the qcow2 or VMware disk images to the format required by your platform. Consult the documentation of your specific provider or platform for instructions on image conversion.
Using the B-Yond provided images is recommended as they are pre-configured and optimized for running AGILITY-Toolbox.
Provision the VM
CPU | Memory (GB) | Boot Disk (GB) |
---|---|---|
2 | 16 | 100 |
Note: These values can be adjusted based on the number of simultaneous SMEs accessing the AGILITY-Toolbox.
VMware ESXi
To import a virtual machine stored on a VMware Hosted product to an ESX/ESXi host, run:
vmkfstools -i virtual_machine.vmdk /vmfs/volumes/datastore/my_virtual_machine_folder/virtual_machine.vmdk
Create the VM using the imported disk. Option
Guest OS: Other Linux (64-bit)
Using the console login as
root
, passwordalmalinux
Set up static network configuration, e.g. using nmtui.
Increase VM disk size:
Increase disk size from ESXi
Rescan using
echo 1>/sys/class/block/sda/device/rescan
Recreate the partition
2
withfdisk
printf "d\n\nn\n\n\n\np\nw\n" | fdisk /dev/sda
Increase the filesystem size using
xfs_growfs /dev/sda2
Configure ssh options, e.g. set authorized kes for default cloud-user
almalinux
or another user.
For ESXi 8.0, use
Guest OS: Other Linux (64-bit)
enable the LSI Logic parallel SCSI controller option.
OpenStack
(As an administrator) Create an image:
glance image-create --disk-format qcow2 --container-format bare --file ./Agility-Toolbox-X.Y.Z-AlmaLinux-X-YYYYMMDD.x86_64.qcow2 --min-disk 25 --min-ram 2048 --name Agility-Toolbox-X.Y.Z
(As an administrator) Create a member for the glance image:
(As an administrator) Accept the membership for the glance image:
(As a user) Create a VM using the image:
Public Clouds (AWS, Azure, GCP, etc.)
Follow the procedures specified by your cloud provider. These procedures typically include the following steps:
Image selection: Choose the AGILITY-Toolbox VM image obtained from B-Yond or the converted image.
Shape specification: Specify the number of virtual CPUs (vCPUs) and RAM for the instance.
Boot disk specification: Define the size and type of the boot disk.
Networking configuration: Configure the network settings for the VM.
Public SSH key(s): Provide the SSH key(s) that will be used to access the VM.
[!NOTE] The VM boot time might take between 5 and 10 minutes in total.
Next Steps
SSH into it using the
cloud-user
and the associated private key:AMI:
ec2-user
OCI:
opc
Generic Cloud:
almalinux
Verify that all components are up and running:
Add ssh public keys for B-Yond SME team members by updating
/home/agilityuser/.ssh/authorized_keys
AGILITY Backup
AGILITY Backup is a back-up service used to back-up AGILITY data and configuration in a location outside the fault domain of AGILITY. In the instance of a catastrophic problem, AGILITY can be restored from its backup.
Options to implement the back-up service:
Using your own S3-compliant object storage service
Using the nearest suitable public cloud S3-compliant object storage (if permitted)
Using a dedicated VM, called “AGILITY-Backup”, where B-Yond’s own S3-compliant object storage service runs. It is deployed in a separate fault domain by the customer.
AGILITY must have https access to AGILITY-Backup to read/write backup.
AGILITY-Backup must have HTTPS access to B-Yond’s artifact registry (hosted on Oracle US-East cloud) for upgrades/updates of object storage server (a Docker container). AGILITY-Backup VM will require 2 vCPU/16GB RAM with 300GB disk.
AGILITY-Backup Deployment
AGILITY-Backup is available to be deployed in private cloud environments. Since all public clouds offer an S3-compliant object storage service, using such a VM on a public cloud is not a viable option.
Use the pre-authenticated URL to download the VM image from B-Yond object storage (in Oracle Cloud): https://objectstorage.us-ashburn-1.oraclecloud.com/p/XXXX
Each URL will have a validity period, so make sure the download the image as instructed by B-Yond.
The instructions on how to use pre-authenticated URLs are at https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm
On-Premises Virtualization Platforms:
OpenStack
: Download the provided qcow2 image specifically configured for OpenStack.
VMware
: Download the provided VMware disk image specifically configured for VMware virtualization environments.
If you are using other virtualization solutions, you may need to convert the qcow2 or VMware disk images to the format required by your platform. Consult the documentation of your specific provider or platform for instructions on image conversion.
Using the B-Yond provided images is recommended as they are pre-configured and optimized for running AGILITY-Backup.
Provision the VM
CPU | Memory (GB) | Boot Disk (GB) |
---|---|---|
2 | 16 | 300 |
Note: Disk size for AGILITY-Backup can be adjusted based on the amount of analysis and retention period for AGILITY. B-Yond will provide the guidance for the proper disk size.
VMware ESXi
To import a virtual machine stored on a VMware Hosted product to an ESX/ESXi host, run:
Create the VM using the imported disk. Option
Guest OS: Other Linux (64-bit)
Using the console login as
root
, passwordalmalinux
Set up static network configuration, e.g. using nmtui.
Increase VM disk size:
Increase disk size from ESXi
Rescan using
echo 1>/sys/class/block/sda/device/rescan
Recreate the partition
2
withfdisk
Increase the filesystem size using
xfs_growfs /dev/sda2
Configure ssh options, e.g. set authorized kes for default cloud-user
almalinux
or another user.
For ESXi 8.0, use
Guest OS: Other Linux (64-bit)
enable the LSI Logic parallel SCSI controller option.
OpenStack
(As an administrator) Create an image:
(As an administrator) Create a member for the glance image:
(As an administrator) Accept the membership for the glance image:
(As a user) Create a VM using the image:
Next Steps
SSH into it using the
cloud-user
and the associated private key:AMI:
ec2-user
OCI:
opc
Generic Cloud:
almalinux
Verify that all components are up and running:
Collect the minio credentials to be configured in AGILITY back-up configuration as follows:
Follow the instructions listed in AGILITY Documentation to configure back-up destination and schedule for AGILITY.
[Optional] Attach an External Disk
In cases where external disk attachment is necessary, follow these steps. This will depend on the type of external disk used.
All example commands are executed as root
user.
Prepare the VM
Access the VM using ssh
Stop the processes:
Rename the original directory
NFS example
NFS server provides an endpoint to mount locally a remote directory.
Create a directory on your VM to serve as the mount point for the NFS share:
Back-up the
/etc/fstab
fileAdd an entry at the end of the
/etc/fstab
file to specify the NFS share and the mount point. The entry should follow this format:Replace with the IP address or hostname of the NFS server, with the path of the directory you want to mount, and with the path of the local mount point you created in Step 1.
For example, if the NFS server IP address is 192.168.1.100 and the remote directory you want to mount is /data, the entry would look like this:
Apply a
daemon-reload
To mount all entries listed in
/etc/fstab
, you can use themount -a
command.
Ensure that your VM has network connectivity to the NFS server and that you have the necessary permissions to access the NFS share.
Now that you have mounted the NFS component, go to the Restart back-up process section.
Block volume example
If your cloud gives you the ability to provision block storage and attach the disk to your VM, please follow the recommended procedures. For example, it involves several iscsi
commands executions.
Once Attached, format the disk (e.g.,
sdb
):Persist the changes:
Now that you have mounted the Disk component, go to the Restart back-up process section.
Restart back-up process
Synchronize the new volume
Start the process:
Wait a few seconds and ensure that all services are in the Running state:
Verify that the system is functioning correctly by performing following tasks.
Remove the old directory
Troubleshooting
When listing pods, agility-minio-xxxxxxx-xxxxx
pod is not on Running
status
Ensure synchronization between
${MOUNT_PATH}.old/
and${MOUNT_PATH}/
was successfullEnsure PVCs directory have right permissions