syn-test.config 1.2 KB

123456789101112131415161718192021222324252627
  1. %%%===================================================================
  2. %%% Syn - TEST CONFIGURATION FILE
  3. %%%===================================================================
  4. [
  5. %% Syn config
  6. {syn, [
  7. %% You can set a callback to be triggered when a process exits.
  8. %% This callback will be called only on the node where the process was running.
  9. {process_exit_callback, [syn_register_processes_SUITE, process_exit_callback_dummy]},
  10. %% After a net split, when nodes reconnect, Syn will merge the data from all the nodes in the cluster.
  11. %% If the same Key was used to register a process on different nodes during a net split, then there will be a conflict.
  12. %% By default, Syn will discard the processes running on the node the conflict is being resolved on,
  13. %% and will kill it by sending a `kill` signal with `exit(Pid, kill)`.
  14. %% If this is not desired, you can set the netsplit_send_message_to_process option here below to instruct Syn
  15. %% to send a message to the discarded process, so that you can trigger any actions on that process
  16. %% (such as a graceful shutdown).
  17. {netsplit_send_message_to_process, shutdown}
  18. ]}
  19. ].