Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 128 lines (110 sloc) 3.02 kb
778a727 Add a Simple Unit testsuite
groys authored
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=1
51 num_thrift_server_threads=4
52
53
54 # DEFAULT
55 <store>
56 category=default
57 type=buffer
58
59 target_write_size=20480
60 max_write_interval=1
61 buffer_send_rate=2
62 retry_interval=3
63 retry_interval_range=1
64
65 send_buffer=no
66
67 <primary>
68 type=file
69 fs_type=std
70 file_path=/tmp/scribetest_
71 base_filename=thisisoverwritten
72 max_size=10000000
73 chunk_size=1024
74 rotate_period=daily
75 rotate_hour=0
76 rotate_minute=5
77 </primary>
78
79 <secondary>
80 type=file
81 fs_type=std
82 file_path=/tmp/scribe_test_
83 base_filename=thisisoverwritten
84 max_size=3000000
85 </secondary>
86 </store>
87
88 # BUCKETIZER TEST
89 <store>
90 category=buckettest
91 type=buffer
92
93 target_write_size=20480
94 max_write_interval=1
95 buffer_send_rate=2
96 retry_interval=30
97 retry_interval_range=10
98
99 <primary>
100 type=bucket
101 num_buckets=6
102 bucket_subdir=bucket
103 bucket_type=key_hash
104 delimiter=1
105
106 <bucket>
107 type=file
108 fs_type=std
109 file_path=/tmp/scribetest_
110 base_filename=buckettest
111 max_size=1000000
112 rotate_period=hourly
113 rotate_hour=0
114 rotate_minute=30
115 write_meta=yes
116 </bucket>
117 </primary>
118
119 <secondary>
120 type=file
121 fs_type=std
122 file_path=/tmp/scribe_test_
123 base_filename=buckettest
124 max_size=30000
125 </secondary>
126 </store>
127
Something went wrong with that request. Please try again.