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

Better support for multi cluster for run task #89442

Merged
merged 3 commits into from
Aug 18, 2022

Conversation

jakelandis
Copy link
Contributor

This commit introduces a ./gradlew run-ccs task with the following goals:

  • mirror the ease of use of ./gradlew run for manual cross cluster search development
    • same credentials
    • same well known ports
    • uses ccs specific naming
    • enable debugging across both clusters

This is admittedly kinda hacky. Test clusters have support multi-cluster and are in use for
for automated testing. There are some nuances that make that setup (and this setup)
a bit cumbersome..specifically needing to read one cluster's config to configure another cluster.

The run task adds a bit more config (well defined ports, etc.) than the tests need to
so that also complicates this abit more. I found that without the additions here I was unable to get both
sharing of cluster configuration (like in the tests)
and the run task's hard coded config to work well together. Hopefully the additions to the run task are not
too hacky as I could not find any other way.

===

Also FWIW, this is in support of a new security model for CCS and CCR so there will likely
be more PR's with multi-cluster configs to help testing that effort.

@jakelandis jakelandis added :Delivery/Build Build or test infrastructure v8.5.0 labels Aug 17, 2022
@jakelandis jakelandis requested a review from mark-vieira August 17, 2022 23:51
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@elasticsearchmachine elasticsearchmachine added the Team:Delivery Meta label for Delivery team label Aug 17, 2022
Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

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

Multi-cluster configuration with the run task in indeed quite awkward. We could improve this but this is probably fine for now given it's pretty self-contained.

@jakelandis
Copy link
Contributor Author

Thanks Mark !

@jakelandis jakelandis changed the title better support for multi cluster for run task Better support for multi cluster for run task Aug 18, 2022
@jakelandis jakelandis merged commit 20ed7e3 into elastic:main Aug 18, 2022
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Aug 19, 2022
* upstream/main: (265 commits)
  Disable openid connect tests due to missing fixture (elastic#89478)
  Add periodic job for single processor node testing
  Updates to changelog processing after docs redesign (elastic#89463)
  Better support for multi cluster for run task (elastic#89442)
  Mute failing tests (elastic#89465)
  [ML] Performance improvements related to ECS Grok pattern usage (elastic#89424)
  Add source fallback support for date and date_nanos mapped types (elastic#89440)
  Reuse Info in lifecycle step (elastic#89419)
  feature: support metrics for multi value fields (elastic#88818)
  Upgrade OpenTelemetry API and remove workaround (elastic#89438)
  Remove LegacyClusterTaskResultActionListener (elastic#89459)
  Add YAML spec docs about matching errors (elastic#89370)
  Remove redundant cluster upgrade tests for auth tokens (elastic#89417)
  Return 400 error for GetUserPrivileges call with API keys (elastic#89333)
  User Profile - Detailed errors in hasPrivileges response (elastic#89224)
  Rollover min_* conditions docs and highlight (elastic#89434)
  REST tests for percentiles_bucket agg (elastic#88029)
  REST tests for cumulative pipeline aggs (elastic#88966)
  Clean-up file watcher keys. (elastic#89429)
  fix a typo in Security.java (elastic#89248)
  ...

# Conflicts:
#	server/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request Aug 24, 2022
@jakelandis jakelandis mentioned this pull request Aug 24, 2022
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request Aug 29, 2022
jakelandis added a commit that referenced this pull request Aug 30, 2022
This commit reverts the changes introduced via #89442 / 20ed7e3
and re-implements the same goals but with fewer changes. Also included in this commit 
is the ability to change the proxyMode via system property and mention of this
new run task in the testing documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants