Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Umbrella][Agent] Add an agent installer module for agent installation #9801

Closed
19 tasks done
justinwwhuang opened this issue Mar 12, 2024 · 1 comment
Closed
19 tasks done
Assignees
Milestone

Comments

@justinwwhuang
Copy link
Contributor

justinwwhuang commented 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:

  1. Download installation package
  2. Install through installation package
  3. Start process
  4. Stop process
  5. 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.
    image

add flow

manager config
image
local config
image

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
    image
  • atomic operations 2 will use installCommand to install the module
    image
  • atomic operations 3 will use startCommand to start the module
    image
    Then, the module is installed.

update flow

manager config
image
local config
image

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
    image
  • atomic operations 4 will use stopCommand to stop the module
    image
  • atomic operations 5 will use uninstallCommand to uninstall the module
    image
  • atomic operations 2 will use installCommand to install the module
    image
  • atomic operations 3 will use startCommand to start the module
    image

Task list

InLong Component

InLong Agent

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@justinwwhuang justinwwhuang added this to the 1.12.0 milestone Mar 12, 2024
@justinwwhuang justinwwhuang self-assigned this Mar 12, 2024
@dockerzhang 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
@dockerzhang
Copy link
Contributor

close it for all sub-tasks finshed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants