You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/implementation_guide.md
+2-100Lines changed: 2 additions & 100 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,81 +166,8 @@ AtLeastOnceComplete.askTo(
166
166
167
167
### Configuration
168
168
169
-
On the command side, there are the following settings.
169
+
On the command side, the related settings are defined at `lerna.akka.entityreplication`(except `lerna.akka.entityreplication.raft.eventsourced`) in [reference.conf](/src/main/resources/reference.conf).
170
170
171
-
```hocon
172
-
lerna.akka.entityreplication {
173
-
174
-
// How long wait before giving up entity recovery.
175
-
// Entity recovery requires a snapshot, and failure fetching it will cause this timeout.
176
-
// If timed out, entity recovery will be retried.
177
-
recovery-entity-timeout = 10s
178
-
179
-
raft {
180
-
// The time it takes to start electing a new leader after the heartbeat is no longer received from the leader.
181
-
election-timeout = 750 ms
182
-
183
-
// The interval between leaders sending heartbeats to their followers
184
-
heartbeat-interval = 100 ms
185
-
186
-
// A role to identify the nodes to place replicas on
187
-
// The number of roles is the number of replicas. It is recommended to set up at least three roles.
// Maximum number of entries which AppendEntries contains.
191
-
// The too large size will cause message serialization failure.
192
-
max-append-entries-size = 16
193
-
194
-
// The maximum number of AppendEnteis that will be sent at once at every heartbeat-interval.
195
-
max-append-entries-batch-size = 10
196
-
197
-
// log compaction settings
198
-
compaction {
199
-
200
-
// Time interval to check the size of the log and check if a snapshotting is needed to be taken
201
-
log-size-check-interval = 10s
202
-
203
-
// Threshold for saving snapshots and compaction of the log.
204
-
// If this value is too large, your application will use a lot of memory and you may get an OutOfMemoryError.
205
-
// If this value is too small, it compaction may occur frequently and overload the application and the data store.
206
-
log-size-threshold = 50000
207
-
208
-
// Preserving log entries from log reduction to avoid log replication failure.
209
-
// If more number of logs than this value cannot be synchronized, the raft member will be unavailable.
210
-
// It is recommended to set this value even less than log-size-threshold. Otherwise compaction will be run at every log-size-check-interval.
211
-
preserve-log-size = 10000
212
-
213
-
// Time to keep a cache of snapshots in memory
214
-
snapshot-cache-time-to-live = 10s
215
-
}
216
-
217
-
// snapshot synchronization settings
218
-
snapshot-sync {
219
-
220
-
// Number of snapshots of entities that are copied in parallel
221
-
snapshot-copying-parallelism = 10
222
-
223
-
// Time to abort operations related to persistence
224
-
persistence-operation-timeout = 10s
225
-
}
226
-
227
-
// data persistent settings
228
-
persistence {
229
-
// Absolute path to the journal plugin configuration entry.
230
-
// The journal will be stored events which related to Raft.
231
-
journal.plugin = ""
232
-
233
-
// Absolute path to the snapshot store plugin configuration entry.
234
-
// The snapshot store will be stored state which related to Raft.
235
-
snapshot-store.plugin = ""
236
-
237
-
// Absolute path to the query plugin configuration entry.
238
-
// Snapshot synchronization reads events that related to Raft.
239
-
query.plugin = ""
240
-
}
241
-
}
242
-
}
243
-
```
244
171
245
172
## Read Side
246
173
@@ -358,33 +285,8 @@ object EventHandler {
358
285
359
286
### Configuration
360
287
361
-
On the read side, there are the following settings.
362
-
363
-
```hocon
364
-
lerna.akka.entityreplication.raft.eventsourced {
365
-
// Settings for saving committed events from each RaftActor
366
-
commit-log-store {
367
-
// Retry setting to prevent events from being lost if commit-log-store(sharding) stops temporarily
368
-
retry {
369
-
attempts = 15
370
-
delay = 3 seconds
371
-
}
372
-
}
373
-
374
-
persistence {
375
-
// Absolute path to the journal plugin configuration entry.
376
-
// The journal stores Raft-committed events.
377
-
journal.plugin = ""
378
-
379
-
// Absolute path to the snapshot-store plugin configuration entry.
380
-
// The snapshot-store stores a state (snapshot) built from Raft-committed events.
381
-
snapshot-store.plugin = ""
288
+
On the read side, the related settings are defined at `lerna.akka.entityreplication.raft.eventsourced` in [reference.conf](/src/main/resources/reference.conf).
Copy file name to clipboardExpand all lines: docs/typed/implementation_guide.md
+2-99Lines changed: 2 additions & 99 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -360,87 +360,8 @@ This is useful when you would like to change the datastore that persists events
360
360
361
361
### Configuration
362
362
363
-
On the command side, there are the following settings.
363
+
On the command side, the related settings are defined at `lerna.akka.entityreplication`(except `lerna.akka.entityreplication.raft.eventsourced`) in [reference.conf](/src/main/resources/reference.conf).
364
364
365
-
```hocon
366
-
lerna.akka.entityreplication {
367
-
368
-
// How long wait before giving up entity recovery.
369
-
// Entity recovery requires a snapshot, and failure fetching it will cause this timeout.
370
-
// If timed out, entity recovery will be retried.
371
-
recovery-entity-timeout = 10s
372
-
373
-
raft {
374
-
// The time it takes to start electing a new leader after the heartbeat is no longer received from the leader.
375
-
election-timeout = 750 ms
376
-
377
-
// The interval between leaders sending heartbeats to their followers
378
-
heartbeat-interval = 100 ms
379
-
380
-
// A role to identify the nodes to place replicas on
381
-
// The number of roles is the number of replicas. It is recommended to set up at least three roles.
// Number of shards per single multi-raft-role used by only typed APIs.
385
-
// This value must be the same for all nodes in the cluster
386
-
// and must not be changed after starting to use.
387
-
// Changing this value will cause data inconsistency.
388
-
number-of-shards = 100
389
-
390
-
// Maximum number of entries which AppendEntries contains.
391
-
// The too large size will cause message serialization failure.
392
-
max-append-entries-size = 16
393
-
394
-
// The maximum number of AppendEnteis that will be sent at once at every heartbeat-interval.
395
-
max-append-entries-batch-size = 10
396
-
397
-
// log compaction settings
398
-
compaction {
399
-
400
-
// Time interval to check the size of the log and check if a snapshotting is needed to be taken
401
-
log-size-check-interval = 10s
402
-
403
-
// Threshold for saving snapshots and compaction of the log.
404
-
// If this value is too large, your application will use a lot of memory and you may get an OutOfMemoryError.
405
-
// If this value is too small, it compaction may occur frequently and overload the application and the data store.
406
-
log-size-threshold = 50000
407
-
408
-
// Preserving log entries from log reduction to avoid log replication failure.
409
-
// If more number of logs than this value cannot be synchronized, the raft member will be unavailable.
410
-
// It is recommended to set this value even less than log-size-threshold. Otherwise compaction will be run at every log-size-check-interval.
411
-
preserve-log-size = 10000
412
-
413
-
// Time to keep a cache of snapshots in memory
414
-
snapshot-cache-time-to-live = 10s
415
-
}
416
-
417
-
// snapshot synchronization settings
418
-
snapshot-sync {
419
-
420
-
// Number of snapshots of entities that are copied in parallel
421
-
snapshot-copying-parallelism = 10
422
-
423
-
// Time to abort operations related to persistence
424
-
persistence-operation-timeout = 10s
425
-
}
426
-
427
-
// data persistent settings
428
-
persistence {
429
-
// Absolute path to the journal plugin configuration entry.
430
-
// The journal will be stored events which related to Raft.
431
-
journal.plugin = ""
432
-
433
-
// Absolute path to the snapshot store plugin configuration entry.
434
-
// The snapshot store will be stored state which related to Raft.
435
-
snapshot-store.plugin = ""
436
-
437
-
// Absolute path to the query plugin configuration entry.
438
-
// Snapshot synchronization reads events that related to Raft.
439
-
query.plugin = ""
440
-
}
441
-
}
442
-
}
443
-
```
444
365
445
366
## Read Side
446
367
@@ -563,26 +484,8 @@ You can set an arbitrary value however you cannot change the value easily after
563
484
564
485
### Configuration
565
486
566
-
On the read side, there are the following settings.
487
+
On the read side, the related settings are defined at `lerna.akka.entityreplication.raft.eventsourced` in [reference.conf](/src/main/resources/reference.conf).
567
488
568
-
```hocon
569
-
lerna.akka.entityreplication.raft.eventsourced {
570
-
// Settings for saving committed events from each RaftActor
571
-
commit-log-store {
572
-
// Retry setting to prevent events from being lost if commit-log-store(sharding) stops temporarily
573
-
retry {
574
-
attempts = 15
575
-
delay = 3 seconds
576
-
}
577
-
}
578
-
579
-
persistence {
580
-
// Absolute path to the journal plugin configuration entry.
0 commit comments