Skip to content

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

Merged
robskillington merged 2 commits into
masterfrom
r/default-hostid-discovery
Nov 12, 2020
Merged

[dbnode] Default HostID and Discovery config for minimal config#2876
robskillington merged 2 commits into
masterfrom
r/default-hostid-discovery

Conversation

@robskillington

Copy link
Copy Markdown
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

@notbdu notbdu left a comment

Copy link
Copy Markdown
Contributor

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.


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

Copy link
Copy Markdown
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.

@rallen090 rallen090 left a comment

Copy link
Copy Markdown
Collaborator

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 pushed 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