NS7 -> NS8 migration: Loki keeps restarting

As you come from a migration, I assume you can loose all your logs.

If this is the case, and your leader node is 1, execute the following procedure in the leader node 1.

  1. install another Loki instance in Node 1

    add-module loki 1 
    

    Here I assume the new instance is loki2.

  2. transform the new instance in the active one

    redis-cli set cluster/default_instance/loki loki2
    redis-cli publish cluster/event/default-instance-changed '{"instance":"loki","previous":"loki1","current":"loki2"}'
    
  3. remove the old Loki instance (optional)

    remove-module --no-preserve --force loki1
    
2 Likes