Skip to content

Conversation

@pebrc
Copy link
Collaborator

@pebrc pebrc commented Jun 12, 2019

Fixes #620

  • removes plugins from prepare-fs script in init container
  • install plugins instead mechanism described in Provide default images and volume mounts to user-provided init containers #1022 or via custom images
  • trying to figure out whether we should remove the volume mount as well
    • Answer is no, we want to keep all the volume mounts to make it easier for users to actually leverage the new init container behaviour

Copy link
Contributor

@sebgl sebgl left a comment

Choose a reason for hiding this comment

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

Generally LGTM, I think we can remove a bit more.
There is also a reference to remove in NewPrepareFSInitContainer function comment.

######################
# Persist the content of bin/, config/ and plugins/
# Persist the content of bin/ and config/
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we don't need to persist bin & config anymore, since was mostly done for additional plugins stuff that can get installed in there.

######################
# Files persistence #
Copy link
Contributor

Choose a reason for hiding this comment

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

PLUGIN_BIN=$ES_DIR/bin/elasticsearch-plugin can also be removed?

"$PLUGIN_BIN install --batch repository-s3",
"$PLUGIN_BIN install --batch repository-gcs",
"mv /usr/share/elasticsearch/config/* /mnt/elastic-internal/elasticsearch-config-local/",
"mv /usr/share/elasticsearch/bin/* /mnt/elastic-internal/elasticsearch-bin-local/",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we don't need these 2 anymore (see above)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually I think I need to revert the last commit and restore the plugin mount again. Otherwise it will be really tricky for users to make this work correctly

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm you're right.

@pebrc pebrc merged commit c2ca28e into elastic:master Jun 13, 2019
@pebrc pebrc added >enhancement Enhancement of existing functionality v0.9.0 labels Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement Enhancement of existing functionality v0.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Download plugins in parallel to speedup node bootstrap

2 participants