Mokhoa oa ho lekola ts'ebetso ea seva: khetho ea li-benchmark tse 'maloa tsa mohloli o bulehileng

Re tsoela pele letoto la lisebelisoa tsa rona tse etselitsoeng ho hlahloba ts'ebetso ea seva. Kajeno re tla bua ka li-benchmark tse 'maloa tse lekiloeng ka nako tse ntseng li tšehetsoa le ho ntlafatsoa - NetPerf, HardInfo le ApacheBench.

Mokhoa oa ho lekola ts'ebetso ea seva: khetho ea li-benchmark tse 'maloa tsa mohloli o bulehileng
--Ото - Peter Balcerzak - CC BY-SA

NetPerf

Sena ke sesebelisoa sa ho lekola tšebetso ea marang-rang. E entsoe ke baenjiniere ba Hewlett-Packard. Sesebelisoa включает lifaele tse peli tse sebetsang: netserver le netclient. Ho etsa tlhahlobo, li hloka ho tsamaisoa ka mechini e fapaneng. Ka ho sa feleng, netperf e sebelisa port 12865, empa sena se ka fetoloa ho sebelisoa -p folakha. Sesebelisoa se sebetsa le TCP le UDP holim'a BSD Sockets, DLPI, Unix Domain Sockets le IPv6.

Kajeno netperf e kenyelelitsoe ho lisebelisoa tsa benchmarking flent. E boetse e sebelisoa ke lik'hamphani tse ngata haholo tsa IT, mohlala Red Hat. Sena ke seo tlhaloso ea ts'ebeletso ea netperf e shebahalang ka eona ho o mong oa mehlala ea ho lekola ts'ebetso ea OpenShift:

apiVersion: v1
kind: Service
metadata:
  labels:
    app-name: netperf
  name: netperf
  namespace: your_project
spec:
  ports:
  - port: 12865
    protocol: TCP
    targetPort: 12865
  selector:
    app-name: netperf
  sessionAffinity: ClientIP
  type: ClusterIP

Sebaka sa polokelo ea molao se re netperf e ajoa tlas'a laesense e khethehileng ea Hewlett-Packard. Leha ho le joalo, sengoli sa ts'ebeliso, Rick Jones, o re e entsoe ka litloaelo tse ntle ka ho fetisisa tsa mohloli o bulehileng. Hape rea hlokomela hore lintlafatso tsa morao-rao tsa netperf li fetohile tse sa tloaelehang. Sena se ka bakoa ke kholo ea sehlahisoa.

netperf e na le li-analogues - mohlala, iperf2 и iperf3. Li boetse li u lumella ho lekola tšebetso ea netweke ea hau. Ntlafatso ea iperf3 e qalile kamora hore polokelo ea iperf2 e senyehe. Phetolelo e ncha e ngotsoe ho tloha qalong 'me ha e lumellane le ts'ebetsong e fetileng, le hoja e na le karolo ea khoutu ea eona. Hoa thahasellisa hore ka mor'a ho lokolloa ha iperf3, mosebetsi oa iperf2 o ile oa qala ho pheha hape. Ka lebaka leo, lisebelisoa tse peli na le e ts'oanang, empa ka nako e ts'oanang ts'ebetso e fapaneng. Mohlala, iperf2 e likhoele tse ngata, mme iperf3 e mesebetsi ka khoele e le 'ngoe feela.

lintlha tse thata

Ena ke sesebelisoa sa ho bokella tlhahisoleseling mabapi le Hardware le sistimi e sebetsang. E bonts'a lintlha tse mabapi le ts'ebetso ea lisebelisoa ho: PCI, ISA PnP, USB, IDE, SCSI, hammoho le likou tsa serial le tse tšoanang. Empa e ka sebelisoa e le sesebelisoa sa benchmark le ho beha leihlo.

HardInfo e fana ka liteko tse 'maloa. Mohlala, CPU Blowfish e lekola ts'ebetso ea processor e sebelisa li-algorithms tsa cryptographic bakeng sa encryption ea block symmetric. Ja CPU N-Queens - tlhahlobo ho tsoa ho li-combinator. Sistimi e rarolla bothata ba chess ea ho beha N queens letlapeng la lisekoere tsa N x N. O hlophisa likotoana e le hore ho se be le ea mong oa tsona ea ka hlaselang ba bang. Hape re lokela ho elelloa hape ke FPU FFT - teko ea lipalo tse potlakileng tsa phetoho e hlakileng ea Fourier le FPU Raytracing - lipalo tsa ray tracing ha ho etsoa setšoantšo sa 3D.

Sephetho litekong tse ngata se fanoa ka metsotsoana, 'me, ho ea ka seo, ha se le nyane, se molemo. Litlaleho tsohle li hlahisoa ka HTML le liforomo tsa txt.

Qalong, lisebelisoa li ile tsa ntlafatsoa e le karolo ea morero BerliOS. E ne e kenyelletsa sethala sa ho amohela lits'ebetso tsa mohloli o bulehileng (joalo ka SourceForge) le li-database tse 'maloa bakeng sa litokomane le li-profiles tsa bahlahisi ba mohloli o bulehileng. BerliOS e ile ea koaloa ka 2014 ka lebaka la chelete e sa lekaneng. Kajeno HardInfo e ntse e ntlafatsoa ka boiteko ba ba chesehang sebakeng se arohaneng sa polokelo ho GitHub.

Ka kopo hlokomela hore ka linako tse ling sistimi e kopana le liphoso. Hoa tsebahala hore nako le nako ho etsahala phoso ea ho arola, mathata le pontšo ea lisebelisoa tsa USB le tse 'maloa tse ling.

ApacheBench

Sesebelisoa sa ho lekola li-server tsa HTTP. ApacheBench (AB) e ne e etselitsoe ho benchmark Apache, empa e ka sebetsa ho seva efe kapa efe. Sesebelisoa se tla se kentsoe pele ho lipehelo tse ngata tsa Linux.

Mokhoa oa ho lekola ts'ebetso ea seva: khetho ea li-benchmark tse 'maloa tsa mohloli o bulehileng
--Ото - Victor Freitas — Unsplash

Sesebelisoa se hlasela li-server ka palo e kholo ea likopo. Ho matha o hloka ho kenya taelo e latelang:

ab -n 100 -c 10 http://www.example.com/

E tla romela likopo tse lekholo tsa GET (boholo ba tsona tse leshome li tla romelloa ka nako e le 'ngoe) mohloling oa teko. Ha ho hlahisoa, sistimi e tla bonts'a nako e tloaelehileng ea ts'ebetso ea kopo, kakaretso ea data e fetisitsoeng, tlhahiso le palo ea liphoso.

Kajeno, sechaba se seholo se bokane ho pota-pota lisebelisoa. Kamehla hlaha Inthaneteng litataiso tsa morao-rao mabapi le mokhoa oa ho qala le ho sebelisa ApacheBench.

Hlokomela hore AB e na le analogue - Apache jMeter, empa ka menyetla e meholo. Mohlala, e u lumella ho hlahisa likopo ho tsoa ho likhomphutha tse ngata ha u ntse u laola ts'ebetso ho tsoa ho e 'ngoe ea tsona. Lenaneo le boetse le sebelisa mekhoa ea ho lumella basebelisi ba sebele le ho tšehetsa linako tsa basebelisi. Sesebelisoa sena se sebelisoa ke lik'hamphani tse ngata tsa IT, ho kenyelletsa bafani ba maru, mohlala. Litlhahlobo.

Mokhoa oa ho lekola ts'ebetso ea seva: khetho ea li-benchmark tse 'maloa tsa mohloli o bulehilengRona ho 1cloud re fana ka ts'ebeletso "Leru la poraefete". Ena ke khiriso ea lisebelisoa tsa mantlha tse nang le bokhoni ba ho etsa likepe tsa likepe kapele li-server tsa sebele.
Mokhoa oa ho lekola ts'ebetso ea seva: khetho ea li-benchmark tse 'maloa tsa mohloli o bulehilengLeru la rona e hahiloeng holim'a tšepe Cisco, Dell, NetApp. Thepa e fumaneha litsing tse 'maloa tsa data: DataSpace (Moscow), SDN / Xelent (St. Petersburg), Ahost (Alma-Ata).

Source: www.habr.com

Eketsa ka tlhaloso