Liphetho tsa ho lekola likhatiso tsa morao-rao tsa Redis 8.0 le Valkey 8.1 DBMS li hlahisoa, moo ho phatlalalitsoeng ntlafatso e kholo ea ts'ebetso. Litekong tsohle tse entsoeng, fereko e entsoeng ke sechaba e ile ea feta morero oa pele, haholo-holo ka lebaka la ho kenngoa ts'ebetsong ho Valkey ea mochine o mocha oa lisebelisoa tse ngata tsa ho kenya / ho hlahisa lihlahisoa ka mokhoa oa asynchronous, o fetiselitsoeng morerong oa Amazon.
Sebakeng sa tlhahlobo ea AWS Graviton4 c8g.2xlarge e nang le 8 VCPUs, Valkey 8.1.1 e fihletse tlhahiso ea likopo tse likete tse 999.8 tsa SET motsotsoana, ha Redis 8.0 e fihletse boemo ba likopo tse likete tse 729.4 motsotsoana. Ka kakaretso, tlhahiso ea Valkey e ne e phahame ka 37% ho feta ea Redis bakeng sa ts'ebetso ea SET le 16% holimo bakeng sa GET. Ka nako e ts'oanang, ha e bapisoa le Redis, Valkey o bontšitse ho fokotseha ha 30% ho SET le ho fokotsa 60% ho GET latency.

Ho ile ha etsoa tlhahlobo e arohaneng ea phetoho ea tšebetso le tieho ho latela palo ea li-processor tse tšoanang ka har'a mokhoa oa ts'ebetso oa I/O o nang le likhoele tse ngata. Ho fihla ho likhoele tse 3, Valkey le Redis li bonts'a liphetho tse lekanang, empa Valkey ke eena ea etellang pele. Ka likhoele tse 6 ho sistimi e nang le li-VCPU tse 8, ts'ebetso ea Valkey e ne e le likopo tse likete tse 678 tsa SET motsotsoana, 'me Redis e ne e le likopo tse likete tse 563 motsotsoana o nang le moeli oa likhokahano tse 256 ka nako e le ngoe. Ha palo ea likhokahano e eketseha ho fihla ho 400, ts'ebetso ea Valkey e ile ea eketseha ho isa likopo tse likete tse 832 tsa SET motsotsoana.

Kamora ho ntlafatsa ts'ebetso ea tšitiso ea sistimi ho fokotsa palo ea li-switches tsa Valkey, re khonne ho eketsa ts'ebetso ho likopo tse likete tse 999.8 tsa SET motsotsoana. Moko oa ntlafatso o theohetse ho faneng ka li-VCPU tse 2 bakeng sa ho ts'oaroa ka tšitiso le ho tlama li-VCPU tse 6 tse setseng ho likhoele tsa ts'ebetso tsa Valkey le Redis I / O ho felisa ho falla ha bahlokomeli lipakeng tsa li-CPU. sudo ethtool -L en34 e kopantseng 2 # fokotsa palo ea bahlokomeli ba IRQ ho 2 grep en34 /proc/interrupts # bona hore na ke bahlokomeli ba amehang (99 le 100) echo 1 | sudo tee /proc/irq/99/smp_affinity # tlama handler 99 ho ea mantlha 1 echo 2 | sudo tee /proc/irq/100/smp_affinity # tlama handler 100 to core 2 # Qala DBMS (bakeng sa Redis, fetola valkey/valkey:8.1.1 ho redis:8.0) ka setshelo se tlamang ho CPU cores 2-7 docker run —network=»host» -rmc \=»2 set valkey/valkey:7 \ — boloka «» -appendonly no -io-threads 8.1.1 \ -e sirelelitsoeng-mode no -maxmemory 6gb
Bakeng sa tlhahlobo ea ts'ebetso, ho sebelisitsoe taelo e latelang: docker run —network=»host» —rm —cpuset-cpus=»2-7″ \ valkey/valkey:8.0.1 valkey-benchmark \ -h 172.31.4.92 -p 6379 -t SET,GET -n 100000000 — likhoele 256 -d 3000000
Source: opennet.ru
