Skip to content
Permalink
Browse files
Rearrange IOQ config declarations into header file
  • Loading branch information
chewbranca committed Apr 12, 2019
1 parent 7edcb03 commit 08c6bbb67031c39d48a1beb1b74ea21de38ded3a
Showing 2 changed files with 9 additions and 8 deletions.
@@ -19,6 +19,15 @@
-define(DISPATCH_SINGLE_SERVER, "single_server").
-define(DISPATCH_SERVER_PER_SCHEDULER, "server_per_scheduler").

%% Config Categories
-define(SHARD_CLASS_SEPARATOR, "||").
-define(IOQ2_CONFIG, "ioq2").
-define(IOQ2_BYPASS_CONFIG, "ioq2.bypass").
-define(IOQ2_SHARDS_CONFIG, "ioq2.shards").
-define(IOQ2_USERS_CONFIG, "ioq2.users").
-define(IOQ2_CLASSES_CONFIG, "ioq2.classes").


-define(DEFAULT_CLASS_PRIORITIES, [
{customer, 1.0},
{internal_repl, 0.001},
@@ -54,14 +54,6 @@
]).


-define(SHARD_CLASS_SEPARATOR, "||").
-define(IOQ2_CONFIG, "ioq2").
-define(IOQ2_BYPASS_CONFIG, "ioq2.bypass").
-define(IOQ2_SHARDS_CONFIG, "ioq2.shards").
-define(IOQ2_USERS_CONFIG, "ioq2.users").
-define(IOQ2_CLASSES_CONFIG, "ioq2.classes").


ioq_classes() ->
[Class || {Class, _Priority} <- ?DEFAULT_CLASS_PRIORITIES].

0 comments on commit 08c6bbb

Please sign in to comment.