Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
## Sample Scribe configuration
21
##
22
 
23
# This file configures Scribe to listen for messages on port 1463 and write
24
# them to /tmp/scribetest
25
#
26
# This configuration also tells Scribe to discard messages with a category
27
# that begins with 'ignore'.
28
#
29
# If the message category is 'bucket_me', Scribe will hash this message to
30
# 1 of 5 buckets.
31
 
32
port=1463
33
max_msg_per_second=2000000
34
check_interval=3
35
 
36
# IGNORE* - discards messages for categories that begin with 'ignore'
37
<store>
38
category=ignore*
39
type=null
40
</store>
41
 
42
 
43
# BUCKET_ME - write 'bucket_me' messages to 1 of 5 subdirectories
44
<store>
45
category=bucket_me
46
type=buffer
47
 
48
target_write_size=20480
49
max_write_interval=1
50
buffer_send_rate=2
51
retry_interval=30
52
retry_interval_range=10
53
 
54
<primary>
55
type=bucket
56
num_buckets=5
57
bucket_subdir=bucket
58
bucket_type=key_hash
59
delimiter=58
60
# This will hash based on the part of the message before the first ':' (char(58))
61
 
62
<bucket>
63
type=file
64
fs_type=std
65
file_path=/tmp/scribetest
66
base_filename=bucket_me
67
max_size=10000
68
</bucket>
69
</primary>
70
 
71
<secondary>
72
type=file
73
fs_type=std
74
file_path=/tmp
75
base_filename=bucket_me
76
max_size=30000
77
</secondary>
78
</store>
79
 
80
 
81
# DEFAULT - write all other categories to /tmp/scribetest
82
<store>
83
category=default
84
type=buffer
85
 
86
target_write_size=20480
87
max_write_interval=1
88
buffer_send_rate=2
89
retry_interval=30
90
retry_interval_range=10
91
 
92
<primary>
93
type=file
94
fs_type=std
95
file_path=/tmp/scribetest
96
base_filename=thisisoverwritten
97
max_size=1000000
98
</primary>
99
 
100
<secondary>
101
type=file
102
fs_type=std
103
file_path=/tmp
104
base_filename=thisisoverwritten
105
max_size=3000000
106
</secondary>
107
</store>
108