<?xml version="1.0" encoding="utf-8"?>
<ScadaServerConfig>
  <GeneralOptions>
    <UnrelIfInactive>300</UnrelIfInactive>
    <MaxCurDataAge>0</MaxCurDataAge>
    <UseArchivalStatus>false</UseArchivalStatus>
    <GenerateAckCmd>false</GenerateAckCmd>
    <DisableFormulas>false</DisableFormulas>
    <EnableFormulasObjNums />
    <StopWait>10</StopWait>
    <MaxLogSize>1</MaxLogSize>
  </GeneralOptions>
  <ListenerOptions>
    <Port>10000</Port>
    <Timeout>10000</Timeout>
    <SecretKey>0E063D581B1DB27B8E984993DED65CE99284A706756C706C7F3B12C44BD55D4D</SecretKey>
  </ListenerOptions>
  <Modules>
    <Module code="ModArcBasic" />
    <Module code="ModArcPostgreSql" />
  </Modules>
  <Archives>
    <Archive active="true" code="Cur" name="Current data" kind="Current" module="ModArcBasic">
      <Option name="FlushPeriod" value="30" />
      <Option name="LogEnabled" value="false" />
      <Option name="ReadOnly" value="false" />
      <Option name="UseCopyDir" value="false" />
    </Archive>
    <Archive active="true" code="Min" name="Minute archive" kind="Historical" module="ModArcBasic">
      <Option name="IsPeriodic" value="true" />
      <Option name="LogEnabled" value="false" />
      <Option name="MaxQueueSize" value="1000" />
      <Option name="PullToPeriod" value="0" />
      <Option name="ReadOnly" value="false" />
      <Option name="Retention" value="365" />
      <Option name="UseCopyDir" value="false" />
      <Option name="WriteWithPeriod" value="true" />
      <Option name="WritingPeriod" value="1" />
      <Option name="WritingPeriodUnit" value="Minute" />
    </Archive>
    <Archive active="true" code="Hour" name="Hourly archive" kind="Historical" module="ModArcBasic">
      <Option name="IsPeriodic" value="true" />
      <Option name="LogEnabled" value="false" />
      <Option name="MaxQueueSize" value="1000" />
      <Option name="PullToPeriod" value="0" />
      <Option name="ReadOnly" value="false" />
      <Option name="Retention" value="365" />
      <Option name="UseCopyDir" value="false" />
      <Option name="WriteWithPeriod" value="true" />
      <Option name="WritingPeriod" value="1" />
      <Option name="WritingPeriodUnit" value="Hour" />
    </Archive>
    <Archive active="false" code="Day" name="Daily archive" kind="Historical" module="ModArcBasic">
      <Option name="IsPeriodic" value="true" />
      <Option name="LogEnabled" value="false" />
      <Option name="MaxQueueSize" value="1000" />
      <Option name="PullToPeriod" value="0" />
      <Option name="ReadOnly" value="false" />
      <Option name="Retention" value="365" />
      <Option name="UseCopyDir" value="false" />
      <Option name="WriteWithPeriod" value="true" />
      <Option name="WritingPeriod" value="24" />
      <Option name="WritingPeriodUnit" value="Hour" />
    </Archive>
    <Archive active="true" code="Events" name="Event archive" kind="Events" module="ModArcBasic">
      <Option name="LogEnabled" value="false" />
      <Option name="MaxQueueSize" value="1000" />
      <Option name="ReadOnly" value="false" />
      <Option name="Retention" value="365" />
      <Option name="UseCopyDir" value="false" />
    </Archive>
    <Archive active="false" code="CurCopy" name="Current data copy" kind="Current" module="ModArcPostgreSql">
      <Option name="BatchSize" value="1000" />
      <Option name="Connection" value="" />
      <Option name="FlushPeriod" value="30" />
      <Option name="LogEnabled" value="false" />
      <Option name="MaxQueueSize" value="1000" />
      <Option name="ReadOnly" value="false" />
      <Option name="UseDefaultConn" value="true" />
    </Archive>
    <Archive active="false" code="MinCopy" name="Minute archive copy" kind="Historical" module="ModArcPostgreSql">
      <Option name="BatchSize" value="1000" />
      <Option name="Connection" value="" />
      <Option name="IsPeriodic" value="true" />
      <Option name="LogEnabled" value="false" />
      <Option name="MaxQueueSize" value="1000" />
      <Option name="PartitionSize" value="OneMonth" />
      <Option name="PullToPeriod" value="0" />
      <Option name="ReadOnly" value="false" />
      <Option name="Retention" value="365" />
      <Option name="UseDefaultConn" value="true" />
      <Option name="WriteWithPeriod" value="true" />
      <Option name="WritingPeriod" value="1" />
      <Option name="WritingPeriodUnit" value="Minute" />
    </Archive>
    <Archive active="false" code="HourCopy" name="Hourly archive copy" kind="Historical" module="ModArcPostgreSql">
      <Option name="BatchSize" value="1000" />
      <Option name="Connection" value="" />
      <Option name="IsPeriodic" value="true" />
      <Option name="LogEnabled" value="false" />
      <Option name="MaxQueueSize" value="1000" />
      <Option name="PartitionSize" value="OneMonth" />
      <Option name="PullToPeriod" value="0" />
      <Option name="ReadOnly" value="false" />
      <Option name="Retention" value="365" />
      <Option name="UseDefaultConn" value="true" />
      <Option name="WriteWithPeriod" value="true" />
      <Option name="WritingPeriod" value="1" />
      <Option name="WritingPeriodUnit" value="Hour" />
    </Archive>
    <Archive active="false" code="DayCopy" name="Daily archive copy" kind="Historical" module="ModArcPostgreSql">
      <Option name="BatchSize" value="1000" />
      <Option name="Connection" value="" />
      <Option name="IsPeriodic" value="true" />
      <Option name="LogEnabled" value="false" />
      <Option name="MaxQueueSize" value="1000" />
      <Option name="PartitionSize" value="OneMonth" />
      <Option name="PullToPeriod" value="0" />
      <Option name="ReadOnly" value="false" />
      <Option name="Retention" value="365" />
      <Option name="UseDefaultConn" value="true" />
      <Option name="WriteWithPeriod" value="true" />
      <Option name="WritingPeriod" value="24" />
      <Option name="WritingPeriodUnit" value="Hour" />
    </Archive>
    <Archive active="false" code="EventsCopy" name="Event archive copy" kind="Events" module="ModArcPostgreSql">
      <Option name="BatchSize" value="1000" />
      <Option name="Connection" value="" />
      <Option name="LogEnabled" value="false" />
      <Option name="MaxQueueSize" value="1000" />
      <Option name="PartitionSize" value="OneMonth" />
      <Option name="ReadOnly" value="false" />
      <Option name="Retention" value="365" />
      <Option name="UseDefaultConn" value="true" />
    </Archive>
  </Archives>
</ScadaServerConfig>