Dragonfly, chirongwa chinoti ndicho chinokurumidza kutsiva Redis uye Memcached

Nhau yakaburitswa kuti yekutanga shanduro yatovepo mu-memory data caching system Dragonfly, iyo inopa rutsigiro rweMemcached uye Redis protocol, asi inobvumira mibvunzo kuti imhanye nekuita kwepamusoro uye kushomeka kwendangariro.

Iyo sisitimu inobata data mukiyi / kukosha fomati uye inogona kushandiswa seyakareruka mhinduro yekumhanyisa nzvimbo dzakaremerwa, cache inononoka mibvunzo muDBMS, uye cache yepakati data mu RAM.

Iye BSL yakakurudzirwa nevakabatana navo veMySQL seimwe nzira kune Open Core modhi. Izvo zvakakosha zveBSL ndezvekuti iyo yakawedzera mashandiro kodhi inotanga kuwanikwa kuti igadziriswe, asi kwenguva yakati inogona kushandiswa mahara chete zvichienderana nekuwedzera mamiriro, ayo anoda kutengwa kwerezinesi rekutengesa kunzvenga.

Mamiriro ekuwedzera erezinesi epurojekiti yedragonfly anoda kuti kodhi ishandurwe kuApache 2.0 rezinesi chete muna Chikumi 1, 2027. Kusvika panguva iyoyo, rezinesi rinobvumira kushandiswa kwekodhi chete kuve nechokwadi chekushanda kwesevhisi uye zvigadzirwa, asi. inorambidza kushandiswa kugadzira akabhadharwa makore masevhisi anoita sekuwedzera ku Dragonfly.

Dragonfly inozviti ndiyo inokurumidza kukurumidza kuchengetedzwa ndangariro system, zvinoenderana nevagadziri uye mabhenji. Kuenzaniswa neRedis, Dragonfly yakawana kuwedzera kwekuita kwe25x uye 3x kuderedzwa kwekushandisa ndangariro pasi peyakajairika mitoro yebasa. Sevha imwe chete yeDragonfly inogona kugadzirisa mamiriyoni ezvikumbiro pasekondi imwe neimwe, somuenzaniso, muAmazon EC2 c6gn.16xlarge nharaunda, kubuda kwemamiriyoni 3,8 ekukumbira kwesekondi yakawanikwa.

Mune 5GB bvunzo dzekuchengetedza, Dragonfly yaida 30% yakaderera ndangariro pane Redis. Munguva yekugadzirwa kwezvimedu uchishandisa iyo "bgsave" kuraira, iyo ndangariro kushandiswa kunowedzera, asi panguva dzepamusoro inochengeterwa kanenge katatu zvishoma pane muRedis, uye snapshot kunyora kushanda pachayo kunokurumidza zvakanyanya (mubvunzo, akanyora snapshot mu. Dragonfly mumasekondi makumi matatu, uye Redis - mumasekonzi makumi mana nemaviri).

Kuita kwepamusoro kunowanikwa nekuda kweiyo yakawanda-tambo yekuvaka hapana zvakagovaniswa zviwanikwa ( zvakagovaniswa-hapana ), izvo zvinoreva kuti mutongi akaparadzana uye akazvimiririra ane chidimbu chayo che data akasungirirwa kune yega shinda, achishanda pasina mutexes kana spin-locks. Akareruka eVLL makiyi anoshandiswa kuve nechokwadi cheatomiki kana uchibata nemakiyi akawanda. Kuti uchengetedze ruzivo zvakanaka mundangariro, iyo dashtable chimiro inoshandiswa, iyo inoshandisa mhando yeakakamurwa hashi matafura.

Zvemafunctions aripo mu iyo yekutanga vhezheni inosimbisa rutsigiro rweRESP2 protocol uye 130 Redis mirairo, iyo inoenderana nekushanda kweiyo Redis 2.8 kuburitswa.

Uyewo, Dragonfly inotsigira ese Memcached mirairo kunze kweCAS (simbisa uye gadzira), inopa tsigiro yeasynchronous mashandiro ekugadzira snapshots, inopa fungidziro yekushandiswa kwendangariro, inopa yakavakirwa-mukati Lua 5.4 muturikiri, uye inotsigira yakaoma data mhando sehashi, seti, uye zvinyorwa (ZSET, HSET, LIST, SETS , uye STRING).

Kuparadzana, caching mode inowanikwa, umo data rekare rinotsiviwa ne data nyowani kana memory yemahara yapera. Izvo zvinokwanisika kubatanidza kune data yehupenyu panguva iyo data inoonekwa seyakakosha.

Nzvimbo yekuchengetera inogona kuchinjirwa ku diski kumashure kuti idzore gare gare mushure mekutangwazve. Kuti utore sisitimu, HTTP console (inosungira kuTCP port 6379) uye API yekudzorera Prometheus-inoenderana metrics inopihwa. Mukuburitswa kunotevera, isu tinoronga kuwedzera rutsigiro rweRedis mirairo uye kushandisa kugona kudzokorodza chengetedzo yefailover uye kuyera kuyera.

Chekupedzisira, kana uchida kudzidza zvakawanda nezvazvo, unofanira kuziva kuti Dragonfly kodhi yakanyorwa muC/C++ uye inogoverwa pasi perezinesi reBSL (Business Source License).

Unogona kubvunza nezve purojekiti Mune inotevera chinongedzo.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako