Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

Commit 32bb819

Browse files
author
Alexander Patrikalakis
committed
[skip ci] Only retain config that do not use defaults
1 parent 8628c85 commit 32bb819

File tree

6 files changed

+11
-253
lines changed

6 files changed

+11
-253
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ executor / thread-pool configuration.
366366
367367
| Name | Description | Datatype | Default Value | Mutability |
368368
|-----------------|-------------|----------|---------------|------------|
369-
| `s.d.c.e.core-pool-size` | The core number of threads for the DynamoDB async client. | Integer | `Runtime.getRuntime(). availableProcessors() * 2` | LOCAL |
370-
| `s.d.c.e.max-pool-size` | The maximum allowed number of threads for the DynamoDB async client. | Integer | `Runtime.getRuntime(). availableProcessors() * 4` | LOCAL |
369+
| `s.d.c.e.core-pool-size` | The core number of threads for the DynamoDB async client. | Integer | 25| LOCAL |
370+
| `s.d.c.e.max-pool-size` | The maximum allowed number of threads for the DynamoDB async client. | Integer | 50 | LOCAL |
371371
| `s.d.c.e.keep-alive` | The time limit for which threads may remain idle before being terminated for the DynamoDB async client. | Integer | | LOCAL |
372372
| `s.d.c.e.max-queue-length` | The maximum size of the executor queue before requests start getting run in the caller. | Integer | 1024 | LOCAL |
373373
| `s.d.c.e.max-concurrent-operations` | The expected number of threads expected to be using a single JanusGraph instance. Used to allocate threads to batch operations. | Integer | 1 | LOCAL |

src/main/java/com/amazon/janusgraph/diskstorage/dynamodb/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ public class Constants {
219219
public static final ConfigOption<Integer> DYNAMODB_CLIENT_EXECUTOR_CORE_POOL_SIZE =
220220
new ConfigOption<>(DYNAMODB_CLIENT_EXECUTOR_NAMESPACE, "core-pool-size",
221221
"The core number of threads for the DynamoDB async client.",
222-
LOCAL, Runtime.getRuntime().availableProcessors() * 2);
222+
LOCAL, 25);
223223
public static final ConfigOption<Integer> DYNAMODB_CLIENT_EXECUTOR_MAX_POOL_SIZE =
224224
new ConfigOption<>(DYNAMODB_CLIENT_EXECUTOR_NAMESPACE, "max-pool-size",
225225
"The maximum allowed number of threads for the DynamoDB async client.",
226-
LOCAL, Runtime.getRuntime().availableProcessors() * 4);
226+
LOCAL, 50);
227227
public static final ConfigOption<Long> DYNAMODB_CLIENT_EXECUTOR_KEEP_ALIVE =
228228
new ConfigOption<>(DYNAMODB_CLIENT_EXECUTOR_NAMESPACE, "keep-alive",
229229
"The time limit for which threads may remain idle before being terminated for the DynamoDB async client.",

src/test/resources/dynamodb-local-docker.properties

Lines changed: 2 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -13,91 +13,18 @@
1313
# permissions and limitations under the License.
1414
#
1515

16-
#general Titan configuration
1716
gremlin.graph=org.janusgraph.core.JanusGraphFactory
18-
storage.setup-wait=60000
19-
#adjust the buffer size based on the number of columns (multiple item data model) or the number of vertices (single item data model)
20-
storage.buffer-size=1024
21-
# Metrics configuration - http://docs.janusgraph.org/0.1.0/config-ref.html#_metrics
2217
#metrics.enabled=true
2318
#metrics.prefix=j
24-
# Required; specify logging interval in milliseconds
2519
#metrics.csv.interval=1000
2620
#metrics.csv.directory=metrics
21+
2722
# Turn off JanusGraph retries as we batch and have our own exponential backoff strategy.
2823
storage.write-time=1 ms
2924
storage.read-time=1 ms
30-
storage.backend=com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBStoreManager
3125

32-
#Amazon DynamoDB Storage Backend for JanusGraph configuration
33-
storage.dynamodb.force-consistent-read=true
34-
storage.dynamodb.prefix=jg
35-
storage.dynamodb.use-titan-ids=true
36-
storage.dynamodb.metrics-prefix=d
37-
storage.dynamodb.enable-parallel-scans=false
38-
storage.dynamodb.max-self-throttled-retries=60
39-
storage.dynamodb.control-plane-rate=10
40-
41-
# DynamoDB client configuration: credentials
26+
storage.backend=com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBStoreManager
4227
storage.dynamodb.client.credentials.class-name=com.amazonaws.auth.BasicAWSCredentials
4328
storage.dynamodb.client.credentials.constructor-args=access,secret
44-
45-
# DynamoDB client configuration: specify the region
4629
storage.dynamodb.client.signing-region=us-east-1
47-
# DynamoDB client configuration: endpoint (Below, set to DynamoDB Local as invoked by mvn test -Pstart-dynamodb-local).
4830
storage.dynamodb.client.endpoint=http://dynamodb-local:8000
49-
50-
# max http connections - not recommended to use more than 250 connections in DynamoDB Local
51-
storage.dynamodb.client.connection-max=250
52-
# turn off sdk retries
53-
storage.dynamodb.client.retry-error-max=0
54-
55-
# DynamoDB client configuration: thread pool
56-
storage.dynamodb.client.executor.core-pool-size=25
57-
# Do not need more threads in thread pool than the number of http connections
58-
storage.dynamodb.client.executor.max-pool-size=250
59-
storage.dynamodb.client.executor.keep-alive=60000
60-
storage.dynamodb.client.executor.max-concurrent-operations=1
61-
# should be at least as large as the storage.buffer-size
62-
storage.dynamodb.client.executor.max-queue-length=1024
63-
64-
# 750 r/w CU result in provisioning the maximum equal numbers read and write Capacity Units that can
65-
# be set on one table before it is split into two or more partitions for IOPS. If you will have more than one Rexster server
66-
# accessing the same graph, you should set the read-rate and write-rate properties to values commensurately lower than the
67-
# read and write capacity of the backend tables.
68-
69-
storage.dynamodb.stores.edgestore.initial-capacity-read=100
70-
storage.dynamodb.stores.edgestore.initial-capacity-write=100
71-
storage.dynamodb.stores.edgestore.read-rate=100
72-
storage.dynamodb.stores.edgestore.write-rate=100
73-
storage.dynamodb.stores.edgestore.scan-limit=10000
74-
75-
storage.dynamodb.stores.graphindex.initial-capacity-read=100
76-
storage.dynamodb.stores.graphindex.initial-capacity-write=100
77-
storage.dynamodb.stores.graphindex.read-rate=100
78-
storage.dynamodb.stores.graphindex.write-rate=100
79-
storage.dynamodb.stores.graphindex.scan-limit=10000
80-
81-
storage.dynamodb.stores.systemlog.initial-capacity-read=10
82-
storage.dynamodb.stores.systemlog.initial-capacity-write=10
83-
storage.dynamodb.stores.systemlog.read-rate=10
84-
storage.dynamodb.stores.systemlog.write-rate=10
85-
storage.dynamodb.stores.systemlog.scan-limit=10000
86-
87-
storage.dynamodb.stores.janusgraph_ids.initial-capacity-read=10
88-
storage.dynamodb.stores.janusgraph_ids.initial-capacity-write=10
89-
storage.dynamodb.stores.janusgraph_ids.read-rate=10
90-
storage.dynamodb.stores.janusgraph_ids.write-rate=10
91-
storage.dynamodb.stores.janusgraph_ids.scan-limit=10000
92-
93-
storage.dynamodb.stores.system_properties.initial-capacity-read=10
94-
storage.dynamodb.stores.system_properties.initial-capacity-write=10
95-
storage.dynamodb.stores.system_properties.read-rate=10
96-
storage.dynamodb.stores.system_properties.write-rate=10
97-
storage.dynamodb.stores.system_properties.scan-limit=10000
98-
99-
storage.dynamodb.stores.txlog.initial-capacity-read=10
100-
storage.dynamodb.stores.txlog.initial-capacity-write=10
101-
storage.dynamodb.stores.txlog.read-rate=10
102-
storage.dynamodb.stores.txlog.write-rate=10
103-
storage.dynamodb.stores.txlog.scan-limit=10000

src/test/resources/dynamodb-local.properties

Lines changed: 2 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -13,91 +13,18 @@
1313
# permissions and limitations under the License.
1414
#
1515

16-
#general Titan configuration
1716
gremlin.graph=org.janusgraph.core.JanusGraphFactory
18-
storage.setup-wait=60000
19-
#adjust the buffer size based on the number of columns (multiple item data model) or the number of vertices (single item data model)
20-
storage.buffer-size=1024
21-
# Metrics configuration - http://docs.janusgraph.org/0.1.0/config-ref.html#_metrics
2217
#metrics.enabled=true
2318
#metrics.prefix=j
24-
# Required; specify logging interval in milliseconds
2519
#metrics.csv.interval=1000
2620
#metrics.csv.directory=metrics
21+
2722
# Turn off JanusGraph retries as we batch and have our own exponential backoff strategy.
2823
storage.write-time=1 ms
2924
storage.read-time=1 ms
30-
storage.backend=com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBStoreManager
3125

32-
#Amazon DynamoDB Storage Backend for JanusGraph configuration
33-
storage.dynamodb.force-consistent-read=true
34-
storage.dynamodb.prefix=jg
35-
storage.dynamodb.use-titan-ids=true
36-
storage.dynamodb.metrics-prefix=d
37-
storage.dynamodb.enable-parallel-scans=false
38-
storage.dynamodb.max-self-throttled-retries=60
39-
storage.dynamodb.control-plane-rate=10
40-
41-
# DynamoDB client configuration: credentials
26+
storage.backend=com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBStoreManager
4227
storage.dynamodb.client.credentials.class-name=com.amazonaws.auth.BasicAWSCredentials
4328
storage.dynamodb.client.credentials.constructor-args=access,secret
44-
45-
# DynamoDB client configuration: specify the region
4629
storage.dynamodb.client.signing-region=us-east-1
47-
# DynamoDB client configuration: endpoint (Below, set to DynamoDB Local as invoked by mvn test -Pstart-dynamodb-local).
4830
storage.dynamodb.client.endpoint=http://localhost:4567
49-
50-
# max http connections - not recommended to use more than 250 connections in DynamoDB Local
51-
storage.dynamodb.client.connection-max=250
52-
# turn off sdk retries
53-
storage.dynamodb.client.retry-error-max=0
54-
55-
# DynamoDB client configuration: thread pool
56-
storage.dynamodb.client.executor.core-pool-size=25
57-
# Do not need more threads in thread pool than the number of http connections
58-
storage.dynamodb.client.executor.max-pool-size=250
59-
storage.dynamodb.client.executor.keep-alive=60000
60-
storage.dynamodb.client.executor.max-concurrent-operations=1
61-
# should be at least as large as the storage.buffer-size
62-
storage.dynamodb.client.executor.max-queue-length=1024
63-
64-
# 750 r/w CU result in provisioning the maximum equal numbers read and write Capacity Units that can
65-
# be set on one table before it is split into two or more partitions for IOPS. If you will have more than one Rexster server
66-
# accessing the same graph, you should set the read-rate and write-rate properties to values commensurately lower than the
67-
# read and write capacity of the backend tables.
68-
69-
storage.dynamodb.stores.edgestore.initial-capacity-read=100
70-
storage.dynamodb.stores.edgestore.initial-capacity-write=100
71-
storage.dynamodb.stores.edgestore.read-rate=100
72-
storage.dynamodb.stores.edgestore.write-rate=100
73-
storage.dynamodb.stores.edgestore.scan-limit=10000
74-
75-
storage.dynamodb.stores.graphindex.initial-capacity-read=100
76-
storage.dynamodb.stores.graphindex.initial-capacity-write=100
77-
storage.dynamodb.stores.graphindex.read-rate=100
78-
storage.dynamodb.stores.graphindex.write-rate=100
79-
storage.dynamodb.stores.graphindex.scan-limit=10000
80-
81-
storage.dynamodb.stores.systemlog.initial-capacity-read=10
82-
storage.dynamodb.stores.systemlog.initial-capacity-write=10
83-
storage.dynamodb.stores.systemlog.read-rate=10
84-
storage.dynamodb.stores.systemlog.write-rate=10
85-
storage.dynamodb.stores.systemlog.scan-limit=10000
86-
87-
storage.dynamodb.stores.janusgraph_ids.initial-capacity-read=10
88-
storage.dynamodb.stores.janusgraph_ids.initial-capacity-write=10
89-
storage.dynamodb.stores.janusgraph_ids.read-rate=10
90-
storage.dynamodb.stores.janusgraph_ids.write-rate=10
91-
storage.dynamodb.stores.janusgraph_ids.scan-limit=10000
92-
93-
storage.dynamodb.stores.system_properties.initial-capacity-read=10
94-
storage.dynamodb.stores.system_properties.initial-capacity-write=10
95-
storage.dynamodb.stores.system_properties.read-rate=10
96-
storage.dynamodb.stores.system_properties.write-rate=10
97-
storage.dynamodb.stores.system_properties.scan-limit=10000
98-
99-
storage.dynamodb.stores.txlog.initial-capacity-read=10
100-
storage.dynamodb.stores.txlog.initial-capacity-write=10
101-
storage.dynamodb.stores.txlog.read-rate=10
102-
storage.dynamodb.stores.txlog.write-rate=10
103-
storage.dynamodb.stores.txlog.scan-limit=10000

src/test/resources/dynamodb.properties

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -13,97 +13,46 @@
1313
# permissions and limitations under the License.
1414
#
1515

16-
#general Titan configuration
1716
gremlin.graph=org.janusgraph.core.JanusGraphFactory
18-
#adjust block size based on number of columns in average transaction
19-
ids.block-size=100000
20-
storage.setup-wait=60000
21-
#adjust the buffer size based on the number of columns (multiple item data model) or the number of vertices (single item data model)
22-
storage.buffer-size=1024
23-
# Metrics configuration - http://docs.janusgraph.org/0.1.0/config-ref.html#_metrics
2417
#metrics.enabled=true
2518
#metrics.prefix=j
26-
# Required; specify logging interval in milliseconds
2719
#metrics.csv.interval=1000
2820
#metrics.csv.directory=metrics
21+
2922
# Turn off JanusGraph retries as we batch and have our own exponential backoff strategy.
3023
storage.write-time=1 ms
3124
storage.read-time=1 ms
32-
storage.backend=com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBStoreManager
33-
34-
#Amazon DynamoDB Storage Backend for JanusGraph configuration
35-
storage.dynamodb.force-consistent-read=true
36-
storage.dynamodb.prefix=jg
37-
storage.dynamodb.use-titan-ids=false
38-
storage.dynamodb.metrics-prefix=d
39-
storage.dynamodb.enable-parallel-scans=true
40-
storage.dynamodb.max-self-throttled-retries=60
41-
storage.dynamodb.control-plane-rate=10
4225

43-
# DynamoDB client configuration: credentials
26+
storage.backend=com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBStoreManager
4427
storage.dynamodb.client.credentials.class-name=com.amazonaws.auth.DefaultAWSCredentialsProviderChain
4528
storage.dynamodb.client.credentials.constructor-args=
46-
47-
# DynamoDB client configuration: specify the region and the plugin will automatically use the correct
48-
# HTTPS DynamoDB endpoint for that region.
4929
storage.dynamodb.client.signing-region=us-west-2
50-
51-
# Tune max HTTP connections based on a worse-case estimate of small write latency of 20s for <1KB items
52-
# Writes are at a total of 25 wps so we need 1 HTTP connections to support the load. Remember, reads and writes
53-
# both use these connections, so since the rps are also at 25 rps, lets use 2 HTTP connections. In practice,
54-
# the latency of reads during full graph scans will be larger than that of small writes (because Scan API can
55-
# pull down up to 1MB of data at a time), so you will need to estimate the GetItem/Query/Scan content of your
56-
# read workload and adjust HTTP connections appropriately.
57-
storage.dynamodb.client.connection-max=2
58-
# turn off sdk retries
59-
storage.dynamodb.client.retry-error-max=0
60-
61-
# DynamoDB client configuration: thread pool should start with at least as many HTTP connections as threads.
62-
storage.dynamodb.client.executor.core-pool-size=2
63-
# Do not need more threads in thread pool than the number of http connections
64-
storage.dynamodb.client.executor.max-pool-size=250
65-
storage.dynamodb.client.executor.keep-alive=60000
66-
storage.dynamodb.client.executor.max-concurrent-operations=1
67-
# should be at least as large as the storage.buffer-size
68-
storage.dynamodb.client.executor.max-queue-length=1024
69-
70-
# 750 r/w CU result in provisioning the maximum equal numbers read and write Capacity Units that can
71-
# be set on one table before it is split into two or more partitions for IOPS. If you will have more than one Rexster server
72-
# accessing the same graph, you should set the read-rate and write-rate properties to values commensurately lower than the
73-
# read and write capacity of the backend tables.
74-
7530
storage.dynamodb.stores.edgestore.initial-capacity-read=12
7631
storage.dynamodb.stores.edgestore.initial-capacity-write=12
7732
storage.dynamodb.stores.edgestore.read-rate=12
7833
storage.dynamodb.stores.edgestore.write-rate=12
79-
storage.dynamodb.stores.edgestore.scan-limit=10000
8034

8135
storage.dynamodb.stores.graphindex.initial-capacity-read=9
8236
storage.dynamodb.stores.graphindex.initial-capacity-write=9
8337
storage.dynamodb.stores.graphindex.read-rate=9
8438
storage.dynamodb.stores.graphindex.write-rate=9
85-
storage.dynamodb.stores.graphindex.scan-limit=10000
8639

8740
storage.dynamodb.stores.systemlog.initial-capacity-read=1
8841
storage.dynamodb.stores.systemlog.initial-capacity-write=1
8942
storage.dynamodb.stores.systemlog.read-rate=1
9043
storage.dynamodb.stores.systemlog.write-rate=1
91-
storage.dynamodb.stores.systemlog.scan-limit=10000
9244

9345
storage.dynamodb.stores.janusgraph_ids.initial-capacity-read=1
9446
storage.dynamodb.stores.janusgraph_ids.initial-capacity-write=1
9547
storage.dynamodb.stores.janusgraph_ids.read-rate=1
9648
storage.dynamodb.stores.janusgraph_ids.write-rate=1
97-
storage.dynamodb.stores.janusgraph_ids.scan-limit=10000
9849

9950
storage.dynamodb.stores.system_properties.initial-capacity-read=1
10051
storage.dynamodb.stores.system_properties.initial-capacity-write=1
10152
storage.dynamodb.stores.system_properties.read-rate=1
10253
storage.dynamodb.stores.system_properties.write-rate=1
103-
storage.dynamodb.stores.system_properties.scan-limit=10000
10454

10555
storage.dynamodb.stores.txlog.initial-capacity-read=1
10656
storage.dynamodb.stores.txlog.initial-capacity-write=1
10757
storage.dynamodb.stores.txlog.read-rate=1
10858
storage.dynamodb.stores.txlog.write-rate=1
109-
storage.dynamodb.stores.txlog.scan-limit=10000

src/test/resources/titan-upgrade.properties

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,57 +13,12 @@
1313
# permissions and limitations under the License.
1414
#
1515
gremlin.graph=org.janusgraph.core.JanusGraphFactory
16-
ids.block-size=100000
17-
storage.setup-wait=60000
18-
storage.buffer-size=1024
1916
storage.write-time=1 ms
2017
storage.read-time=1 ms
2118
storage.backend=com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBStoreManager
22-
storage.dynamodb.force-consistent-read=true
2319
storage.dynamodb.prefix=v100
24-
storage.dynamodb.use-titan-ids=true
25-
storage.dynamodb.metrics-prefix=d
26-
storage.dynamodb.enable-parallel-scans=false
27-
storage.dynamodb.max-self-throttled-retries=60
28-
storage.dynamodb.control-plane-rate=10
20+
ids.store-name=titan_ids
2921
storage.dynamodb.client.credentials.class-name=com.amazonaws.auth.DefaultAWSCredentialsProviderChain
3022
storage.dynamodb.client.credentials.constructor-args=
3123
storage.dynamodb.client.endpoint=https://dynamodb.us-east-1.amazonaws.com
3224
storage.dynamodb.client.signing-region=us-east-1
33-
storage.dynamodb.client.connection-max=250
34-
storage.dynamodb.client.retry-error-max=0
35-
storage.dynamodb.client.executor.core-pool-size=25
36-
storage.dynamodb.client.executor.max-pool-size=250
37-
storage.dynamodb.client.executor.keep-alive=60000
38-
storage.dynamodb.client.executor.max-concurrent-operations=1
39-
storage.dynamodb.client.executor.max-queue-length=1024
40-
storage.dynamodb.stores.edgestore.capacity-read=100
41-
storage.dynamodb.stores.edgestore.capacity-write=100
42-
storage.dynamodb.stores.edgestore.read-rate=100
43-
storage.dynamodb.stores.edgestore.write-rate=100
44-
storage.dynamodb.stores.edgestore.scan-limit=10000
45-
storage.dynamodb.stores.graphindex.capacity-read=100
46-
storage.dynamodb.stores.graphindex.capacity-write=100
47-
storage.dynamodb.stores.graphindex.read-rate=100
48-
storage.dynamodb.stores.graphindex.write-rate=100
49-
storage.dynamodb.stores.graphindex.scan-limit=10000
50-
storage.dynamodb.stores.systemlog.capacity-read=10
51-
storage.dynamodb.stores.systemlog.capacity-write=10
52-
storage.dynamodb.stores.systemlog.read-rate=10
53-
storage.dynamodb.stores.systemlog.write-rate=10
54-
storage.dynamodb.stores.systemlog.scan-limit=10000
55-
storage.dynamodb.stores.janusgraph_ids.capacity-read=10
56-
storage.dynamodb.stores.janusgraph_ids.capacity-write=10
57-
storage.dynamodb.stores.janusgraph_ids.read-rate=10
58-
storage.dynamodb.stores.janusgraph_ids.write-rate=10
59-
storage.dynamodb.stores.janusgraph_ids.scan-limit=10000
60-
storage.dynamodb.stores.system_properties.capacity-read=10
61-
storage.dynamodb.stores.system_properties.capacity-write=10
62-
storage.dynamodb.stores.system_properties.read-rate=10
63-
storage.dynamodb.stores.system_properties.write-rate=10
64-
storage.dynamodb.stores.system_properties.scan-limit=10000
65-
storage.dynamodb.stores.txlog.capacity-read=10
66-
storage.dynamodb.stores.txlog.capacity-write=10
67-
storage.dynamodb.stores.txlog.read-rate=10
68-
storage.dynamodb.stores.txlog.write-rate=10
69-
storage.dynamodb.stores.txlog.scan-limit=10000

0 commit comments

Comments
 (0)