1
by brian
clean slate |
1 |
#
|
2 |
# MySQL NDB Cluster Small Sample Configuration File
|
|
3 |
#
|
|
4 |
# This files assumes that you are using 1 to 3 hosts
|
|
5 |
# for running the cluster. Hostnames and paths listed
|
|
6 |
# below should be changed to match your setup.
|
|
7 |
#
|
|
8 |
# Note: You can change localhost for a different host
|
|
9 |
#
|
|
10 |
||
11 |
[NDBD DEFAULT] |
|
12 |
NoOfReplicas: 2
|
|
13 |
DataDir: /add/path/here |
|
14 |
FileSystemPath: /add/path/here |
|
15 |
||
16 |
# Data Memory, Index Memory, and String Memory
|
|
17 |
||
18 |
DataMemory: 600M |
|
19 |
IndexMemory: 100M |
|
20 |
BackupMemory: 64M |
|
21 |
||
22 |
[MGM DEFAULT] |
|
23 |
PortNumber: 1186
|
|
24 |
DataDir: /add/path/here |
|
25 |
||
26 |
[NDB_MGMD] |
|
27 |
Id: 1
|
|
28 |
HostName: localhost |
|
29 |
ArbitrationRank: 1
|
|
30 |
||
31 |
[NDBD] |
|
32 |
Id: 2
|
|
33 |
HostName: localhost |
|
34 |
||
35 |
[NDBD] |
|
36 |
Id: 3
|
|
37 |
HostName: localhost |
|
38 |
||
39 |
#
|
|
40 |
# Note: The following can be MySQLD connections or
|
|
41 |
# NDB API application connecting to the cluster
|
|
42 |
#
|
|
43 |
||
44 |
[API] |
|
45 |
Id: 4
|
|
46 |
HostName: localhost |
|
47 |
ArbitrationRank: 2
|
|
48 |
||
49 |
[API] |
|
50 |
Id: 5
|
|
51 |
HostName: localhost |
|
52 |
||
53 |
[API] |
|
54 |
Id: 6
|
|
55 |
HostName: localhost |
|
56 |
||
57 |
[API] |
|
58 |
Id: 7
|
|
59 |
||
60 |
[API] |
|
61 |
Id: 8
|
|
62 |
||
63 |
[API] |
|
64 |
Id: 9
|
|
65 |