peony 0.0.2 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,364 @@
1
+ ##################### ElasticSearch Configuration Example #####################
2
+
3
+ # This file contains an overview of various configuration settings,
4
+ # targeted at operations staff. Application developers should
5
+ # consult the guide at <http://elasticsearch.org/guide>.
6
+ #
7
+ # The installation procedure is covered at
8
+ # <http://elasticsearch.org/guide/reference/setup/installation.html>.
9
+ #
10
+ # ElasticSearch comes with reasonable defaults for most settings,
11
+ # so you can try it out without bothering with configuration.
12
+ #
13
+ # Most of the time, these defaults are just fine for running a production
14
+ # cluster. If you're fine-tuning your cluster, or wondering about the
15
+ # effect of certain configuration option, please _do ask_ on the
16
+ # mailing list or IRC channel [http://elasticsearch.org/community].
17
+
18
+ # Any element in the configuration can be replaced with environment variables
19
+ # by placing them in ${...} notation. For example:
20
+ #
21
+ # node.rack: ${RACK_ENV_VAR}
22
+
23
+ # See <http://elasticsearch.org/guide/reference/setup/configuration.html>
24
+ # for information on supported formats and syntax for the configuration file.
25
+
26
+
27
+ ################################### Cluster ###################################
28
+
29
+ # Cluster name identifies your cluster for auto-discovery. If you're running
30
+ # multiple clusters on the same network, make sure you're using unique names.
31
+ #
32
+ cluster.name: <%= es_cluster_name %>
33
+
34
+
35
+ #################################### Node #####################################
36
+
37
+ # Node names are generated dynamically on startup, so you're relieved
38
+ # from configuring them manually. You can tie this node to a specific name:
39
+ #
40
+ # node.name: "Franz Kafka"
41
+
42
+ # Every node can be configured to allow or deny being eligible as the master,
43
+ # and to allow or deny to store the data.
44
+ #
45
+ # Allow this node to be eligible as a master node (enabled by default):
46
+ #
47
+ # node.master: true
48
+ #
49
+ # Allow this node to store data (enabled by default):
50
+ #
51
+ # node.data: true
52
+
53
+ # You can exploit these settings to design advanced cluster topologies.
54
+ #
55
+ # 1. You want this node to never become a master node, only to hold data.
56
+ # This will be the "workhorse" of your cluster.
57
+ #
58
+ # node.master: false
59
+ # node.data: true
60
+ #
61
+ # 2. You want this node to only serve as a master: to not store any data and
62
+ # to have free resources. This will be the "coordinator" of your cluster.
63
+ #
64
+ # node.master: true
65
+ # node.data: false
66
+ #
67
+ # 3. You want this node to be neither master nor data node, but
68
+ # to act as a "search load balancer" (fetching data from nodes,
69
+ # aggregating results, etc.)
70
+ #
71
+ # node.master: false
72
+ # node.data: false
73
+
74
+ # Use the Cluster Health API [http://localhost:9200/_cluster/health], the
75
+ # Node Info API [http://localhost:9200/_cluster/nodes] or GUI tools
76
+ # such as <http://github.com/lukas-vlcek/bigdesk> and
77
+ # <http://mobz.github.com/elasticsearch-head> to inspect the cluster state.
78
+
79
+ # A node can have generic attributes associated with it, which can later be used
80
+ # for customized shard allocation filtering, or allocation awareness. An attribute
81
+ # is a simple key value pair, similar to node.key: value, here is an example:
82
+ #
83
+ # node.rack: rack314
84
+
85
+ # By default, multiple nodes are allowed to start from the same installation location
86
+ # to disable it, set the following:
87
+ # node.max_local_storage_nodes: 1
88
+
89
+
90
+ #################################### Index ####################################
91
+
92
+ # You can set a number of options (such as shard/replica options, mapping
93
+ # or analyzer definitions, translog settings, ...) for indices globally,
94
+ # in this file.
95
+ #
96
+ # Note, that it makes more sense to configure index settings specifically for
97
+ # a certain index, either when creating it or by using the index templates API.
98
+ #
99
+ # See <http://elasticsearch.org/guide/reference/index-modules/> and
100
+ # <http://elasticsearch.org/guide/reference/api/admin-indices-create-index.html>
101
+ # for more information.
102
+
103
+ # Set the number of shards (splits) of an index (5 by default):
104
+ #
105
+ # index.number_of_shards: 5
106
+
107
+ # Set the number of replicas (additional copies) of an index (1 by default):
108
+ #
109
+ # index.number_of_replicas: 1
110
+
111
+ # Note, that for development on a local machine, with small indices, it usually
112
+ # makes sense to "disable" the distributed features:
113
+ #
114
+ # index.number_of_shards: 1
115
+ # index.number_of_replicas: 0
116
+
117
+ # These settings directly affect the performance of index and search operations
118
+ # in your cluster. Assuming you have enough machines to hold shards and
119
+ # replicas, the rule of thumb is:
120
+ #
121
+ # 1. Having more *shards* enhances the _indexing_ performance and allows to
122
+ # _distribute_ a big index across machines.
123
+ # 2. Having more *replicas* enhances the _search_ performance and improves the
124
+ # cluster _availability_.
125
+ #
126
+ # The "number_of_shards" is a one-time setting for an index.
127
+ #
128
+ # The "number_of_replicas" can be increased or decreased anytime,
129
+ # by using the Index Update Settings API.
130
+ #
131
+ # ElasticSearch takes care about load balancing, relocating, gathering the
132
+ # results from nodes, etc. Experiment with different settings to fine-tune
133
+ # your setup.
134
+
135
+ # Use the Index Status API (<http://localhost:9200/A/_status>) to inspect
136
+ # the index status.
137
+
138
+
139
+ #################################### Paths ####################################
140
+
141
+ # Path to directory containing configuration (this file and logging.yml):
142
+ #
143
+ # path.conf: /path/to/conf
144
+
145
+ # Path to directory where to store index data allocated for this node.
146
+ #
147
+ path.data: <%= es_data_dir %>
148
+ #
149
+ # Can optionally include more than one location, causing data to be striped across
150
+ # the locations (a la RAID 0) on a file level, favouring locations with most free
151
+ # space on creation. For example:
152
+ #
153
+ # path.data: /path/to/data1,/path/to/data2
154
+
155
+ # Path to temporary files:
156
+ #
157
+ # path.work: /path/to/work
158
+
159
+ # Path to log files:
160
+ #
161
+ path.logs: <%= log_dir %>/elasticsearch/
162
+
163
+ # Path to where plugins are installed:
164
+ #
165
+ path.plugins: <%= es_plugins_dir %>
166
+
167
+
168
+ #################################### Plugin ###################################
169
+
170
+ # If a plugin listed here is not installed for current node, the node will not start.
171
+ #
172
+ # plugin.mandatory: mapper-attachments,lang-groovy
173
+
174
+
175
+ ################################### Memory ####################################
176
+
177
+ # ElasticSearch performs poorly when JVM starts swapping: you should ensure that
178
+ # it _never_ swaps.
179
+ #
180
+ # Set this property to true to lock the memory:
181
+ #
182
+ # bootstrap.mlockall: true
183
+
184
+ # Make sure that the ES_MIN_MEM and ES_MAX_MEM environment variables are set
185
+ # to the same value, and that the machine has enough memory to allocate
186
+ # for ElasticSearch, leaving enough memory for the operating system itself.
187
+ #
188
+ # You should also make sure that the ElasticSearch process is allowed to lock
189
+ # the memory, eg. by using `ulimit -l unlimited`.
190
+
191
+
192
+ ############################## Network And HTTP ###############################
193
+
194
+ # ElasticSearch, by default, binds itself to the 0.0.0.0 address, and listens
195
+ # on port [9200-9300] for HTTP traffic and on port [9300-9400] for node-to-node
196
+ # communication. (the range means that if the port is busy, it will automatically
197
+ # try the next port).
198
+
199
+ # Set the bind address specifically (IPv4 or IPv6):
200
+ #
201
+ # network.bind_host: 192.168.0.1
202
+
203
+ # Set the address other nodes will use to communicate with this node. If not
204
+ # set, it is automatically derived. It must point to an actual IP address.
205
+ #
206
+ # network.publish_host: 192.168.0.1
207
+
208
+ # Set both 'bind_host' and 'publish_host':
209
+ #
210
+ network.host: <%= es_network_host %>
211
+
212
+ # Set a custom port for the node to node communication (9300 by default):
213
+ #
214
+ # transport.tcp.port: 9300
215
+
216
+ # Enable compression for all communication between nodes (disabled by default):
217
+ #
218
+ # transport.tcp.compress: true
219
+
220
+ # Set a custom port to listen for HTTP traffic:
221
+ #
222
+ # http.port: 9200
223
+
224
+ # Set a custom allowed content length:
225
+ #
226
+ # http.max_content_length: 100mb
227
+
228
+ # Disable HTTP completely:
229
+ #
230
+ # http.enabled: false
231
+
232
+
233
+ ################################### Gateway ###################################
234
+
235
+ # The gateway allows for persisting the cluster state between full cluster
236
+ # restarts. Every change to the state (such as adding an index) will be stored
237
+ # in the gateway, and when the cluster starts up for the first time,
238
+ # it will read its state from the gateway.
239
+
240
+ # There are several types of gateway implementations. For more information,
241
+ # see <http://elasticsearch.org/guide/reference/modules/gateway>.
242
+
243
+ # The default gateway type is the "local" gateway (recommended):
244
+ #
245
+ # gateway.type: local
246
+
247
+ # Settings below control how and when to start the initial recovery process on
248
+ # a full cluster restart (to reuse as much local data as possible when using shared
249
+ # gateway).
250
+
251
+ # Allow recovery process after N nodes in a cluster are up:
252
+ #
253
+ # gateway.recover_after_nodes: 1
254
+
255
+ # Set the timeout to initiate the recovery process, once the N nodes
256
+ # from previous setting are up (accepts time value):
257
+ #
258
+ # gateway.recover_after_time: 5m
259
+
260
+ # Set how many nodes are expected in this cluster. Once these N nodes
261
+ # are up (and recover_after_nodes is met), begin recovery process immediately
262
+ # (without waiting for recover_after_time to expire):
263
+ #
264
+ # gateway.expected_nodes: 2
265
+
266
+
267
+ ############################# Recovery Throttling #############################
268
+
269
+ # These settings allow to control the process of shards allocation between
270
+ # nodes during initial recovery, replica allocation, rebalancing,
271
+ # or when adding and removing nodes.
272
+
273
+ # Set the number of concurrent recoveries happening on a node:
274
+ #
275
+ # 1. During the initial recovery
276
+ #
277
+ # cluster.routing.allocation.node_initial_primaries_recoveries: 4
278
+ #
279
+ # 2. During adding/removing nodes, rebalancing, etc
280
+ #
281
+ # cluster.routing.allocation.node_concurrent_recoveries: 2
282
+
283
+ # Set to throttle throughput when recovering (eg. 100mb, by default 20mb):
284
+ #
285
+ # indices.recovery.max_bytes_per_sec: 20mb
286
+
287
+ # Set to limit the number of open concurrent streams when
288
+ # recovering a shard from a peer:
289
+ #
290
+ # indices.recovery.concurrent_streams: 5
291
+
292
+
293
+ ################################## Discovery ##################################
294
+
295
+ # Discovery infrastructure ensures nodes can be found within a cluster
296
+ # and master node is elected. Multicast discovery is the default.
297
+
298
+ # Set to ensure a node sees N other master eligible nodes to be considered
299
+ # operational within the cluster. Set this option to a higher value (2-4)
300
+ # for large clusters (>3 nodes):
301
+ #
302
+ # discovery.zen.minimum_master_nodes: 1
303
+
304
+ # Set the time to wait for ping responses from other nodes when discovering.
305
+ # Set this option to a higher value on a slow or congested network
306
+ # to minimize discovery failures:
307
+ #
308
+ # discovery.zen.ping.timeout: 3s
309
+
310
+ # See <http://elasticsearch.org/guide/reference/modules/discovery/zen.html>
311
+ # for more information.
312
+
313
+ # Unicast discovery allows to explicitly control which nodes will be used
314
+ # to discover the cluster. It can be used when multicast is not present,
315
+ # or to restrict the cluster communication-wise.
316
+ #
317
+ # 1. Disable multicast discovery (enabled by default):
318
+ #
319
+ # discovery.zen.ping.multicast.enabled: false
320
+ #
321
+ # 2. Configure an initial list of master nodes in the cluster
322
+ # to perform discovery when new nodes (master or data) are started:
323
+ #
324
+ # discovery.zen.ping.unicast.hosts: ["host1", "host2:port", "host3[portX-portY]"]
325
+
326
+ # EC2 discovery allows to use AWS EC2 API in order to perform discovery.
327
+ #
328
+ # You have to install the cloud-aws plugin for enabling the EC2 discovery.
329
+ #
330
+ # See <http://elasticsearch.org/guide/reference/modules/discovery/ec2.html>
331
+ # for more information.
332
+ #
333
+ # See <http://elasticsearch.org/tutorials/2011/08/22/elasticsearch-on-ec2.html>
334
+ # for a step-by-step tutorial.
335
+
336
+
337
+ ################################## Slow Log ##################################
338
+
339
+ # Shard level query and fetch threshold logging.
340
+
341
+ #index.search.slowlog.threshold.query.warn: 10s
342
+ #index.search.slowlog.threshold.query.info: 5s
343
+ #index.search.slowlog.threshold.query.debug: 2s
344
+ #index.search.slowlog.threshold.query.trace: 500ms
345
+
346
+ #index.search.slowlog.threshold.fetch.warn: 1s
347
+ #index.search.slowlog.threshold.fetch.info: 800ms
348
+ #index.search.slowlog.threshold.fetch.debug: 500ms
349
+ #index.search.slowlog.threshold.fetch.trace: 200ms
350
+
351
+ #index.indexing.slowlog.threshold.index.warn: 10s
352
+ #index.indexing.slowlog.threshold.index.info: 5s
353
+ #index.indexing.slowlog.threshold.index.debug: 2s
354
+ #index.indexing.slowlog.threshold.index.trace: 500ms
355
+
356
+ ################################## GC Logging ################################
357
+
358
+ #monitor.jvm.gc.ParNew.warn: 1000ms
359
+ #monitor.jvm.gc.ParNew.info: 700ms
360
+ #monitor.jvm.gc.ParNew.debug: 400ms
361
+
362
+ #monitor.jvm.gc.ConcurrentMarkSweep.warn: 10s
363
+ #monitor.jvm.gc.ConcurrentMarkSweep.info: 5s
364
+ #monitor.jvm.gc.ConcurrentMarkSweep.debug: 2s
@@ -0,0 +1,54 @@
1
+ rootLogger: INFO, console, file
2
+ logger:
3
+ # log action execution errors for easier debugging
4
+ action: DEBUG
5
+ # reduce the logging for aws, too much is logged under the default INFO
6
+ com.amazonaws: WARN
7
+
8
+ # gateway
9
+ #gateway: DEBUG
10
+ #index.gateway: DEBUG
11
+
12
+ # peer shard recovery
13
+ #indices.recovery: DEBUG
14
+
15
+ # discovery
16
+ #discovery: TRACE
17
+
18
+ index.search.slowlog: TRACE, index_search_slow_log_file
19
+ index.indexing.slowlog: TRACE, index_indexing_slow_log_file
20
+
21
+ additivity:
22
+ index.search.slowlog: false
23
+ index.indexing.slowlog: false
24
+
25
+ appender:
26
+ console:
27
+ type: console
28
+ layout:
29
+ type: consolePattern
30
+ conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
31
+
32
+ file:
33
+ type: dailyRollingFile
34
+ file: ${path.logs}/${cluster.name}.log
35
+ datePattern: "'.'yyyy-MM-dd"
36
+ layout:
37
+ type: pattern
38
+ conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
39
+
40
+ index_search_slow_log_file:
41
+ type: dailyRollingFile
42
+ file: ${path.logs}/${cluster.name}_index_search_slowlog.log
43
+ datePattern: "'.'yyyy-MM-dd"
44
+ layout:
45
+ type: pattern
46
+ conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
47
+
48
+ index_indexing_slow_log_file:
49
+ type: dailyRollingFile
50
+ file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log
51
+ datePattern: "'.'yyyy-MM-dd"
52
+ layout:
53
+ type: pattern
54
+ conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
@@ -0,0 +1,93 @@
1
+ #
2
+ # Directives controlling the display of server-generated directory listings.
3
+ #
4
+ # Required modules: mod_autoindex, mod_alias
5
+ #
6
+ # To see the listing of a directory, the Options directive for the
7
+ # directory must include "Indexes", and the directory must not contain
8
+ # a file matching those listed in the DirectoryIndex directive.
9
+ #
10
+
11
+ #
12
+ # IndexOptions: Controls the appearance of server-generated directory
13
+ # listings.
14
+ #
15
+ IndexOptions FancyIndexing HTMLTable VersionSort
16
+
17
+ # We include the /icons/ alias for FancyIndexed directory listings. If
18
+ # you do not use FancyIndexing, you may comment this out.
19
+ #
20
+ Alias /icons/ "<%= httpd_share_dir %>/icons/"
21
+
22
+ <Directory "<%= httpd_share_dir %>/icons">
23
+ Options Indexes MultiViews
24
+ AllowOverride None
25
+ Order allow,deny
26
+ Allow from all
27
+ </Directory>
28
+
29
+ #
30
+ # AddIcon* directives tell the server which icon to show for different
31
+ # files or filename extensions. These are only displayed for
32
+ # FancyIndexed directories.
33
+ #
34
+ AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
35
+
36
+ AddIconByType (TXT,/icons/text.gif) text/*
37
+ AddIconByType (IMG,/icons/image2.gif) image/*
38
+ AddIconByType (SND,/icons/sound2.gif) audio/*
39
+ AddIconByType (VID,/icons/movie.gif) video/*
40
+
41
+ AddIcon /icons/binary.gif .bin .exe
42
+ AddIcon /icons/binhex.gif .hqx
43
+ AddIcon /icons/tar.gif .tar
44
+ AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
45
+ AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
46
+ AddIcon /icons/a.gif .ps .ai .eps
47
+ AddIcon /icons/layout.gif .html .shtml .htm .pdf
48
+ AddIcon /icons/text.gif .txt
49
+ AddIcon /icons/c.gif .c
50
+ AddIcon /icons/p.gif .pl .py
51
+ AddIcon /icons/f.gif .for
52
+ AddIcon /icons/dvi.gif .dvi
53
+ AddIcon /icons/uuencoded.gif .uu
54
+ AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
55
+ AddIcon /icons/tex.gif .tex
56
+ AddIcon /icons/bomb.gif core
57
+
58
+ AddIcon /icons/back.gif ..
59
+ AddIcon /icons/hand.right.gif README
60
+ AddIcon /icons/folder.gif ^^DIRECTORY^^
61
+ AddIcon /icons/blank.gif ^^BLANKICON^^
62
+
63
+ #
64
+ # DefaultIcon is which icon to show for files which do not have an icon
65
+ # explicitly set.
66
+ #
67
+ DefaultIcon /icons/unknown.gif
68
+
69
+ #
70
+ # AddDescription allows you to place a short description after a file in
71
+ # server-generated indexes. These are only displayed for FancyIndexed
72
+ # directories.
73
+ # Format: AddDescription "description" filename
74
+ #
75
+ #AddDescription "GZIP compressed document" .gz
76
+ #AddDescription "tar archive" .tar
77
+ #AddDescription "GZIP compressed tar archive" .tgz
78
+
79
+ #
80
+ # ReadmeName is the name of the README file the server will look for by
81
+ # default, and append to directory listings.
82
+ #
83
+ # HeaderName is the name of a file which should be prepended to
84
+ # directory indexes.
85
+ ReadmeName README.html
86
+ HeaderName HEADER.html
87
+
88
+ #
89
+ # IndexIgnore is a set of filenames which directory indexing should ignore
90
+ # and not include in the listing. Shell-style wildcarding is permitted.
91
+ #
92
+ IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
93
+
@@ -0,0 +1,56 @@
1
+ #
2
+ # Distributed authoring and versioning (WebDAV)
3
+ #
4
+ # Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
5
+ # mod_auth_digest, mod_authn_file
6
+ #
7
+
8
+ # The following example gives DAV write access to a directory called
9
+ # "uploads" under the ServerRoot directory.
10
+ #
11
+ # The User/Group specified in httpd.conf needs to have write permissions
12
+ # on the directory where the DavLockDB is placed and on any directory where
13
+ # "Dav On" is specified.
14
+
15
+ DavLockDB "<%= webdav_dir %>/DavLock"
16
+
17
+ Alias /webdav "<%= webdav_dir %>"
18
+
19
+ <Directory "<%= webdav_dir %>">
20
+ Dav On
21
+ Options +Indexes
22
+ IndexOptions FancyIndexing
23
+ AddDefaultCharset UTF-8
24
+
25
+ Order Allow,Deny
26
+ Allow from all
27
+
28
+ # AuthType Digest
29
+ AuthType Basic
30
+ AuthName WebDav
31
+
32
+ # You can use the htdigest program to create the password database:
33
+ # htdigest -c "/usr/user.passwd" DAV-upload admin
34
+ AuthUserFile "<%= auth_user_file %>"
35
+ AuthDigestProvider file
36
+
37
+ # Allow universal read-access, but writes are restricted
38
+ # to the admin user.
39
+ <LimitExcept GET OPTIONS>
40
+ Require valid-user
41
+ </LimitExcept>
42
+ </Directory>
43
+
44
+ #
45
+ # The following directives disable redirects on non-GET requests for
46
+ # a directory that does not include the trailing slash. This fixes a
47
+ # problem with several clients that do not appropriately handle
48
+ # redirects for folders with DAV methods.
49
+ #
50
+ BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
51
+ BrowserMatch "MS FrontPage" redirect-carefully
52
+ BrowserMatch "^WebDrive" redirect-carefully
53
+ BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
54
+ BrowserMatch "^gnome-vfs/1.0" redirect-carefully
55
+ BrowserMatch "^XML Spy" redirect-carefully
56
+ BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
@@ -0,0 +1,37 @@
1
+ #
2
+ # Get information about the requests being processed by the server
3
+ # and the configuration of the server.
4
+ #
5
+ # Required modules: mod_status (for the server-status handler),
6
+ # mod_info (for the server-info handler)
7
+
8
+ #
9
+ # Allow server status reports generated by mod_status,
10
+ # with the URL of http://servername/server-status
11
+ # Change the ".example.com" to match your domain to enable.
12
+
13
+ <Location /server-status>
14
+ SetHandler server-status
15
+ Order deny,allow
16
+ Deny from all
17
+ Allow from .example.com
18
+ </Location>
19
+
20
+ #
21
+ # ExtendedStatus controls whether Apache will generate "full" status
22
+ # information (ExtendedStatus On) or just basic information (ExtendedStatus
23
+ # Off) when the "server-status" handler is called. The default is Off.
24
+ #
25
+ #ExtendedStatus On
26
+
27
+ #
28
+ # Allow remote server configuration reports, with the URL of
29
+ # http://servername/server-info (requires that mod_info.c be loaded).
30
+ # Change the ".example.com" to match your domain to enable.
31
+ #
32
+ <Location /server-info>
33
+ SetHandler server-info
34
+ Order deny,allow
35
+ Deny from all
36
+ Allow from .example.com
37
+ </Location>