Deployment
Standalone
Jifa will run in standalone mode if role is STANDALONE_WORKER.
Suitable scenarios:
- Analyze local files.
- Deploy in a high-spec server.
In this mode, H2 will be used as the database by default.
Steps
- After build, transfer
jifa.zip(orjifa.tar) to your target environment. unzip jifa.ziportar -xf jifa.tar./jifa/bin/jifa
Cluster
In cluster mode, users need to prepare a MySQL database.
There are two types of roles:
MASTER: is responsible for receiving analysis requests and forwarding to worker nodes.STATIC_WORKER: is responsible for processing analysis requests.ELASTIC_WORKER: is responsible for processing analysis requests.
Deploy a Cluster
Refer to cluster.yml.
Command: kubectl apply -f cluster.yml
If your cluster does not have a default Storage Class, you need to modify cluster.yml to set it.
Deploy a Static Cluster (only contains master nodes and static worker nodes)
The first two steps are the same as standalone mode.
Launch
MASTERnodesshell# set database $ export MYSQL_HOST=<host> $ export MYSQL_DATABASE=<name> $ export MYSQL_USER=<username> $ export MYSQL_PASSWORD=<password> $ ./jifa/bin/jifa --jifa.role=masterLaunch
STATIC_WORKERnodesshell# set database $ export MYSQL_HOST=<host> $ export MYSQL_DATABASE=<name> $ export MYSQL_USER=<username> $ export MYSQL_PASSWORD=<password> $ ./jifa/bin/jifa --jifa.role=static_worker