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

Add ManagementService #1034

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Add ManagementService #1034

merged 2 commits into from
Sep 10, 2024

Conversation

ikhoon
Copy link
Contributor

@ikhoon ikhoon commented Aug 30, 2024

Motivation:

Central Dogma does not provide a way to dump threads or heap data.

Modifications:

  • Add ManagementConfig to config a management service using dogma.json and CentralDogmaBuilder
  • Register ManagementService based on the options specified in ManagementService

Example:

  • Serve a management service at the same ports as the main server
    {
       "management": { 
          "port": 0 
       } 
    } 
  • Serve a management service only at an internal port which won't be exposed externally.
    {
      "management": {
        "address": "127.0.0.1"
        "port": 36463
      }
    }

Result:

You can now configure a managemet service to dump the thread information or heap data.

Motivation:

Central Dogma does not provide a way to dump threads or heap data.

Modifications:

- Add `ManagementConfig` to config a management service using
  `dogma.json` and `CentralDogmaBuilder`
- Register `ManagementService` based on the options specified in
  `ManagementService`

Example:

- Serve a management service at the same ports of the main server
  ```
  {
    "management": {
      "port": 0
    }
  }
  ```
- Serve a management service only at an internal port which won't be
  exposed externally.
  ```
  {
    "management": {
      "address": "127.0.0.1"
      "port": 36463
    }
  }
  ```

Result:

You can now configure a managemet service to dump the thread information
or heap data.
@ikhoon ikhoon added this to the 0.70.0 milestone Aug 30, 2024
Copy link
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

Copy link
Member

@minwoox minwoox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

@ikhoon ikhoon merged commit e331d5f into line:main Sep 10, 2024
9 of 10 checks passed
@ikhoon ikhoon deleted the management-service branch September 10, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants