Worker
The Worker service plays a fundamental role in the system. He is responsible for carrying out the actions requested by Console users. Here's an overview of how it works:
Data Reception: When a user interacts with the Console and generates actions, the Console packages all the data necessary to execute the action. This data is then sent to the Worker.
Action Processing: The Worker captures the data sent by the Console and performs the actions as requested. This may involve calculation processes, access to external resources, or any other task necessary to complete the action.
Sending Results: After completing the action, the Worker sends the return data to the Console. This feedback data may include results, status information, or any other relevant information.
Key Features:
Parallel Processing: The Worker is capable of handling multiple action requests simultaneously, ensuring efficiency and scalability.
Integrity Check: You can regularly check the integrity of the communication to ensure it is operating correctly. This is indicated in the Console through the "Ping At" column.
Activity Tracking: The Console can monitor the number of actions in progress on the Worker, which is reflected in the "Threads" column.
Bidirectional Communication: Communication between the Console and the Worker is bidirectional, allowing the Console to provide input and receive results.
Multiple Workers Registration:
Within the Linux Control Center, it is possible to register multiple Workers that can run on different networks or regions.
Requirements
Hardware
For each set of 5 threads it is necessary:
2 CPUs
4 GB RAM
Firewall
The following connection must be allowed:
Host Worker -> Host Console Linux Control Center on Porta 443 (HTTPS)
Configuring the Worker
To get the Worker ID, run the following command:
To activate a Worker:
Access the Linux Control Center through your browser.
In the side menu, go to Config and select Worker.
Click Actions and choose Trust to authorize the Worker.
The Status should change from Pending to Accepted.
Once authorized, the Linux Control Center console will test communication between itself and the Worker.
To check the communication status, access the side menu again and select the Logs option, then click on Queue.
When viewing the Queue select LOGS to read the response
This log will indicate that Linux Control Center is ready to be used.
If there is a problem with the execution of the queue during the operation of the Worker Linux Control Center, it is possible to reinstall the Worker by executing the script lcc_worker_install_upgrade.sh located on the machine hosting the Linux Control Center by the way /opt/lcc-shell/bin/lcc_worker_install_upgrade.sh
Last updated