Skip to content

Add Raft endpoints and fix cluster init bugs#1212

Merged
otoolep merged 4 commits intoinfluxdata:masterfrom
otoolep:add_raft_endpoints
Dec 12, 2014
Merged

Add Raft endpoints and fix cluster init bugs#1212
otoolep merged 4 commits intoinfluxdata:masterfrom
otoolep:add_raft_endpoints

Conversation

@otoolep
Copy link
Copy Markdown
Contributor

@otoolep otoolep commented Dec 11, 2014

No description provided.

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.

The config.sample.toml only makes sense in the context of running inside of the influxdb directory, doesn't it? I'm not sure if this is useful for most end users who download the binary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Perhaps. This is a straight copy from the existing code. If we do remove it, we need to make the error message more helpful when it is not supplied. Currently it's

config: open : no such file or directory

which isn't great.

@benbjohnson
Copy link
Copy Markdown
Contributor

Also, minor nit, but "Raft" is just spelled with initial case. It's not an acronym. Not sure why it's called Raft actually...

@otoolep
Copy link
Copy Markdown
Contributor Author

otoolep commented Dec 11, 2014

Thanks @benbjohnson -- will stop capitalizing Raft.

@otoolep otoolep changed the title Add RAFT endpoints and fix cluster init bugs Add Raft endpoints and fix cluster init bugs Dec 11, 2014
If a Broker is running on the node, we need ensure the handler will
service its endpoints.
@otoolep
Copy link
Copy Markdown
Contributor Author

otoolep commented Dec 11, 2014

OK, all comments addressed. The error message is OK, as long as a path is in there. I think it pretty clear for now:

config: open /etc/influxdb.conf: no such file or directory

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

/etc/influxdb.conf is beginning to feel like a magic string that should be defined elsewhere. Perhaps some path called paths.go, in the main package.

Any thoughts?

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.

You can make a constant at the top of main.go:

const DefaultConfigPath = `/etc/influxdb.conf`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK, I'm happy with that. I think it's the most logical place to put some of these string constants.

@otoolep
Copy link
Copy Markdown
Contributor Author

otoolep commented Dec 11, 2014

As we've discussed, I'm sure this is far from the final code, but this is a stepping stone to getting a real 3-combined-node cluster going. With this in place I should be able to start a single node that is truly running in 'combined' mode.

@benbjohnson
Copy link
Copy Markdown
Contributor

👍

@otoolep
Copy link
Copy Markdown
Contributor Author

otoolep commented Dec 11, 2014

@benbjohnson -- thanks. I'm going to make the constant change, and then merge.

otoolep added a commit that referenced this pull request Dec 12, 2014
Add Raft endpoints and fix cluster init bugs
@otoolep otoolep merged commit 3c6e848 into influxdata:master Dec 12, 2014
@otoolep otoolep deleted the add_raft_endpoints branch December 12, 2014 00:00
mgattozzi pushed a commit that referenced this pull request Sep 8, 2025
* chore(wal_replay): port limit concurrency of replay

* port #26716 to ent
* ticket #26715

* chore(cli): port hide the token's env value in cli help

* port #26714
* ticket #26713
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