Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
f7fa857f
Commit
f7fa857f
authored
Apr 23, 2017
by
Marian Triebe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing config parameters for crdt module
parent
fc608d33
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
libcaf_core/caf/actor_system_config.hpp
libcaf_core/caf/actor_system_config.hpp
+4
-1
libcaf_core/src/actor_system_config.cpp
libcaf_core/src/actor_system_config.cpp
+13
-3
No files found.
libcaf_core/caf/actor_system_config.hpp
View file @
f7fa857f
...
@@ -279,7 +279,10 @@ public:
...
@@ -279,7 +279,10 @@ public:
// -- config parameters of the replication module ----------------------------
// -- config parameters of the replication module ----------------------------
std
::
string
replication_hosts
;
size_t
crdt_flush_buffer_interval_ms
;
size_t
crdt_notify_interval_ms
;
size_t
crdt_state_interval_ms
;
size_t
crdt_ids_interval_ms
;
// -- factories --------------------------------------------------------------
// -- factories --------------------------------------------------------------
...
...
libcaf_core/src/actor_system_config.cpp
View file @
f7fa857f
...
@@ -120,6 +120,10 @@ actor_system_config::actor_system_config()
...
@@ -120,6 +120,10 @@ actor_system_config::actor_system_config()
middleman_enable_automatic_connections
=
false
;
middleman_enable_automatic_connections
=
false
;
middleman_max_consecutive_reads
=
50
;
middleman_max_consecutive_reads
=
50
;
middleman_heartbeat_interval
=
0
;
middleman_heartbeat_interval
=
0
;
crdt_flush_buffer_interval_ms
=
2000
;
crdt_notify_interval_ms
=
500
;
crdt_state_interval_ms
=
120000
;
crdt_ids_interval_ms
=
1000
;
// fill our options vector for creating INI and CLI parsers
// fill our options vector for creating INI and CLI parsers
opt_group
{
options_
,
"scheduler"
}
opt_group
{
options_
,
"scheduler"
}
.
add
(
scheduler_policy
,
"policy"
,
.
add
(
scheduler_policy
,
"policy"
,
...
@@ -172,9 +176,15 @@ actor_system_config::actor_system_config()
...
@@ -172,9 +176,15 @@ actor_system_config::actor_system_config()
opt_group
(
options_
,
"opencl"
)
opt_group
(
options_
,
"opencl"
)
.
add
(
opencl_device_ids
,
"device-ids"
,
.
add
(
opencl_device_ids
,
"device-ids"
,
"restricts which OpenCL devices are accessed by CAF"
);
"restricts which OpenCL devices are accessed by CAF"
);
opt_group
(
options_
,
"replication"
)
opt_group
(
options_
,
"crdt"
)
.
add
(
replication_hosts
,
"nodes"
,
.
add
(
crdt_flush_buffer_interval_ms
,
"flush"
,
"connects to other CAF nodes at init"
);
"sets the flush interval in milliseconds"
)
.
add
(
crdt_notify_interval_ms
,
"notify"
,
"sets the notify interval in milliseconds"
)
.
add
(
crdt_state_interval_ms
,
"state"
,
"state reconciliation in milliseconds"
)
.
add
(
crdt_ids_interval_ms
,
"ids"
,
"id synchronization in milliseconds"
);
// add renderers for default error categories
// add renderers for default error categories
error_renderers
.
emplace
(
atom
(
"system"
),
render_sec
);
error_renderers
.
emplace
(
atom
(
"system"
),
render_sec
);
error_renderers
.
emplace
(
atom
(
"exit"
),
render_exit_reason
);
error_renderers
.
emplace
(
atom
(
"exit"
),
render_exit_reason
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment