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

[dbnode] Default HostID and Discovery config for minimal config #2876

Merged
merged 2 commits into from
Nov 12, 2020

Conversation

robskillington
Copy link
Collaborator

What this PR does / why we need it:

Default HostID and Discovery config for a minimal configuration file for default DB node which ends up being:

coordinator: {}
db: {}

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:

NONE

Does this PR require updating code package or user-facing documentation?:

NONE

Copy link
Contributor

@notbdu notbdu left a comment

Choose a reason for hiding this comment

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

LGTM, pending changing DiscoveryConfig -> DiscoveryOrDefault() in a few more places.

@@ -166,7 +175,7 @@ type DBConfiguration struct {
PoolingPolicy *PoolingPolicy `yaml:"pooling"`

// The discovery configuration.
DiscoveryConfig discovery.Configuration `yaml:"discovery"`
Discovery *discovery.Configuration `yaml:"discovery"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we need to change this in a few places as well.

Copy link
Collaborator

@rallen090 rallen090 left a comment

Choose a reason for hiding this comment

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

LGTM

@robskillington robskillington merged commit 41ea054 into master Nov 12, 2020
@robskillington robskillington deleted the r/default-hostid-discovery branch November 12, 2020 00:00
soundvibe added a commit that referenced this pull request Nov 12, 2020
* master:
  [query] Remove dead code in prom package (#2871)
  Improve some slow tests (#2881)
  [coordinator] Set default namespace tag to avoid colliding with commonly used "namespace" label (#2878)
  [dbnode] Introduce Aggregator type (#2840)
  [dbnode] Refactor wide query path (#2826)
  [dbnode] Add validation to ensure index claims is singleton (#2877)
  [dbnode] Default HostID and Discovery config for minimal config (#2876)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants