BumbleBee, chirongwa chakanakisa chekurerutsa kugadzirwa uye kugovera eBPF zvirongwa

solo.io, iyo cloud computing kambani, microservices, sandboxed uye serverless, yakavhura iyo yakavhurika sosi purojekiti "BumbleBee". Iyo purojekiti nyowani inorerutsa ruzivo rwemugadziri kuvaka, kurongedza uye kugovera eBPF maturusi, maererano naSolo.

nyuchi inogadzira otomatiki kodhi yemushandisi boilerplate yekugadzira maturusi eBPF, kambani yakatsanangura. Inopa zvakare Docker-senge chiitiko kurongedza chirongwa cheBPF. Izvi zvinokutendera kuti ubatanidze kune mamwe OCI mufananidzo workflows yekushambadza uye kugovera.

Nezve BumbleBee

nyuchi inoita kuti zvikwanise kurongedza chirongwa cheBPF semufananidzo wemudziyo kubva kuOpen Container Initiative (OCI) iyo inogona kumhanya pane chero system pasina kudzorera kana kushandisa zvimwe zvikamu munzvimbo yemushandisi.

Kudyidzana neiyo eBPF kodhi mu kernel, kusanganisira kugadziridzwa kwedata kubva kueBPF processor, inobatwa neBumbleBee, iyo inotumira kunze data iyi nenzira yemametrics, histograms, kana matanda, anogona kuwanikwa, semuenzaniso, uchishandisa. iyo curl utility. Nzira yakarongwa inobvumira mugadziri kuti aise pfungwa pakunyora eBPF kodhi. uye usatsauswe nekuronga kudyidzana neiyi kodhi kubva munzvimbo yemushandisi, kusangana, uye kurodha mukernel.

Mukuru weSolo.io, Idit Levine anoti:

Iyo kambani yakagadzira BumbleBee kuti igadzire otomatiki iyo boilerplate userspace kodhi inodiwa kuwana eBPF matekinoroji anomhanya padanho rekernel. BumbleBee inosanganisira yekuraira mutsara interface (CLI) iyo inongogadzira mushandisi nzvimbo kodhi yezvirongwa zveBPF nekufumura otomatiki mamepu akadai sematanda, metrics, uye histograms.

Kugadzirisa zvirongwa zveBPF, a Docker-style "nyuchi" inoshandiswa inopihwa, iyo iwe yaunogona kurodha pakarepo mutyairi weBPF yekufarira kubva kune yekunze repository uye inomhanyisa pane yemuno system.

Iyo toolkit inokutendera iwe kuti ugadzire C kodhi dhizaini yeBPF madhiraivha emusoro wakasarudzwa (ikozvino chete faira nemadhiraivha etiweki anobata mafoni kune network stack uye mafaera masisitimu anotsigirwa). Zvichienderana neyakagadzirwa chimiro, mugadziri anogona kukurumidza kuita basa rinomufarira.

Kusiyana neBCC (BPF Compiler Collection), BumbleBee haigadziri zvizere kodhi yemutyairi kune yega yega kernel vhezheni Linux (BCC inoshandisa pa-the-fly kubatanidza neClang pese panoitwa chirongwa cheBPF).

Kugadzirisa nyaya dzekutakurika, Vari kusimukira zvishandiso zvekushandisa CO-RE uye libbpf, iyo inokutendera iwe kuunganidza kodhi kamwe uye shandisa yakakosha universal loader inogadzirisa chirongwa chakaremerwa kune yazvino kernel uye BTF (BPF Type Format) marudzi.

BumbleBee iplugin iri pamusoro pe libbpf uye inopa mamwe marudzi ekududzira otomatiki uye kuratidza data yakaiswa mune yakajairwa RingBuffer uye HashMap eBPF mepu zvimiro.

Kuvaka yekupedzisira eBPF chirongwa uye chengetedza semufananidzo weOCI, ingo mhanyisa iwo murairo:

bee build file_with_code name:version

Uye mhanya murairo

bee run name:version

Nekumisikidza, zviitiko zvakagamuchirwa kubva kumutongi zvinoratidzwa muhwindo rekupedzisira, asi kana zvichidikanwa iwe unogona kuwana iyo data nekufonera iyo curl kana wget zvishandiso panetiweki port inosungwa kune controller.

Vatyairi vanogona kugoverwa kuburikidza neOCI-inopindirana repositori, semuenzaniso, kumhanya mutyairi wekunze kubva kughcr.io (GitHub Container Registry) repository, unogona kumhanya kuraira.

bee run ghcr.io/solo-io/bumblebee/tcpconnect:$(bee version)

Kuisa controller mune repository, murairo unopiwa

bee push

Uye kubatanidza shanduro

bee tag

Kubatsira kukuru kweBPF kungoshanda chete. Mari yese yekugadzirisa kuchengetedza, networking, uye mapuratifomu ekuchengetedza inofanirwa kudzikira sezvo vazhinji vanopa vanotora mukana wezvavanogona. 

Iye zvino, eBPF inoshandiswa zvakanyanya nemakambani ewebhu-scale akadai sevashandi vegore. Facebook iri kuishandisa seyo huru software-inotsanangurwa mutoro inoremedza munzvimbo dzayo dzedhata, nepo Google iri kushandisa yakavhurika sosi Cilium networking software mukati meiyo inotungamirwa Kubernetes inopihwa. 

Kuenderera mberi, zvakadaro, Levine anoti ingori nyaya yenguva kuti eBPF isati yanyanya kugamuchirwa sezvo mamwe masisitimu anoshanda achigonesa kugona.

Finalmente kana iwe uchida kuziva zvakawanda nezvazvo, unogona kutarisa ruzivo 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