Skip to content

Commit 9ce9062

Browse files
authored
Merge pull request #186 from aneilbaboo/aneil/heapArgs
Add documentation for new heapInitial and heapMax arguments
2 parents 1cc7d1b + 5e36e5c commit 9ce9062

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ All CLI options are optional:
5151
--sharedDb -h DynamoDB will use a single database file, instead of using separate files for each credential and region. If you specify -sharedDb, all DynamoDB clients will interact with the same set of tables regardless of their region and credential configuration.
5252
--delayTransientStatuses -t Causes DynamoDB to introduce delays for certain operations. DynamoDB can perform some tasks almost instantaneously, such as create/update/delete operations on tables and indexes; however, the actual DynamoDB service requires more time for these tasks. Setting this parameter helps DynamoDB simulate the behavior of the Amazon DynamoDB web service more closely. (Currently, this parameter introduces delays only for global secondary indexes that are in either CREATING or DELETING status.)
5353
--optimizeDbBeforeStartup -o Optimizes the underlying database tables before starting up DynamoDB on your computer. You must also specify -dbPath when you use this parameter.
54+
--migration -m After starting dynamodb local, run dynamodb migrations.
55+
--heapInitial The initial heap size
56+
--heapMax The maximum heap size
5457
--migrate -m After starting DynamoDB local, create DynamoDB tables from the Serverless configuration.
5558
--seed -s After starting and migrating dynamodb local, injects seed data into your tables. The --seed option determines which data categories to onload.
5659
--convertEmptyValues -e Set to true if you would like the document client to convert empty values (0-length strings, binary buffers, and sets) to be converted to NULL types when persisting to DynamoDB.
@@ -67,6 +70,8 @@ custom:
6770
start:
6871
port: 8000
6972
inMemory: true
73+
heapInitial: 200m
74+
heapMax: 1g
7075
migrate: true
7176
seed: true
7277
convertEmptyValues: true

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ class ServerlessDynamodbLocal {
7575
shortcut: "s",
7676
usage: "After starting and migrating dynamodb local, injects seed data into your tables. The --seed option determines which data categories to onload.",
7777
},
78+
migration: {
79+
shortcut: 'm',
80+
usage: 'After starting dynamodb local, run dynamodb migrations'
81+
},
82+
heapInitial: {
83+
usage: 'The initial heap size. Specify megabytes, gigabytes or terabytes using m, b, t. E.g., "2m"'
84+
},
85+
heapMax: {
86+
usage: 'The maximum heap size. Specify megabytes, gigabytes or terabytes using m, b, t. E.g., "2m"'
87+
},
7888
convertEmptyValues: {
7989
shortcut: "e",
8090
usage: "Set to true if you would like the document client to convert empty values (0-length strings, binary buffers, and sets) to be converted to NULL types when persisting to DynamoDB.",

0 commit comments

Comments
 (0)