You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the fact that in actual deployment environments, the machine on which the inlong agent is located is often not controlled by the platform. Therefore, the inlong agent needs to have the ability to self upgrade. Agent installers are introduced for the installation and self upgrading of agents. He does not need to rely on third-party installation platforms and can achieve a closed loop of agent installation and upgrade capabilities.
Solution
Agent installers have five atomic operations:
Download installation package
Install through installation package
Start process
Stop process
Uninstall
The agent installer periodically pulls configuration information from the manager and compares the new and old configurations to obtain three results. Each result corresponds to a process, and each process performs a fixed number of atomic operations.
add flow
manager config
local config
Local config module list is empty, manager config module list has one module, then add flow is actived. And 1 2 3 atomic operations will be execued:
atomic operations 1 will use install package relatived config to download package
atomic operations 2 will use installCommand to install the module
atomic operations 3 will use startCommand to start the module
Then, the module is installed.
update flow
manager config
local config
Local config and manager config has the same module id, but the md5 has changed, update flow is actived. And 1 4 5 2 3 atomic operations will be execued:
atomic operations 1 will use install package relatived config to download package
atomic operations 4 will use stopCommand to stop the module
atomic operations 5 will use uninstallCommand to uninstall the module
atomic operations 2 will use installCommand to install the module
atomic operations 3 will use startCommand to start the module
dockerzhang
changed the title
[Umbrella] [Agent] Add an agent installer module for agent installation
[Umbrella][Agent] Add an agent installer module for agent installation
Mar 12, 2024
Motivation
Due to the fact that in actual deployment environments, the machine on which the inlong agent is located is often not controlled by the platform. Therefore, the inlong agent needs to have the ability to self upgrade. Agent installers are introduced for the installation and self upgrading of agents. He does not need to rely on third-party installation platforms and can achieve a closed loop of agent installation and upgrade capabilities.
Solution
Agent installers have five atomic operations:
The agent installer periodically pulls configuration information from the manager and compares the new and old configurations to obtain three results. Each result corresponds to a process, and each process performs a fixed number of atomic operations.
add flow
manager config
![image](https://private-user-images.githubusercontent.com/26856549/318760781-4d6c4698-a1cc-4c73-8a6f-ad1aa629f5fa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWI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NFpBJTJGMjAyNDA5MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAzVDIyNDAzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzYmExMjZhZjgxNDQ4ZTQyMjAzYTNlOWNiNjhjNzE3NjNmZGZiN2I4MGRjM2VjZGM4NjZlNzI1NzM4MmNjMzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WnNPplhktrZvcb-TbR2TX_jKU2YfwncgFwBsIxte9Oo)
local config
Local config module list is empty, manager config module list has one module, then add flow is actived. And 1 2 3 atomic operations will be execued:
Then, the module is installed.
update flow
manager config
![image](https://private-user-images.githubusercontent.com/26856549/318760615-edc43352-132d-418d-b8e2-f44481147b60.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MDM1MzQsIm5iZiI6MTcyNTQwMzIzNCwicGF0aCI6Ii8yNjg1NjU0OS8zMTg3NjA2MTUtZWRjNDMzNTItMTMyZC00MThkLWI4ZTItZjQ0NDgxMTQ3YjYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAzVDIyNDAzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZiMjFiYzVkMDZkZDU0OTRmZTRlMGYyZDQ2MDgyYWY3ZmE3ZTUyN2EwOTU2ODYxMzI2ZjkxNjcwOTZkN2MzZmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-L6QNTBO7B9sRqj5iKKPPkmX0tPTw2JPi8t9vwVfMTU)
![image](https://private-user-images.githubusercontent.com/26856549/318749570-40db577c-62cb-4ac7-bcc4-2e92d5ac67e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MDM1MzQsIm5iZiI6MTcyNTQwMzIzNCwicGF0aCI6Ii8yNjg1NjU0OS8zMTg3NDk1NzAtNDBkYjU3N2MtNjJjYi00YWM3LWJjYzQtMmU5MmQ1YWM2N2UxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAzVDIyNDAzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1MDBmMGZiMWMzM2ZjZDZiOTQ2MjZhNjA3ODI5NmJhNDBhZGU4NjQxMzcyY2Q5OGI2ZGJiZjJjNDVmM2QyMmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cgXgXc_WMa_9dIbBBjM0F940iviejdbHaYiuKfVYh3o)
local config
Local config and manager config has the same module id, but the md5 has changed, update flow is actived. And 1 4 5 2 3 atomic operations will be execued:
Task list
InLong Component
InLong Agent
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: