-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathplanout4j.conf
72 lines (55 loc) · 3.16 KB
/
planout4j.conf
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
# Default configuration file for Planout4jRepository implementation
# Needs a backend for *reading* only
# File backend is used by default, expecting to load "compiled" JSON files
# for syntax, see https://github.com/typesafehub/config/blob/master/HOCON.md
planout4j {
backend {
# repository uses "runtimeRepo" key while shipper tool uses "source" and "target" keys
# by default, assuming at runtime repository is reading compiled JSON rather than source YAML.
# but either is a valid setup
runtimeRepo = compiledFiles
# the parser repository will use at runtime to load files has to match the data format of 'runtimeRepo' backend
# if reading YAML files directly, use com.glassdoor.planout4j.compiler.YAMLConfigParser
runtimeRepoParser = com.glassdoor.planout4j.compiler.JSONConfigParser
source = sourceFiles
# if using redis, override with -Dplanout4j.backend.target=redis
target = compiledFiles
sourceConfDir = "_dummy_invalid_path_please_set_planout4j.backend.sourceConfDir_accordingly_"
compiledConfDir = "_dummy_invalid_path_please_set_planout4j.backend.compiledConfDir_accordingly_"
# if using compiledFiles backend, please set planout4j.backend.compiledConfDir property accordingly
# this backend is used by Planout4jRepositoryImpl to read compiled JSON files
compiledFiles {
class = com.glassdoor.planout4j.config.Planout4jConfigFileBackend
# this property must be explicitly set, e.g. using -Dplanout4j.backend.compiledConfDir
sourceDirHierarchy = ${planout4j.backend.compiledConfDir}
destDirHierarchy = ${planout4j.backend.compiledConfDir}
inputFileNamesPattern = "*.json"
outputFileExtension = ".json"
}
# this backend is used by Planout4jConfigShipper to read source YAML with embedded DSL files
sourceFiles {
class = com.glassdoor.planout4j.config.Planout4jConfigFileBackend
# this will need to be overridden by each consuming app as -Dplanout4j.backend.sourceConfDir
sourceDirHierarchy = ${planout4j.backend.sourceConfDir}
# no need to override this one unless different file extension is used (e.g. .yml or .p4j)
inputFileNamesPattern = "*.yaml"
}
redis {
class = com.glassdoor.planout4j.config.Planout4jConfigRedisBackend
# override accordingly with -Dplanout4j.backend.redis.host=...
host = localhost
# same as above
port = 6379
# override if same redis instance is used for multiple environments
key = planout4j
}
}
logging {
# optionally uncomment below to log exposure events serialized to JSON via SLF4J
# or point to a custom implementation of com.glassdoor.planout4j.logging.Planout4jLogger
# class = com.glassdoor.planout4j.logging.SLF4JLogger
# whether to fire exposure events when a unit was assigned to the default experiment
log_default_exposure = false
# optionally set implementation-specfic properties
}
}