We have updated our Terms of Service, Code of Conduct, and Addendum.

Is there an easy way to transfer the leader node to a new box?

Is there an easy way to transfer the leader node to a new box?

Answers

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭

    Like, copy /opt/cribl, be happy?

  • Raanan Dagan
    Raanan Dagan Posts: 101 mod

    Tar / untar the local directory, and the groups directory

  • So I have an existing infrastructure with three workers. The customer wants to move the leader to another box and use the server formerly know as the leader to a worker node. I am just trying to figure out how to point the current workers to the new leader as efficiently as possible.

  • With as little interruption as possible.

  • Raanan Dagan
    Raanan Dagan Posts: 101 mod

    Option # 1 - Easy .. Before the first leader is down .. From the UI -> Go to the worker -> Worker Setting -> Distributed Setting -> Leader settings -> host of second leader

  • Raanan Dagan
    Raanan Dagan Posts: 101 mod

    Option # 2 - From the Worker CLI -> modify cribl/local/_system/instance.yml (restart the worker)

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭

    And whatever you do, this is the right moment to create a DNS entry that points to your leader and use that DNS in your config, so if your leader changes again, you just need to update the DNS, not the worker config

  • Raanan Dagan
    Raanan Dagan Posts: 101 mod

    :this: DNS is for sure the right move .. that way you can change the IP of the leader without a need to change any worker configurations