Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

system settings

Expand
title설정 파일 예제Example configuration file
Code Block
{
  "options": {
    "hostname": "",
    "resources_path": ".",
    "database_path": "../db",
    "enable_auto_up": true,
    "rpc_address": "0.0.0.0:5168",
    "rest_address": "0.0.0.0:5167",
    "file_handle_limit": 128
  },
  "log": {
    "level": "debug",
    "console": {
      "enable": true
    },
    "file": {
      "enable": true,
      "location": "../logs",
      "size_limit": 10,
      "rotate_count": 10
    }
  },
  "file_buffer": {
    "location": "../buffer",
    "limit": 1024,
    "warn": 10,
    "auto_recover": false
  },
  "disk": {
    "minimum": 0,
    "period": 0
  },
  "archive": {
    "period": 0,
    "location": "../archives"
  },
  "userdata": null
}
Expand
titleXML 출력 예제output examples
Code Block
<system>
  <options hostname="node1" auto_up="true" file_handle_limit="128" sync_hash_type="crc32">
    <paths>
      <resources>.</resources>
      <database>../db1</database>
    </paths>
    <addresses>
      <rpc>0.0.0.0:5168</rpc>
      <rest>0.0.0.0:5167</rest>
    </addresses>
  </options>
  <log level="info">
    <console enable="true"></console>
    <file enable="true" size_limit="10" rotate_count="10">../logs/node1</file>
  </log>
  <file_buffer limit="1024" warn="10" auto_recover="true">../buffer</file_buffer>
  <disk minimum="1024" period="3"></disk>
  <archive enable="true" period="3">../archive</archive>
</system>

...

resource settings

Expand
title설정 파일 예제Example configuration file
Code Block
{
  "id": "r0",
  "description": "test resource",
  "auto_up": true,
  "nodes": [
    {
      "name": "node1",
      "url": "192.168.35.101:9876",
      "files": [
        {
          "path": "E:\\Repl\\Datas",
          "type": "directory",
          "recursive": true,
          "exclude_patterns": [],
        },
        {
          "path": "E:\\Repl\\data.xml",
          "type": "file",
        }
      ],
      "auto_file_lock": "off"
    },
    {
      "name": "node2",
      "url": "192.168.35.102:9876",
      "directories": [
        {
          "path": "F:\\Repl\\Datas",
          "type": "directory",
          "recursive": true,
          "exclude_patterns": [],
        },
        {
          "path": "F:\\Repl\\data.xml",
          "type": "file",
        }
      ],
      "auto_file_lock": "off"
    }
  ],
  "connections": [],
  "options": {
    "recursive": true,
    "exclude_patterns": [
      "*.tmp"
    ],
    "sync": {
      "attributes": false,
      "permissions": "none",
    },
    "auto_file_lock": "off",
    "database_path": ""
  },
  "userdata": null
}
Expand
titleXML 출력 예제output examples
Code Block
<resource id="r0" auto_up="true">
  <nodes>
    <node name="node1" url="127.0.0.1:9810">
      <files>
        <file path="E:/test/node1">
          <exclude_patterns>
            <pattern>*.tmp</pattern>
            <pattern>*.bak</pattern>
          </exclude_patterns>
        </file>
        <file path="E:/test/data.dat" type="file">
          <exclude_patterns></exclude_patterns>
        </file>
      </files>
      <file_buffer limit="1024" warn="150">D:/Temp</file_buffer>
    </node>
    <node name="node2" url="127.0.0.1:9820">
      <files>
        <file path="F:/test/node2">
          <exclude_patterns>
            <pattern>*.tmp</pattern>
            <pattern>*.bak</pattern>
          </exclude_patterns>
        </file>
        <file path="F:/test/data.dat" type="file">
          <exclude_patterns></exclude_patterns>
        </file>
      </files>
    </node>
  </nodes>
  <connections>
    <connection>
      <node1 name="node1"></node1>
      <node2 name="node2"></node2>
      <buffer size="100"></buffer>
      <network ping_interval="10"></network>
    </connection>
  </connections>
  <options recursive="true" auto_file_lock="on">
    <exclude_patterns></exclude_patterns>
    <sync attributes="true"></sync>
  </options>
  <network ping_interval="10" compress="false" tls="false" limit="0"></network>
  <handlers>
    <options timeout="0" timeout_action="kill"></options>
    <scripts></scripts>
  </handlers>
</resource>

...