Mercurial > hg > blitz_condensed
comparison config/blitz-ui.config @ 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.core.entry.Entry; | |
6 | |
7 import net.jini.security.BasicProxyPreparer; | |
8 | |
9 import net.jini.core.discovery.LookupLocator; | |
10 | |
11 import net.jini.jeri.tcp.TcpServerEndpoint; | |
12 import net.jini.jeri.ProxyTrustILFactory; | |
13 import net.jini.jeri.BasicILFactory; | |
14 import net.jini.jeri.BasicJeriExporter; | |
15 import net.jini.jrmp.JrmpExporter; | |
16 | |
17 import org.dancres.blitz.stats.Switch; | |
18 import org.dancres.blitz.stats.OpSwitch; | |
19 import org.dancres.blitz.stats.InstanceSwitch; | |
20 | |
21 import org.dancres.blitz.remote.debug.DebugILFactory; | |
22 | |
23 import org.dancres.blitz.config.Persistent; | |
24 import org.dancres.blitz.config.TimeBarrierPersistent; | |
25 import org.dancres.blitz.config.Transient; | |
26 | |
27 import org.dancres.blitz.serviceui.DashboardUI; | |
28 | |
29 org.dancres.blitz { | |
30 // Default logging level | |
31 // | |
32 defaultLogLevel = Level.SEVERE; | |
33 | |
34 // Examples of setting log levels for specific components | |
35 // | |
36 // org_dancres_blitz_disk_DiskLogLevel = Level.INFO; | |
37 // org_dancres_blitz_entry_SearchVisitorImplLogLevel = Level.FINE; | |
38 // org_dancres_blitz_arc_cacheLogLevel = Level.INFO; | |
39 // org_dancres_blitz_oid_AllocatorLogLevel = Level.ALL; | |
40 // org_dancres_blitz_txn_LogBatcherLogLevel = Level.ALL; | |
41 | |
42 // Published on the proxy as a Name attribute | |
43 // | |
44 name = "dancres"; | |
45 | |
46 // Set this to a LoginContext instance when you wish to run the server | |
47 // as a particular principle | |
48 // | |
49 // loginContext = | |
50 | |
51 // Location to store meta info and entrys. | |
52 // NOTE: Each concurrent Blitz instance should use a different directory | |
53 // for it's logs and persistent state - if this isn't done | |
54 // "bad things will happen" (TM) | |
55 // | |
56 persistDir = "/Users/dan/src/jini/blitz_pj/dbfiles_dancres"; | |
57 | |
58 // Location of log files - SHOULD BE DIFFERENT FROM ABOVE | |
59 // | |
60 logDir = "/Volumes/log/dan/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 = 4000; | |
75 // desiredPendingWrites = 20; | |
76 | |
77 // Size of the berkeley DB cache | |
78 // | |
79 dbCache = 33554432; | |
80 // dbCache = 66000000; | |
81 | |
82 // Configures the maximum number of concurrent Db transactions | |
83 // Bigger is better! This value has been validated for 64 concurrent | |
84 // JavaSpace operations | |
85 // | |
86 maxDbTxns = 256; | |
87 | |
88 // Dump Db statistics after every checkpoint if this is true | |
89 // WARNING: dumping stats is broken in 4.1.25 - | |
90 // ask Dan (dan@dancres.org) for a patch. This should be fixed in Db 4.2, | |
91 // will test and then post an update to the website | |
92 // | |
93 dumpDbStats = new Boolean(false); | |
94 | |
95 // Dump statistics for write queue usage | |
96 // When tuning/configuring Blitz for various systems, these stats help | |
97 // to determine I/O performance requirements and required memory | |
98 // | |
99 dumpWQStats = new Boolean(false); | |
100 | |
101 // Turn this on to get reports on checkpointing behaviour - useful for | |
102 // tuning | |
103 logCkpts = new Boolean(true); | |
104 | |
105 // Maximum number of entry instances to cache for a particular Entry type | |
106 // | |
107 entryReposCacheSize = 5000; | |
108 | |
109 // Non-blocking transactions are used within the entry package to | |
110 // prevent deadlock. Such transactions can fail and require aborting | |
111 // should they fail to get a lock. When this happens, the thread | |
112 // attempting the transaction will backoff by an amount of time dictated | |
113 // by base_backoff + Random(jitter) ms which should allow the conflicting | |
114 // transaction time to complete. Format is {base_backoff, jitter} | |
115 loadBackoff = new int[] {50, 50}; | |
116 | |
117 // The maximum allowable lease time for entries and notify registrations | |
118 // To permit Lease.FOREVER, set the LeaseBound = 0. | |
119 // To deny Lease.FOREVER and set an upper limit on lease time set the | |
120 // LeaseBound to a positive non-zero value in milliseconds | |
121 // | |
122 entryLeaseBound = 0; | |
123 notifyLeaseBound = 0; | |
124 | |
125 // How often to do an active cleanup of lease expired resources | |
126 // Value should be ms - 0 disables active cleanup. Normally, Blitz | |
127 // uses read/take activity to do cleanup (passive). If memory or | |
128 // disk resource is scarce, configure this to non-zero to activate more | |
129 // aggressive cleaning (which, in turn, is more CPU aggressive). | |
130 // | |
131 leaseReapInterval = 0; | |
132 // leaseReapInterval = 1800000; | |
133 | |
134 // Number of OID allocators to use for entries | |
135 maxOidAllocators = 512; | |
136 | |
137 // How often to log event allocation to disk | |
138 // | |
139 eventgenSaveInterval = 50; | |
140 | |
141 // How big a jump in notify sequence numbers there should be following | |
142 // restart/crash | |
143 // | |
144 eventgenRestartJump = 1000; | |
145 | |
146 // Maximum number of task threads to be used in posting remote events | |
147 // and dispatching blocked takes or reads | |
148 // | |
149 maxTaskThreads = 10; | |
150 | |
151 // storageModel = new Transient(); | |
152 // storageModel = new TimeBarrierPersistent(false, false, 10000, 65536, 10000); | |
153 | |
154 // Use this setting for local/embedded usage | |
155 // | |
156 // For raw, single-threaded benchmarks, use 0 log buffering time | |
157 // storageModel = new Persistent(false, false, 0, true, 10000, 8192); | |
158 | |
159 // For concurrent benchmark or application use non-zero log buffering time | |
160 // storageModel = new Persistent(false, false, 10, true, 10000, 8192); | |
161 | |
162 | |
163 // Use this setting for network usage - we add additional time to | |
164 // log-buffering to account for network latency | |
165 // | |
166 storageModel = new Persistent(false, false, 10, true, 10000, 8192); | |
167 // storageModel = new Persistent(false, false, 15, true, false, 20000, 8192); | |
168 | |
169 // debugPort = 0; | |
170 debugPort = 12345; | |
171 | |
172 // Enable standard destroy semantics - by default, Blitz does NOT | |
173 // delete state at destroy. Enable that feature here and invoke | |
174 // BlitzAdmin::shutdown to perform a shutdown whilst retaining state | |
175 compliantDestroy = new Boolean(false); | |
176 | |
177 // Default Stats to make available | |
178 stats = new Switch[] {new OpSwitch(OpSwitch.ALL_TYPES, | |
179 OpSwitch.TAKE_OPS, true), | |
180 new OpSwitch(OpSwitch.ALL_TYPES, OpSwitch.READ_OPS, true), | |
181 new OpSwitch(OpSwitch.ALL_TYPES, OpSwitch.WRITE_OPS, true), | |
182 new InstanceSwitch(InstanceSwitch.ALL_TYPES, true)}; | |
183 | |
184 // The initial lookup groups to register with - after first boot | |
185 // this information is held in a meta database and should be configured | |
186 // via JoinAdmin | |
187 // | |
188 // initialGroups = new String[]{}; | |
189 | |
190 initialGroups = new String[]{"JERI_Group1"}; | |
191 // initialGroups = DiscoveryGroupManagement.ALL_GROUPS; | |
192 | |
193 | |
194 // The initial lookup locators to register with - after first boot | |
195 // this information is held in a meta database and should be configured | |
196 // via JoinAdmin | |
197 // | |
198 // initialLocators = new LookupLocator[] {new LookupLocator("jini://rogue/")}; | |
199 | |
200 // The initial attributes to register with - note that these need to be | |
201 // available as part of the codebase. | |
202 // This information is held in a meta database and should be configured | |
203 // via JoinAdmin. | |
204 // | |
205 initialAttrs = new Entry[] | |
206 {org.dancres.blitz.serviceui.DashboardUI.getUIDescriptor()}; | |
207 | |
208 // The exporter to use - see the JINI documentation | |
209 // | |
210 // serverExporter = new JrmpExporter(); | |
211 | |
212 serverExporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0), | |
213 new ProxyTrustILFactory(null, null), false, true); | |
214 | |
215 // serverExporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0), | |
216 // new DebugILFactory(null, null), false, true); | |
217 | |
218 // For ACTIVATION, we must nest a normal exporter inside an activation | |
219 // exporter instance. | |
220 // | |
221 // exporter= new BasicJeriExporter(TcpServerEndpoint.getInstance(0), | |
222 // new ProxyTrustILFactory(null, null), false, true); | |
223 | |
224 //use an ActivationExporter to create a persistent ref | |
225 // serverExporter= new ActivationExporter((ActivationID) $data,exporter); | |
226 | |
227 // Blitz provides a suitable default for all these but this is how you'd | |
228 // configure them explicitly | |
229 // | |
230 notifyPreparer = new BasicProxyPreparer(); | |
231 recoveredNotifyPreparer = new BasicProxyPreparer(); | |
232 txnPreparer = new BasicProxyPreparer(); | |
233 recoveredTxnPreparer = new BasicProxyPreparer(); | |
234 activationIdPreparer = new BasicProxyPreparer(); | |
235 activationSysPreparer = new BasicProxyPreparer(); | |
236 } |