hello!
I’ve been messing around with running quarkdb and I’ve got a working setup, but it’s kind of clunky.
A couple questions:
How are you guys defining all the qdb node hostname/port combinations for mgmofs.qdbcluster and for the quarkdb-create command, is it manual or scripted somehow?
Is there an easy way to determine just the current leader of the cluster? I’m currently just running raft_info and grepping for LEADER, is there a nicer way? I had a quick look through the code and didn’t find anything.
mgmofs.qdbcluster is set through puppet in our setup, and we run quarkdb-create manually when first configuring the nodes, at least for now. We’ll probably add some logic to our scripts to run quarkdb-create during installation.
Now, there is. Try “raft-info leader”. I may extend this to allow filtering of any field on “raft-info”, but for now it only works for the leader.
That’s awesome, thanks so much Georgios!! I’d like to see if I can automate a node joining the cluster somehow
Since you’re doing the host/port stuff via puppet, is the list just hardcoded in somewhere? I had a quick look through the cernops/puppet-eosserver github and couldn’t find where those were being set (also i haven’t actually used puppet before, so… gotta admit i’m not entirely sure what to look for)
(i did find this hilarious though: ‘listkeys’ => %w[my little poney])
Ah indeed, that repo contains internal configuration for production instances as well, and is locked down. Anyway, this is the related section of that link: