-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.example1.xml
99 lines (93 loc) · 4.44 KB
/
configuration.example1.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
<?xml version="1.0" encoding="UTF-8"?>
<Server>
<Properties>
<!-- The server name -->
<Property name="server-name">Example</Property>
<!-- The server id (module name) -->
<Property name="server-id">tenio-example-1</Property>
<!-- The server address -->
<Property name="server-address">localhost</Property>
<!-- The current version code of your server in integer type (comparable) -->
<Property name="version-code">1</Property>
<!-- The current version name of your server in string type -->
<Property name="version-name">1.0</Property>
<!-- The core setting file's path for your server -->
<Property name="setting">setting.json</Property>
</Properties>
<Implements>
<Class name="packet-encryptor">com.tenio.core.network.zero.codec.encryption.DefaultBinaryPacketEncryptor</Class>
<Class name="packet-compressor">com.tenio.core.network.zero.codec.compression.DefaultBinaryPacketCompressor</Class>
<Class name="packet-encoder">com.tenio.core.network.zero.codec.encoder.DefaultBinaryPacketEncoder</Class>
<Class name="packet-decoder">com.tenio.core.network.zero.codec.decoder.DefaultBinaryPacketDecoder</Class>
<Class name="connection-filter">com.tenio.core.network.security.filter.DefaultConnectionFilter</Class>
<Class name="packet-queue-policy">com.tenio.core.network.entity.packet.policy.DefaultPacketQueuePolicy</Class>
</Implements>
<Network>
<Sockets>
<Port name="tcp" type="tcp">8032</Port>
</Sockets>
<Properties>
<Property name="websocket-using-ssl">false</Property>
<Property name="websocket-sender-buffer-size">1024</Property>
<Property name="websocket-receiver-buffer-size">1024</Property>
<Property name="socket-acceptor-buffer-size">1024</Property>
<Property name="socket-reader-buffer-size">1024</Property>
<Property name="socket-writer-buffer-size">1024</Property>
<Property name="packet-compression-threshold-bytes">10240</Property>
<Property name="allow-change-session">false</Property>
<Property name="max-connections-per-ip">10</Property>
</Properties>
</Network>
<Configuration>
<Workers>
<Worker name="socket-acceptor">1</Worker>
<Worker name="socket-reader">2</Worker>
<Worker name="socket-writer">2</Worker>
<Worker name="websocket-producer">1</Worker>
<Worker name="websocket-consumer">2</Worker>
<Worker name="http-worker">8</Worker>
<Worker name="internal-processor">2</Worker>
</Workers>
<Schedules>
<!-- Get the period checking in seconds which server can keep the empty
room -->
<Task name="removed-room-scan-interval">30</Task> <!-- Unit: Seconds -->
<!-- The period checking player time out in seconds -->
<Task name="disconnected-player-scan-interval">45</Task> <!-- Unit: Seconds -->
<!-- The period checking CCU in seconds -->
<Task name="ccu-scan-interval">60</Task> <!-- Unit: Seconds -->
<!-- Schedule detecting deadlocked threads -->
<Task name="deadlock-scan-interval">60</Task> <!-- Unit: Seconds -->
<!-- The delay between two computations of performances for channels or
0 if no statics are to be computed -->
<Task name="traffic-counter-interval">60</Task> <!-- Unit: Seconds -->
<!-- The period monitoring system -->
<Task name="system-monitoring-interval">60</Task> <!-- Unit: Seconds -->
</Schedules>
<Properties>
<Property name="data-serialization">msgpack</Property>
<Property name="max-packet-queue-size">100</Property>
<Property name="max-request-queue-size">100</Property>
<!-- When the server get disconnection of one client, can be hold its
player instance until timeout -->
<Property name="keep-player-on-disconnection">false</Property>
<!-- The maximum number of players which game can handle -->
<Property name="max-number-players">1000</Property>
<!-- The maximum number of rooms which game can handle -->
<Property name="max-number-rooms">1000</Property>
<!-- The max IDLE time in seconds which server can wait from the last
getting message from client -->
<Property name="max-player-idle-time">180</Property> <!-- Unit: Seconds -->
<Property name="max-player-idle-time-never-deported">86400</Property> <!-- Unit: Seconds -->
</Properties>
</Configuration>
<!-- Your customizable configurations -->
<Extension>
<Properties>
<Property name="custom-value-1">String</Property>
<Property name="custom-value-2">1</Property>
<Property name="custom-value-3">1.5</Property>
<Property name="custom-value-4">True</Property>
</Properties>
</Extension>
</Server>