| 301 |
ashish |
1 |
## Copyright (c) 2007-2008 Facebook
|
|
|
2 |
##
|
|
|
3 |
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
4 |
## you may not use this file except in compliance with the License.
|
|
|
5 |
## You may obtain a copy of the License at
|
|
|
6 |
##
|
|
|
7 |
## http://www.apache.org/licenses/LICENSE-2.0
|
|
|
8 |
##
|
|
|
9 |
## Unless required by applicable law or agreed to in writing, software
|
|
|
10 |
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
11 |
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
12 |
## See the License for the specific language governing permissions and
|
|
|
13 |
## limitations under the License.
|
|
|
14 |
##
|
|
|
15 |
## See accompanying file LICENSE or visit the Scribe site at:
|
|
|
16 |
## http://developers.facebook.com/scribe/
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
##
|
|
|
20 |
## Test configuration listens on a different port and writes data to
|
|
|
21 |
## /tmp/scribetest
|
|
|
22 |
##
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
# scribe configuration
|
|
|
26 |
#
|
|
|
27 |
# This file specifies global key-value pairs as well as store
|
|
|
28 |
# objects, which are surrounded by xml-like tags <store></store>
|
|
|
29 |
#
|
|
|
30 |
# Each store has a category and a type. The category must match the
|
|
|
31 |
# category string used by the client code, and the type must be one of:
|
|
|
32 |
# file, network, bucket, buffer. The remainder of the store
|
|
|
33 |
# configuration depends on the type.
|
|
|
34 |
#
|
|
|
35 |
# Some types of stores include other stores, which are specified by
|
|
|
36 |
# nested xml-like tags. These have specific names that depend on type.
|
|
|
37 |
# For example a buffer store has a <primary> store and a <secondary>
|
|
|
38 |
# store, which can be of any type, and are configured the same way
|
|
|
39 |
# they would be in a top-level <store>. Note that nested stores don't
|
|
|
40 |
# have a configured category, it is inherited from the top-level store.
|
|
|
41 |
#
|
|
|
42 |
# The category "default" is a special case. Any category not configured
|
|
|
43 |
# here will be handled using the default configuration, except with
|
|
|
44 |
# filenames overwritten with the category name.
|
|
|
45 |
#
|
|
|
46 |
# The parser isn't great, so add whitespace at your own risk.
|
|
|
47 |
|
|
|
48 |
port=1463
|
|
|
49 |
max_msg_per_second=2000000
|
|
|
50 |
check_interval=3
|
|
|
51 |
|
|
|
52 |
# DEFAULT
|
|
|
53 |
<store>
|
|
|
54 |
category=default
|
|
|
55 |
type=buffer
|
|
|
56 |
must_succeed=yes
|
|
|
57 |
|
|
|
58 |
target_write_size=20480
|
|
|
59 |
max_write_interval=1
|
|
|
60 |
buffer_send_rate=2
|
|
|
61 |
retry_interval=30
|
|
|
62 |
retry_interval_range=10
|
|
|
63 |
|
|
|
64 |
<primary>
|
|
|
65 |
type=file
|
|
|
66 |
fs_type=std
|
|
|
67 |
file_path=/tmp/scribetest
|
|
|
68 |
base_filename=thisisoverwritten
|
|
|
69 |
max_size=1000000
|
|
|
70 |
chunk_size=1024
|
|
|
71 |
rotate_period=daily
|
|
|
72 |
rotate_hour=0
|
|
|
73 |
rotate_minute=5
|
|
|
74 |
add_newlines=1
|
|
|
75 |
</primary>
|
|
|
76 |
|
|
|
77 |
<secondary>
|
|
|
78 |
type=file
|
|
|
79 |
fs_type=std
|
|
|
80 |
file_path=/tmp
|
|
|
81 |
base_filename=thisisoverwritten
|
|
|
82 |
max_size=3000000
|
|
|
83 |
</secondary>
|
|
|
84 |
</store>
|
|
|
85 |
|
|
|
86 |
# BUCKETIZER TEST
|
|
|
87 |
<store>
|
|
|
88 |
category=buckettest
|
|
|
89 |
type=buffer
|
|
|
90 |
|
|
|
91 |
target_write_size=20480
|
|
|
92 |
max_write_interval=1
|
|
|
93 |
buffer_send_rate=2
|
|
|
94 |
retry_interval=30
|
|
|
95 |
retry_interval_range=10
|
|
|
96 |
|
|
|
97 |
<primary>
|
|
|
98 |
type=bucket
|
|
|
99 |
num_buckets=6
|
|
|
100 |
bucket_subdir=bucket
|
|
|
101 |
bucket_type=key_hash
|
|
|
102 |
#use space for delimter
|
|
|
103 |
delimiter=9
|
|
|
104 |
|
|
|
105 |
<bucket>
|
|
|
106 |
type=file
|
|
|
107 |
fs_type=std
|
|
|
108 |
file_path=/tmp/scribetest
|
|
|
109 |
base_filename=buckettest
|
|
|
110 |
max_size=1000000
|
|
|
111 |
rotate_period=hourly
|
|
|
112 |
rotate_hour=0
|
|
|
113 |
rotate_minute=30
|
|
|
114 |
write_meta=yes
|
|
|
115 |
</bucket>
|
|
|
116 |
</primary>
|
|
|
117 |
|
|
|
118 |
<secondary>
|
|
|
119 |
type=file
|
|
|
120 |
fs_type=std
|
|
|
121 |
file_path=/tmp
|
|
|
122 |
base_filename=buckettest
|
|
|
123 |
max_size=30000
|
|
|
124 |
</secondary>
|
|
|
125 |
</store>
|
|
|
126 |
|