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

Restart crashed plugins #1236

Merged
merged 1 commit into from
Sep 8, 2023
Merged

Conversation

mszostok
Copy link
Contributor

@mszostok mszostok commented Sep 7, 2023

Description

Changes proposed in this pull request:

  • Restart crashed plugins based on Restart crashed plugins #1204

    • change the runningProcesses to support plugin name in the context of a given configuration
    • fix logging statements to make them more readable
    • apply suggestions from Restart crashed plugins #1204
    • add e2e tests
    • IMPORTANT: fixed key names used for string enabled plugins in map.
    • INFO[2023-09-07T17:05:44+02:00] Starting server on %q...:2115 component="Incoming Webhook Server
  • still todo:

    • add option to print plugin status or add it to list executors/sources as a new column
    • add e2e tests cases
    • update documentation

Testing

  • add e2e tests

Co-authored-by: Josef Karasek josef@kubeshop.io

@mszostok mszostok added the enhancement New feature or request label Sep 7, 2023
@mszostok mszostok force-pushed the watch-plugins-v2 branch 2 times, most recently from e386275 to 4d59ca5 Compare September 7, 2023 15:42
@mszostok mszostok marked this pull request as ready for review September 7, 2023 15:53
@mszostok mszostok requested review from PrasadG193 and a team as code owners September 7, 2023 15:53
@@ -1187,6 +1187,13 @@ plugins:
enabled: true
port: 2115
targetPort: 2115
# -- Botkube Restart Policy on plugin failure.
restartPolicy:
Copy link
Contributor

Choose a reason for hiding this comment

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

So, to better understand: It will do the heatlhcheck each 10s and if it restarts 5 times, the plugin will be disabled with this setup, am I correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

exactly, however I think that we can bump the disable threshold to ~10 because for now it's for the whole life of the plugin, until the botkube pod won't be restarted. I would like to change it to but probably in the follow-up PRs.

Copy link
Contributor

@huseyinbabal huseyinbabal left a comment

Choose a reason for hiding this comment

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

Left minor comment, thanks

Co-authored-by: Josef Karasek josef@kubeshop.io
@mszostok mszostok merged commit 30b50d0 into kubeshop:main Sep 8, 2023
14 checks passed
@mszostok mszostok deleted the watch-plugins-v2 branch September 8, 2023 08:23
mszostok added a commit that referenced this pull request Sep 8, 2023
Co-authored-by: Josef Karasek <josef@kubeshop.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants