default.yaml文件所在位置:apache-storm-0.9.4.tar.gz/apache-storm-0.9.4/lib/storm-core-0.94.jar/default.yaml
文件内容如下:
|
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
# Licensed to the Apache Software Foundation (ASF) under one# or more contributor license agreements. See the NOTICE file# distributed with this work for additional information# regarding copyright ownership. The ASF licenses this file# to you 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### 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.########### These all have default values as shown########### Additional configuration goes into storm.yamljava.library.path: "/usr/local/lib:/opt/local/lib:/usr/lib"### storm.* configs are general configurations# the local dir is where jars are keptstorm.local.dir: "storm-local"storm.zookeeper.servers: - "localhost"storm.zookeeper.port: 2181storm.zookeeper.root: "/storm"storm.zookeeper.session.timeout: 20000storm.zookeeper.connection.timeout: 15000storm.zookeeper.retry.times: 5storm.zookeeper.retry.interval: 1000storm.zookeeper.retry.intervalceiling.millis: 30000storm.cluster.mode: "distributed" # can be distributed or localstorm.local.mode.zmq: falsestorm.thrift.transport: "backtype.storm.security.auth.SimpleTransportPlugin"storm.messaging.transport: "backtype.storm.messaging.netty.Context"storm.meta.serialization.delegate: "backtype.storm.serialization.DefaultSerializationDelegate"### nimbus.* configs are for the masternimbus.host: "localhost"nimbus.thrift.port: 6627nimbus.thrift.max_buffer_size: 1048576nimbus.childopts: "-Xmx1024m"nimbus.task.timeout.secs: 30nimbus.supervisor.timeout.secs: 60nimbus.monitor.freq.secs: 10nimbus.cleanup.inbox.freq.secs: 600nimbus.inbox.jar.expiration.secs: 3600nimbus.task.launch.secs: 120nimbus.reassign: truenimbus.file.copy.expiration.secs: 600nimbus.topology.validator: "backtype.storm.nimbus.DefaultTopologyValidator"### ui.* configs are for the masterui.port: 8080ui.childopts: "-Xmx768m"logviewer.port: 8000logviewer.childopts: "-Xmx128m"logviewer.appender.name: "A1"drpc.port: 3772drpc.worker.threads: 64drpc.queue.size: 128drpc.invocations.port: 3773drpc.request.timeout.secs: 600drpc.childopts: "-Xmx768m"transactional.zookeeper.root: "/transactional"transactional.zookeeper.servers: nulltransactional.zookeeper.port: null### supervisor.* configs are for node supervisors# Define the amount of workers that can be run on this machine. Each worker is assigned a port to use for communicationsupervisor.slots.ports: - 6700 - 6701 - 6702 - 6703supervisor.childopts: "-Xmx256m"#how long supervisor will wait to ensure that a worker process is startedsupervisor.worker.start.timeout.secs: 120#how long between heartbeats until supervisor considers that worker dead and tries to restart itsupervisor.worker.timeout.secs: 30#how frequently the supervisor checks on the status of the processes it‘s monitoring and restarts if necessarysupervisor.monitor.frequency.secs: 3#how frequently the supervisor heartbeats to the cluster state (for nimbus)supervisor.heartbeat.frequency.secs: 5supervisor.enable: true### worker.* configs are for task workersworker.childopts: "-Xmx768m"worker.heartbeat.frequency.secs: 1# control how many worker receiver threads we need per workertopology.worker.receiver.thread.count: 1task.heartbeat.frequency.secs: 3task.refresh.poll.secs: 10zmq.threads: 1zmq.linger.millis: 5000zmq.hwm: 0storm.messaging.netty.server_worker_threads: 1storm.messaging.netty.client_worker_threads: 1storm.messaging.netty.buffer_size: 5242880 #5MB buffer# Since nimbus.task.launch.secs and supervisor.worker.start.timeout.secs are 120, other workers should also wait at least that long before giving up on connecting to the other worker. The reconnection period need also be bigger than storm.zookeeper.session.timeout(default is 20s), so that we can abort the reconnection when the target worker is dead.storm.messaging.netty.max_retries: 300storm.messaging.netty.max_wait_ms: 1000storm.messaging.netty.min_wait_ms: 100# If the Netty messaging layer is busy(netty internal buffer not writable), the Netty client will try to batch message as more as possible up to the size of storm.messaging.netty.transfer.batch.size bytes, otherwise it will try to flush message as soon as possible to reduce latency.storm.messaging.netty.transfer.batch.size: 262144# We check with this interval that whether the Netty channel is writable and try to write pending messages if it is.storm.messaging.netty.flush.check.interval.ms: 10### topology.* configs are for specific executing stormstopology.enable.message.timeouts: truetopology.debug: falsetopology.workers: 1topology.acker.executors: nulltopology.tasks: null# maximum amount of time a message has to complete before it‘s considered failedtopology.message.timeout.secs: 30topology.multilang.serializer: "backtype.storm.multilang.JsonSerializer"topology.skip.missing.kryo.registrations: falsetopology.max.task.parallelism: nulltopology.max.spout.pending: nulltopology.state.synchronization.timeout.secs: 60topology.stats.sample.rate: 0.05topology.builtin.metrics.bucket.size.secs: 60topology.fall.back.on.java.serialization: truetopology.worker.childopts: nulltopology.executor.receive.buffer.size: 1024 #batchedtopology.executor.send.buffer.size: 1024 #individual messagestopology.receiver.buffer.size: 8 # setting it too high causes a lot of problems (heartbeat thread gets starved, throughput plummets)topology.transfer.buffer.size: 1024 # batchedtopology.tick.tuple.freq.secs: nulltopology.worker.shared.thread.pool.size: 4topology.disruptor.wait.strategy: "com.lmax.disruptor.BlockingWaitStrategy"topology.spout.wait.strategy: "backtype.storm.spout.SleepSpoutWaitStrategy"topology.sleep.spout.wait.strategy.time.ms: 1topology.error.throttle.interval.secs: 10topology.max.error.report.per.interval: 5topology.kryo.factory: "backtype.storm.serialization.DefaultKryoFactory"topology.tuple.serializer: "backtype.storm.serialization.types.ListDelegateSerializer"topology.trident.batch.emit.interval.millis: 500topology.classpath: nulltopology.environment: nulldev.zookeeper.path: "/tmp/dev-storm-zookeeper" |
原文:http://www.cnblogs.com/lishouguang/p/4559203.html