Configuration
A client application using the library Resolver (Gluer, Designer API, Resolver API) must define configuration for the Couchbase bucket :
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
|
resolver.couchbase:
cluster:
hosts: # comma separated list of couchbase host
bucket: # Name of the couchbase bucket used for resolver
username: # Username for the bucket
password: # Password for the bucket
environment:
max-request-lifetime: 75000 # Sets the maximum time (in milliseconds) a request is allowed to live
connect-timeout: 5000 # Connect timeout
query-timeout: 5000 # Query timeout
view-timeout: 5000 # View timeout
search-timeout: 5000 # Search timeout
query:
scan-consistency: REQUEST_PLUS # Please do not modify. Consistency between index and data (NOT_BOUNDED, REQUEST_PLUS, STATEMENT_PLUS, see https://docs.couchbase.com/server/current/indexes/performance-consistency.html
caches:
objects:
max-memory-size: 10485760 # Max memory size (in bytes) for document by key cache (exclusive with max-entry-size)
max-entry-size: # Max entry size for document by key cache (exclusive with max-memory-size)
ttl: 86400 # Time To Live (in seconds) for document by key cache
views:
max-memory-size: 1048576 # Max memory size (in bytes) for key by view cache (exclusive with max-entry-size)
max-entry-size: # Max entry size for key by view cache (exclusive with max-memorysize)
ttl: 86400 # Time To Live (in seconds) for key by veiw cache
searches:
max-memory-size: 1048576 # Max memory size (in bytes) for key by search cache (exclusive with max-entry-size)
max-entry-size: # Max entry size for key by search cache (exclusive with max-memory-size)
ttl: 86400 # Time To Live (in seconds) for key by search cache
|
In addition you have to configure the cache and client (for a remote resolver) :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
resolver:
cache:
unpersistable-paths: # Paths resolution not persisted in database (status 301, 302, 404, 410, 500)
max-memory-size: 10485760 # 10 MBytes
ttl : 86400 # Time to live in seconds, remote resolver may set a ttl lower than this one
ttl-on-error: 60 # Time to live in seconds if error occur while resolving path, should be lower than ttl
unpersistable-resources: # Resource resolution not persisted in database (status 500)
max-memory-size: 10485760 # 10 MBytes
ttl : 86400 # Time to live in seconds, remote resolver may set a ttl lower than this one
ttl-on-error: 60 # Time to live in seconds if error occur while resolving resource, should be lower than ttl
client:
connect-timeout: 200 # Client connect timeout to a remote resolver
read-timeout: 300 # Client read timeout to a remote resolver
max-connection: 100 # Client max connections to a remote resolver
|
Lastly, since resolutions depends on the site, and its configuration (the site configuration defines the remote resolver), you have to be able to fetch these from the Registry :
1
2
|
kobi.registration:
base-url: # url of the registy api
|