comparison config/blitz.config.netcab @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 import net.jini.discovery.DiscoveryGroupManagement;
2
3 import java.util.logging.Level;
4
5 import net.jini.security.BasicProxyPreparer;
6
7 import net.jini.jeri.tcp.TcpServerEndpoint;
8 import net.jini.jeri.ProxyTrustILFactory;
9 import net.jini.jeri.BasicILFactory;
10 import net.jini.jeri.BasicJeriExporter;
11
12 import org.dancres.blitz.stats.Switch;
13 import org.dancres.blitz.stats.OpSwitch;
14 import org.dancres.blitz.stats.InstanceSwitch;
15 import org.dancres.blitz.remote.debug.DebugILFactory;
16 import org.dancres.blitz.config.Persistent;
17 import org.dancres.blitz.config.TimeBarrierPersistent;
18 import org.dancres.blitz.config.Transient;
19 import org.dancres.blitz.config.*;
20
21 org.dancres.blitz {
22
23
24 discovery_SpaceTestEntry=new EntryConstraint[]{new CacheSize(1024),new Fifo()};
25 org_dancres_blitz_test_DummyEntry=new EntryConstraint[]{new CacheSize(30),new Fifo()};
26
27 // entryReposReadahead = 512;
28
29 // Default logging level
30 defaultLogLevel = Level.SEVERE;
31 // Default Stats to make available
32 stats = new Switch[] {new OpSwitch(OpSwitch.ALL_TYPES,
33 OpSwitch.TAKE_OPS, true),
34 new OpSwitch(OpSwitch.ALL_TYPES, OpSwitch.READ_OPS, true),
35 new OpSwitch(OpSwitch.ALL_TYPES, OpSwitch.WRITE_OPS, true),
36 new InstanceSwitch(InstanceSwitch.ALL_TYPES, true)};
37 // Examples of setting log levels for specific components
38 //
39 // org_dancres_blitz_disk_SleeveCacheLogLevel = Level.ALL;
40 // org_dancres_blitz_disk_StorageLogLevel = Level.ALL;
41
42 // Published on the proxy as a Name attribute
43 name = "Blitz JavaSpace";
44 // The initial lookup groups to register with - after first boot
45 // this information is held in a meta database and should be configured
46 // via JoinAdmin
47 initialGroups = new String[]{"incaX"};
48
49 initialAttrs=new net.jini.core.entry.Entry[]{
50 org.dancres.blitz.serviceui.DashboardUI.getUIDescriptor()
51 };
52
53 // loginContext =
54
55 // Location to store meta info and entrys
56 persistDir = "deploy/log/transient-jdbfiles_dancres";
57
58 // Location of log files - SHOULD BE DIFFERENT FROM ABOVE
59 // logDir = "/blitzlog";
60 logDir = "deploy/log/transient-jdbfiles_dancres/prevlog";
61
62 // Maximum number of async write threads
63 // DO NOT CHANGE THIS - BLITZ DOESN'T SUPPORT MORE THAN ONE WRITE THREAD
64 // (YET!)
65 //
66 maxWriteThreads = 1;
67
68 // How long to keep write threads alive in the pool
69 //
70 threadKeepalive = 15;
71
72 // The preferred queue size for pending writes
73 //
74 desiredPendingWrites = 10;
75 // desiredPendingWrites = 20;
76 // desiredPendingWrites = 0;
77
78 // Size of the berkeley DB cache
79 //
80 dbCache = 134217728;
81
82 // dbCache = 33554432;
83 // dbCache = 16777216;
84 // dbCache = 8388608;
85
86 // Configures the maximum number of concurrent Db transactions
87 // Bigger is better! This value has been validated for 64 concurrent
88 // JavaSpace operations
89 //
90 maxDbTxns = 256;
91
92 // Dump Db statistics after every checkpoint if this is true
93 // WARNING: dumping stats is broken in 4.1.25 -
94 // ask Dan (dan@dancres.org) for a patch. This should be fixed in Db 4.2,
95 // will test and then post an update to the website
96 //
97 dumpDbStats = new Boolean(false);
98 // dumpDbStats = new Boolean(true);
99
100 // Dump statistics for write queue usage
101 // When tuning/configuring Blitz for various systems, these stats help
102 // to determine I/O performance requirements and required memory
103 //
104 dumpWQStats = new Boolean(false);
105 // dumpWQStats = new Boolean(true);
106
107 // Turn this on to get reports on checkpointing behaviour - useful for
108 // tuning
109 logCkpts = new Boolean(true);
110
111 // Maximum number of entry instances to cache for a particular Entry type
112 //
113 // entryReposCacheSize = 2000;
114 // entryReposCacheSize = 1000;
115 // entryReposCacheSize = 1;
116 // entryReposCacheSize = 200;
117 entryReposCacheSize = 5000;
118
119 // Non-blocking transactions are used within the entry package to
120 // prevent deadlock. Such transactions can fail and require aborting
121 // should they fail to get a lock. When this happens, the thread
122 // attempting the transaction will backoff by an amount of time dictated
123 // by base_backoff + Random(jitter) ms which should allow the conflicting
124 // transaction time to complete. Format is {base_backoff, jitter}
125 loadBackoff = new int[] {50, 50};
126
127 // The maximum allowable lease time for entries and notify registrations
128 // To permit Lease.FOREVER, set the LeaseBound = 0.
129 // To deny Lease.FOREVER and set an upper limit on lease time set the
130 // LeaseBound to a positive non-zero value in milliseconds
131 //
132 entryLeaseBound = 0;
133 notifyLeaseBound = 0;
134
135 // How often to do an active cleanup of lease expired resources
136 // Value should be ms - 0 disables active cleanup
137 //
138 leaseReapInterval = 0;
139 // leaseReapInterval = 60000;
140 // leaseReapInterval = 10000;
141 // leaseReapInterval = 1800000;
142
143 // Number of OID allocators to use for entries
144 maxOidAllocators = 512;
145
146 // How often to log event allocation to disk
147 //
148 eventgenSaveInterval = 50;
149
150 // How big a jump in notify sequence numbers there should be following
151 // restart/crash
152 //
153 eventgenRestartJump = 1000;
154
155 // Maximum number of task threads to be used in posting remote events
156 // and dispatching blocked takes or reads
157 //
158 maxTaskThreads = 10;
159
160 storageModel = new Transient();
161
162 // debugPort = 0;
163 debugPort = 12349;
164
165
166 // The initial attributes to register with - note that these need to be
167 // available as part of the codebase.
168 // This information is held in a meta database and should be configured
169 // via JoinAdmin
170 // initialAttrs = new Entry[] {};
171
172 // The exporter to use - see the JINI documentation
173 //
174 serverExporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
175 new ProxyTrustILFactory(null, null), false, true);
176
177 // Blitz provides a suitable default for all these but this is how you'd
178 // configure them explicitly
179 notifyPreparer = new BasicProxyPreparer();
180 recoveredNotifyPreparer = new BasicProxyPreparer();
181 txnPreparer = new BasicProxyPreparer();
182 recoveredTxnPreparer = new BasicProxyPreparer();
183 activationIdPreparer = new BasicProxyPreparer();
184 activationSysPreparer = new BasicProxyPreparer();
185 }