Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
35ea9d23
Commit
35ea9d23
authored
Jan 04, 2020
by
Itamar Haber
Committed by
antirez
Jan 10, 2020
Browse files
Adjusts 'io_threads_num' max to 128
Instead of 512, use the defined max from networking.c
parent
38729126
Changes
1
Show whitespace changes
Inline
Side-by-side
src/config.c
View file @
35ea9d23
...
...
@@ -2192,7 +2192,7 @@ standardConfig configs[] = {
/* Integer configs */
createIntConfig
(
"databases"
,
NULL
,
IMMUTABLE_CONFIG
,
1
,
INT_MAX
,
server
.
dbnum
,
16
,
INTEGER_CONFIG
,
NULL
,
NULL
),
createIntConfig
(
"port"
,
NULL
,
IMMUTABLE_CONFIG
,
0
,
65535
,
server
.
port
,
6379
,
INTEGER_CONFIG
,
NULL
,
NULL
),
/* TCP port. */
createIntConfig
(
"io-threads"
,
NULL
,
IMMUTABLE_CONFIG
,
1
,
5
12
,
server
.
io_threads_num
,
1
,
INTEGER_CONFIG
,
NULL
,
NULL
),
/* Single threaded by default */
createIntConfig
(
"io-threads"
,
NULL
,
IMMUTABLE_CONFIG
,
1
,
12
8
,
server
.
io_threads_num
,
1
,
INTEGER_CONFIG
,
NULL
,
NULL
),
/* Single threaded by default */
createIntConfig
(
"auto-aof-rewrite-percentage"
,
NULL
,
MODIFIABLE_CONFIG
,
0
,
INT_MAX
,
server
.
aof_rewrite_perc
,
100
,
INTEGER_CONFIG
,
NULL
,
NULL
),
createIntConfig
(
"cluster-replica-validity-factor"
,
"cluster-slave-validity-factor"
,
MODIFIABLE_CONFIG
,
0
,
INT_MAX
,
server
.
cluster_slave_validity_factor
,
10
,
INTEGER_CONFIG
,
NULL
,
NULL
),
/* Slave max data age factor. */
createIntConfig
(
"list-max-ziplist-size"
,
NULL
,
MODIFIABLE_CONFIG
,
INT_MIN
,
INT_MAX
,
server
.
list_max_ziplist_size
,
-
2
,
INTEGER_CONFIG
,
NULL
,
NULL
),
...
...
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