416DAT

Check-in [c4e1f1c621]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add OrientDB distributed configuration files.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c4e1f1c621585c98d8ad0fadf240166f4df0ce3c
User & Date: rchow 2013-03-19 08:57:32
Context
2013-03-19
17:48
Add license to configuration file. check-in: 99253c06bd user: rchow tags: trunk
08:57
Add OrientDB distributed configuration files. check-in: c4e1f1c621 user: rchow tags: trunk
08:52
Move file to folder. check-in: 344788d23a user: rchow tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added Raymond/hazelcast.xml.



































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<!-- ~ Copyright (c) 2008-2012, Hazel Bilisim Ltd. All Rights Reserved. ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not 
	use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless 
	required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR 
	CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. -->

<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-2.1.xsd" xmlns="http://www.hazelcast.com/schema/config"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<group>
		<name>orientdb</name>
		<password>orientdb</password>
	</group>
	<network>
		<port auto-increment="true">2434</port>
		<join>
			<multicast enabled="false">
				<multicast-group>235.1.1.1</multicast-group>
				<multicast-port>2434</multicast-port>
			</multicast>
			<tcp-ip enabled="true">
				<hostname>ec2-54-245-193-84.us-west-2.compute.amazonaws.com</hostname>
				<hostname>ec2-54-244-156-211.us-west-2.compute.amazonaws.com</hostname>
				<interface>10.249.79.6</interface>
				<interface>10.249.21.140</interface>
			</tcp-ip>
		</join>
	</network>
	<executor-service>
		<core-pool-size>1</core-pool-size>
		<max-pool-size>16</max-pool-size>
		<keep-alive-seconds>60</keep-alive-seconds>
	</executor-service>
</hazelcast>

Added Raymond/orientdb-dserver-config.xml.









































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orient-server>
  <handlers>
    <handler class="com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin">
      <parameters>
        <parameter value="true" name="enabled"/>
        <parameter value="${ORIENTDB_HOME}/config/default-distributed-db-config.json" name="configuration.db.default"/>
        <parameter value="${ORIENTDB_HOME}/config/hazelcast.xml" name="configuration.hazelcast"/>
        <parameter value="true" name="alignment.startup"/>
        <parameter value="120000" name="alignment.timer"/>
        <parameter value="com.orientechnologies.orient.server.distributed.conflict.ODefaultReplicationConflictResolver" name="conflict.resolver.impl"/>
        <parameter name="db.*"
         value="
         {
         'servers' : {
         '*' : {
         'synchronization' : true,
         'clusters' : {
         '*' : { 
         'synchronization' : true,
         'operations' : {
         'create' : { 'direction' : 'in-out', 'mode' : 'synchronous' },
         'read'   : { 'direction' : 'in',     'mode' : 'synchronous' },
         'update' : { 'direction' : 'in-out', 'mode' : 'synchronous' },
         'delete' : { 'direction' : 'in-out', 'mode' : 'synchronous' }
         },
         'offlineMaxBuffer' : 1000000
         },
         'internal' : { 'synchronization' : false },
         'index' : { 'synchronization' : false }
         },
         'classes': {}
         },

         '10.249.21.140:2434' : {
         'defaultCluster' : 'usertable',
         'clusters' : {
         'usertable' : {
         'operations' : {
         'create' : { 'direction' : 'out', 'mode' : 'asynchronous'}
         }
         }
         },
         'classes' : {
         'usertable' : { 'defaultCluster' : 'usertable' }
         }
         },

         '10.249.79.6:2434' : {
         'defaultCluster' : 'usertable',
         'clusters' : {
         'usertable' : {
         'operations' : {
         'create' : { 'direction' : 'out', 'mode' : 'asynchronous'}
         }
         }
         },
         'classes' : {
         'usertable' : { 'defaultCluster' : 'usertable' }
         }
         }
         }
         }" />
       </parameters>
     </handler>
     <handler class="com.orientechnologies.orient.server.handler.OAutomaticBackup">
      <parameters>
        <parameter value="false" name="enabled"/>
        <parameter value="4h" name="delay"/>
        <parameter value="backup" name="target.directory"/>
        <parameter value="${DBNAME}-${DATE:yyyyMMddHHmmss}.json" name="target.fileName"/>
        <parameter value="" name="db.include"/>
        <parameter value="" name="db.exclude"/>
      </parameters>
    </handler>
    <handler class="com.orientechnologies.orient.server.handler.OServerSideScriptInterpreter">
      <parameters>
        <parameter value="false" name="enabled"/>
      </parameters>
    </handler>
  </handlers>
  <network>
    <protocols>
      <protocol implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary" name="binary"/>
      <protocol implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb" name="http"/>
    </protocols>
    <listeners>
      <listener protocol="binary" port-range="2424-2430" ip-address="0.0.0.0"/>
      <listener protocol="http" port-range="2480-2490" ip-address="0.0.0.0">
        <commands>
          <command implementation="com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetStaticContent" pattern="GET|www GET|studio/ GET| GET|*.htm GET|*.html GET|*.xml GET|*.jpeg GET|*.jpg GET|*.png GET|*.gif GET|*.js GET|*.css GET|*.swf GET|*.ico GET|*.txt GET|*.otf GET|*.pjs GET|*.svg">
            <parameters>
              <entry value="Cache-Control: no-cache, no-store, max-age=0, must-revalidate\r\nPragma: no-cache" name="http.cache:*.htm *.html"/>
              <entry value="Cache-Control: max-age=120" name="http.cache:default"/>
            </parameters>
          </command>
        </commands>
        <parameters>
          <parameter value="utf-8" name="network.http.charset"/>
        </parameters>
      </listener>
    </listeners>
  </network>
  <storages>
    <storage loaded-at-startup="true" userPassword="admin" userName="admin" path="memory:temp" name="temp"/>
  </storages>
  <users>
    <user resources="*" password="34B4444F91ECC5B80EE2AF8D10B74E3DC2DDC872879F5E9BD203BB372663D029" name="root"/>
    <user resources="connect,server.listDatabases" password="guest" name="guest"/>
    <user resources="database.passthrough" password="C14313C29DFEE39A2B491333A487F4A25B074C58DD9EBEC6EEC5E0200FB3B009" name="replicator"/>
  </users>
  <properties>
    <entry value="info" name="log.console.level"/>
    <entry value="fine" name="log.file.level"/>
  </properties>
</orient-server>