{application, relay,
  [
    {description,"Relay-1.3.2"},
    {id,"relay"},
    {vsn,"git"},
    {applications, [kernel, stdlib, sasl, lager, crypto, rabbit, syn, os_mon, runtime_tools]},
    {registered, [relay]},    
    {mod, {relay, []}},

    %% environment variables
    {env, [{tcp_listen_options,
      [binary,
        {packet,raw},
        {reuseaddr,true},
        {backlog,128},
        {nodelay,true},
        {linger,{true,0}},
        {exit_on_close,false}]},

      {log_level, debug},

      %% ue/app_server idle timeout
      {idle_interval_ue, 120000},
      {idle_interval_app_server, 60000},

      %% tcp port of relay services
      {provision_ports, [12201]},
      {gateway_ports, [12200]},
      
      {max_key_expiry_time, 1728000},


      %% cluster configuration
      {rabbit, [
        {log_levels, debug},
        {table_definition_mod, {relay_table_def, definitions, []}},
        {cluster_nodes, {['relay01@node1', 'relay01@node2'], disc}},
        {cluster_partition_handling, pause_minority}
      ]},

      %% statistics setting
      {collect_statistics, none},
      {collect_statistics_interval, 5000},

      %% throughput print setting
      {throughput_print_interval,300000}
    ]}
  ]
}.


