mirror of
http://github.com/valkey-io/valkey
synced 2024-11-23 03:33:28 +00:00
Remove trademarked wording on configuration file and individual configs (#29)
Remove trademarked wording on configuration layer. Following changes for release notes: 1. Rename redis.conf to valkey.conf 2. Pre-filled config in the template config file: Changing pidfile to `/var/run/valkey_6379.pid` Signed-off-by: Harkrishn Patro <harkrisp@amazon.com>
This commit is contained in:
parent
1629e28f86
commit
1736018aa9
3
.gitignore
vendored
3
.gitignore
vendored
@ -23,8 +23,7 @@ release.h
|
||||
src/transfer.sh
|
||||
src/configs
|
||||
redis.ds
|
||||
src/redis.conf
|
||||
src/nodes.conf
|
||||
src/*.conf
|
||||
deps/lua/src/lua
|
||||
deps/lua/src/luac
|
||||
deps/lua/src/liblua.a
|
||||
|
@ -146,7 +146,7 @@ sentinel down-after-milliseconds mymaster 30000
|
||||
#
|
||||
# For more information about ACL configuration please refer to the Redis
|
||||
# website at https://redis.io/topics/acl and redis server configuration
|
||||
# template redis.conf.
|
||||
# template valkey.conf.
|
||||
|
||||
# ACL LOG
|
||||
#
|
||||
@ -164,7 +164,7 @@ acllog-max-len 128
|
||||
# ACL file, the server will refuse to start.
|
||||
#
|
||||
# The format of the external ACL user file is exactly the same as the
|
||||
# format that is used inside redis.conf to describe users.
|
||||
# format that is used inside valkey.conf to describe users.
|
||||
#
|
||||
# aclfile /etc/redis/sentinel-users.acl
|
||||
|
||||
|
@ -64,7 +64,7 @@ static unsigned long nextid = 0; /* Next command id that has not been assigned *
|
||||
struct ACLCategoryItem {
|
||||
char *name;
|
||||
uint64_t flag;
|
||||
} ACLDefaultCommandCategories[] = { /* See redis.conf for details on each category. */
|
||||
} ACLDefaultCommandCategories[] = { /* See valkey.conf for details on each category. */
|
||||
{"keyspace", ACL_CATEGORY_KEYSPACE},
|
||||
{"read", ACL_CATEGORY_READ},
|
||||
{"write", ACL_CATEGORY_WRITE},
|
||||
@ -2272,7 +2272,7 @@ int ACLLoadConfiguredUsers(void) {
|
||||
|
||||
/* This function loads the ACL from the specified filename: every line
|
||||
* is validated and should be either empty or in the format used to specify
|
||||
* users in the redis.conf configuration or in the ACL file, that is:
|
||||
* users in the valkey.conf or in the ACL file, that is:
|
||||
*
|
||||
* user <username> ... rules ...
|
||||
*
|
||||
@ -2566,7 +2566,7 @@ cleanup:
|
||||
|
||||
/* This function is called once the server is already running, modules are
|
||||
* loaded, and we are ready to start, in order to load the ACLs either from
|
||||
* the pending list of users defined in redis.conf, or from the ACL file.
|
||||
* the pending list of users defined in valkey.conf, or from the ACL file.
|
||||
* The function will just exit with an error if the user is trying to mix
|
||||
* both the loading methods. */
|
||||
void ACLLoadUsersAtStartup(void) {
|
||||
|
@ -1275,7 +1275,7 @@ int rewriteConfigRewriteLine(struct rewriteConfigState *state, const char *optio
|
||||
}
|
||||
|
||||
/* Write the long long 'bytes' value as a string in a way that is parsable
|
||||
* inside redis.conf. If possible uses the GB, MB, KB notation. */
|
||||
* inside valkey.conf. If possible uses the GB, MB, KB notation. */
|
||||
int rewriteConfigFormatMemory(char *buf, size_t len, long long bytes) {
|
||||
int gb = 1024*1024*1024;
|
||||
int mb = 1024*1024;
|
||||
@ -1473,7 +1473,7 @@ void rewriteConfigReplicaOfOption(standardConfig *config, const char *name, stru
|
||||
|
||||
/* If this is a master, we want all the slaveof config options
|
||||
* in the file to be removed. Note that if this is a cluster instance
|
||||
* we don't want a slaveof directive inside redis.conf. */
|
||||
* we don't want a slaveof directive inside valkey.conf. */
|
||||
if (server.cluster_enabled || server.masterhost == NULL) {
|
||||
rewriteConfigMarkAsProcessed(state, name);
|
||||
return;
|
||||
|
@ -8703,7 +8703,7 @@ void moduleReleaseGIL(void) {
|
||||
* used to send anything to the client, and has the db number where the event
|
||||
* occurred as its selected db number.
|
||||
*
|
||||
* Notice that it is not necessary to enable notifications in redis.conf for
|
||||
* Notice that it is not necessary to enable notifications in valkey.conf for
|
||||
* module notifications to work.
|
||||
*
|
||||
* Warning: the notification callbacks are performed in a synchronous manner,
|
||||
|
18
src/server.c
18
src/server.c
@ -2142,7 +2142,7 @@ void initServerConfig(void) {
|
||||
|
||||
/* Command table -- we initialize it here as it is part of the
|
||||
* initial configuration, since command names may be changed via
|
||||
* redis.conf using the rename-command directive. */
|
||||
* valkey.conf using the rename-command directive. */
|
||||
server.commands = dictCreate(&commandTableDictType);
|
||||
server.orig_commands = dictCreate(&commandTableDictType);
|
||||
populateCommandTable();
|
||||
@ -3081,7 +3081,7 @@ void populateCommandTable(void) {
|
||||
|
||||
retval1 = dictAdd(server.commands, sdsdup(c->fullname), c);
|
||||
/* Populate an additional dictionary that will be unaffected
|
||||
* by rename-command statements in redis.conf. */
|
||||
* by rename-command statements in valkey.conf. */
|
||||
retval2 = dictAdd(server.orig_commands, sdsdup(c->fullname), c);
|
||||
serverAssert(retval1 == DICT_OK && retval2 == DICT_OK);
|
||||
}
|
||||
@ -3236,7 +3236,7 @@ struct serverCommand *lookupCommandByCString(const char *s) {
|
||||
|
||||
/* Lookup the command in the current table, if not found also check in
|
||||
* the original table containing the original command names unaffected by
|
||||
* redis.conf rename-command statement.
|
||||
* valkey.conf rename-command statement.
|
||||
*
|
||||
* This is used by functions rewriting the argument vector such as
|
||||
* rewriteClientCommandVector() in order to set client->cmd pointer
|
||||
@ -6275,7 +6275,7 @@ sds getVersion(void) {
|
||||
}
|
||||
|
||||
void usage(void) {
|
||||
fprintf(stderr,"Usage: ./redis-server [/path/to/redis.conf] [options] [-]\n");
|
||||
fprintf(stderr,"Usage: ./redis-server [/path/to/valkey.conf] [options] [-]\n");
|
||||
fprintf(stderr," ./redis-server - (read config from stdin)\n");
|
||||
fprintf(stderr," ./redis-server -v or --version\n");
|
||||
fprintf(stderr," ./redis-server -h or --help\n");
|
||||
@ -6285,11 +6285,11 @@ void usage(void) {
|
||||
fprintf(stderr,"Examples:\n");
|
||||
fprintf(stderr," ./redis-server (run the server with default conf)\n");
|
||||
fprintf(stderr," echo 'maxmemory 128mb' | ./redis-server -\n");
|
||||
fprintf(stderr," ./redis-server /etc/redis/6379.conf\n");
|
||||
fprintf(stderr," ./redis-server /etc/valkey/6379.conf\n");
|
||||
fprintf(stderr," ./redis-server --port 7777\n");
|
||||
fprintf(stderr," ./redis-server --port 7777 --replicaof 127.0.0.1 8888\n");
|
||||
fprintf(stderr," ./redis-server /etc/myredis.conf --loglevel verbose -\n");
|
||||
fprintf(stderr," ./redis-server /etc/myredis.conf --loglevel verbose\n\n");
|
||||
fprintf(stderr," ./redis-server /etc/myvalkey.conf --loglevel verbose -\n");
|
||||
fprintf(stderr," ./redis-server /etc/myvalkey.conf --loglevel verbose\n\n");
|
||||
fprintf(stderr,"Sentinel mode:\n");
|
||||
fprintf(stderr," ./redis-server /etc/sentinel.conf --sentinel\n");
|
||||
exit(1);
|
||||
@ -6306,7 +6306,7 @@ void redisAsciiArt(void) {
|
||||
|
||||
/* Show the ASCII logo if: log file is stdout AND stdout is a
|
||||
* tty AND syslog logging is disabled. Also show logo if the user
|
||||
* forced us to do so via redis.conf. */
|
||||
* forced us to do so via valkey.conf. */
|
||||
int show_logo = ((!server.syslog_enabled &&
|
||||
server.logfile[0] == '\0' &&
|
||||
isatty(fileno(stdout))) ||
|
||||
@ -6700,7 +6700,7 @@ void redisOutOfMemoryHandler(size_t allocation_size) {
|
||||
allocation_size);
|
||||
}
|
||||
|
||||
/* Callback for sdstemplate on proc-title-template. See redis.conf for
|
||||
/* Callback for sdstemplate on proc-title-template. See valkey.conf for
|
||||
* supported variables.
|
||||
*/
|
||||
static sds redisProcTitleGetVariable(const sds varname, void *arg)
|
||||
|
@ -1734,7 +1734,7 @@ struct redisServer {
|
||||
durationStats duration_stats[EL_DURATION_TYPE_NUM];
|
||||
|
||||
/* Configuration */
|
||||
int verbosity; /* Loglevel in redis.conf */
|
||||
int verbosity; /* Loglevel verbosity */
|
||||
int maxidletime; /* Client timeout in seconds */
|
||||
int tcpkeepalive; /* Set SO_KEEPALIVE if non-zero. */
|
||||
int active_expire_enabled; /* Can be disabled for testing purposes. */
|
||||
@ -2314,7 +2314,7 @@ typedef int serverGetKeysProc(struct serverCommand *cmd, robj **argv, int argc,
|
||||
*
|
||||
* The following additional flags are only used in order to put commands
|
||||
* in a specific ACL category. Commands can have multiple ACL categories.
|
||||
* See redis.conf for the exact meaning of each.
|
||||
* See valkey.conf for the exact meaning of each.
|
||||
*
|
||||
* @keyspace, @read, @write, @set, @sortedset, @list, @hash, @string, @bitmap,
|
||||
* @hyperloglog, @stream, @admin, @fast, @slow, @pubsub, @blocking, @dangerous,
|
||||
|
@ -536,7 +536,7 @@ proc start_server {options {code undefined}} {
|
||||
}
|
||||
|
||||
# write new configuration to temporary file
|
||||
set config_file [tmpfile redis.conf]
|
||||
set config_file [tmpfile valkey.conf]
|
||||
create_server_config_file $config_file $config $config_lines
|
||||
|
||||
set stdout [format "%s/%s" [dict get $config "dir"] "stdout"]
|
||||
|
@ -327,7 +327,7 @@ proc run_solo {name code} {
|
||||
proc cleanup {} {
|
||||
if {!$::quiet} {puts -nonewline "Cleanup: may take some time... "}
|
||||
flush stdout
|
||||
catch {exec rm -rf {*}[glob tests/tmp/redis.conf.*]}
|
||||
catch {exec rm -rf {*}[glob tests/tmp/valkey.conf.*]}
|
||||
catch {exec rm -rf {*}[glob tests/tmp/server*.*]}
|
||||
catch {exec rm -rf {*}[glob tests/tmp/*.acl.*]}
|
||||
if {!$::quiet} {puts "OK"}
|
||||
|
@ -419,7 +419,7 @@ start_server {tags {"other external:skip"}} {
|
||||
assert_equal $expect_port [lindex $cmdline 3]
|
||||
assert_equal $expect_tls_port [lindex $cmdline 4]
|
||||
assert_match "*/tests/tmp/server.*/socket" [lindex $cmdline 5]
|
||||
assert_match "*/tests/tmp/redis.conf.*" [lindex $cmdline 6]
|
||||
assert_match "*/tests/tmp/valkey.conf.*" [lindex $cmdline 6]
|
||||
|
||||
# Try setting a bad template
|
||||
catch {r config set "proc-title-template" "{invalid-var}"} err
|
||||
|
@ -166,7 +166,7 @@ mkdir -p "$REDIS_DATA_DIR" || die "Could not create redis data directory"
|
||||
|
||||
#render the templates
|
||||
TMP_FILE="/tmp/${REDIS_PORT}.conf"
|
||||
DEFAULT_CONFIG="${SCRIPTPATH}/../redis.conf"
|
||||
DEFAULT_CONFIG="${SCRIPTPATH}/../valkey.conf"
|
||||
INIT_TPL_FILE="${SCRIPTPATH}/redis_init_script.tpl"
|
||||
INIT_SCRIPT_DEST="/etc/init.d/redis_${REDIS_PORT}"
|
||||
PIDFILE="/var/run/redis_${REDIS_PORT}.pid"
|
||||
|
@ -24,9 +24,9 @@ Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/redis-server --supervised systemd --daemonize no
|
||||
ExecStart=/usr/local/bin/valkey-server --supervised systemd --daemonize no
|
||||
## Alternatively, have redis-server load a configuration file:
|
||||
#ExecStart=/usr/local/bin/redis-server /path/to/your/redis.conf
|
||||
#ExecStart=/usr/local/bin/valkey-server /path/to/your/valkey.conf
|
||||
LimitNOFILE=10032
|
||||
NoNewPrivileges=yes
|
||||
#OOMScoreAdjust=-900
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user