root@afae1e815bd6:/#redis-benchmark--helpUsage:redis-benchmark [-h <host>] [-p <port>] [-c <clients>] [-n <requests>] [-k <boolean>]-h<hostname>Serverhostname (default 127.0.0.1)-p<port>Serverport (default 6379)-s<socket>Serversocket (overrides hostandport)-a<password>PasswordforRedisAuth--user<username>UsedtosendACLstyle'AUTH username pass'.Needs-a.-c<clients>Numberofparallelconnections (default 50)-n<requests>Totalnumberofrequests (default 100000)-d<size>DatasizeofSET/GETvalueinbytes (default 3)--dbnum<db>SELECTthespecifieddbnumber (default 0)--threads<num>Enablemulti-threadmode.--clusterEnableclustermode.--enable-trackingSendCLIENTTRACKINGonbeforestartingbenchmark.-k<boolean>1=keepalive0=reconnect (default 1)-r<keyspacelen>UserandomkeysforSET/GET/INCR,randomvaluesforSADD,randommembersandscoresforZADD.Usingthisoptionthebenchmarkwillexpandthestring__rand_int__insideanargumentwitha12digitsnumberinthespecifiedrangefrom0tokeyspacelen-1.Thesubstitutionchangeseverytimeacommandisexecuted.Defaulttestsusethistohitrandomkeysinthespecifiedrange.-P<numreq>Pipeline<numreq>requests.Default1 (no pipeline).-qQuiet.Justshowquery/secvalues--precisionNumberofdecimalplacestodisplayinlatencyoutput (default 0)--csvOutputinCSVformat-lLoop.Runthetestsforever-t<tests>Onlyrunthecommaseparatedlistoftests.Thetestnamesarethesameastheonesproducedasoutput.-IIdlemode.JustopenNidleconnectionsandwait.--tlsEstablishasecureTLSconnection.--sni<host>ServernameindicationforTLS.--cacert<file>CACertificatefiletoverifywith.--cacertdir<dir>DirectorywheretrustedCAcertificatesarestored.Ifneithercacertnorcacertdirarespecified,thedefaultsystem-widetrustedrootcertsconfigurationwillapply.--insecureAllowinsecureTLSconnectionbyskippingcertvalidation.--cert<file>Clientcertificatetoauthenticatewith.--key<file>Privatekeyfiletoauthenticatewith.--tls-ciphers<list>Setsthelistofpreferedciphers (TLSv1.2 andbelow) in order of preference from highest to lowest separated by colon (":").Seetheciphers(1ssl) manpageformoreinformationaboutthesyntaxofthisstring.--tls-ciphersuites<list>Setsthelistofpreferedciphersuites (TLSv1.3) in order of preference from highest to lowest separated by colon (":").Seetheciphers(1ssl) manpageformoreinformationaboutthesyntaxofthisstring,andspecificallyforTLSv1.3ciphersuites.--helpOutputthishelpandexit.--versionOutputversionandexit.
# Set the number of databases. The default database is DB 0, you can select
# a different one on a per-connection basis using SELECT <dbid> where
# dbid is a number between 0 and 'databases'-1
databases 16
Today on Twitter I saw a tweet related to the ability to remember the Redis port number. There is a trick, the Redis port number, 6379, is MERZ at the phone keyboard.
Is it a coincidence that it sounds not random enough? Actually not ;) I selected 6379 because of MERZ, and not the other way around.