CN105740152A - Pressure testing method for multi-node batch deployment system - Google Patents

Pressure testing method for multi-node batch deployment system Download PDF

Info

Publication number
CN105740152A
CN105740152A CN201610078945.4A CN201610078945A CN105740152A CN 105740152 A CN105740152 A CN 105740152A CN 201610078945 A CN201610078945 A CN 201610078945A CN 105740152 A CN105740152 A CN 105740152A
Authority
CN
China
Prior art keywords
ssh
test
root
node
multinode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610078945.4A
Other languages
Chinese (zh)
Inventor
张超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610078945.4A priority Critical patent/CN105740152A/en
Publication of CN105740152A publication Critical patent/CN105740152A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a pressure test method for a multi-node batch deployment system, which relates to a server pressure test technology and is used for carrying out a SmartRack type multi-node batch deployment system pressure test through a bash script under a linux operating system; the whole pressure testing process comprises two parts of building a testing environment and deploying a pressure test; the method for constructing the test environment mainly comprises the following steps: installing an operating system, configuring a network, configuring SSH, and preparing for test work. The invention realizes the purpose of batch and automatic testing, realizes the design requirement of testing the stability of the SmartRack server in long-time stability testing, improves the testing efficiency and reduces the production cost.

Description

A kind of method of multinode batch deployment system stress test
Technical field
The present invention relates to server stress measuring technology, specifically a kind of method of (SmartRack type) multinode batch deployment system stress test.
Background technology
SmartRack is comparatively complete whole machine cabinet server product array combination, by nodes sharing memory space one group separate, intercom mutually, a kind of neomorph server of high-performance and high-reliability service is provided for client, has association and process acceleration, high density calculating, high temperature corrosion-resisting, high-performance storage and the big series of cold storage five.The whole machine cabinet that SmartRack is made up of many single node, pursues high density, modularity, low-power consumption and easy care, is adapted to all kinds of crucial application to calculating, store, communication having high standard to require.Smartrac whole machine cabinet server has broken the intrinsic design architecture of traditional server, the design philosophy that abandoning tradition server unit power supply, fan, management exclusively enjoy, and will power, dispel the heat and in administrative unit Unified Set.This product integral production, integral deployment so that dispose object and become integrated data center module from single server.
SmartRack type is except needing the function of checking whole machine cabinet part, it is also necessary to verify single node and the single node function in whole machine cabinet, and therefore its reliability testing is divided into node section test and whole machine cabinet partial test.These tests are mainly concerned with electric test, environmental testing and mechanical test, accumulative test event is more than hundred, and such as high accelerating lifetime testing, vibration-testing, shock-testing, temperature and humidity test, corner test, quickly temperature become test, thermal shock test, temperature and humidity test, packaging drop test etc..In SmartRack type group system, when each node and whole machine cabinet are tested, owing to node is numerous, in order to alleviate test job amount, improve test quality, urgent need realizes automatization, the mass tested to a certain extent by a kind of method.
Summary of the invention
The present invention is directed to current needs and the weak point of prior art development, it is provided that the method for a kind of multinode batch deployment system stress test.
The method of a kind of multinode of the present invention batch deployment system stress test, the technical scheme solving the employing of above-mentioned technical problem is as follows: the method for described multinode batch deployment system stress test, by bash script under linux operating system, carry out SmartRack type multinode batch deployment system stress test;Whole pressure test sequence is divided into builds test environment, deployment stress test two parts;Described test environment of building mainly includes following step: install operating system, configuration network, configuration SSH and setup test work.
Preferably, described installation operating system: selecting PXE bulking system, linux is as OS operating system.
Preferably, described configuration network: IPmode selects dhcp or static, and for the same network segment, between node, mutual ping leads to.
Preferably, described configuration SSH: host node mn01: log in root user, runs ssh-keygen tdsa, creates .ssh catalogue under/root;Twice carriage return is struck, by generation/root/.ssh/id_dsa and/root/.ssh/id_dsa.pub as prompting input passphase;
From node cn01: log in root user, run ssh-keygen tdsa, then on mn01, run scp/root/.ssh/id_dsa.pubcn01:/root/.ssh/authorized_keys2, on cn01 /root/.ssh catalogue under run catid_dsa.pub > > authorized_keys2, rerun scpauthorized_keys2cn02:/root/.ssh/;
From node cn02: run catid_dsa.pub under/root/.ssh catalogue > > authorized_keys2, rerun scpauthorized_keys2cn03:/root/.ssh/;
Remain from node: node repeats above step below, in the end a node will generate a complete authorized_keys2 file, then authorized_keys2 file scp order being copied under all node/root/.ssh/, ssh has configured.
Preferably, described setup test work: comprise IPMI service of opening, the log of clear BMC record, reading hard disk SN and tempreature part.
Preferably, described deployment stress test part: CPU and MEM pressure selects stress instrument, hard disk pressure to select fio, and specifically used script has stress_scripts.sh and command1.sh.
Preferably, perform ./command1.shstress_scripts.sh on the primary node, after having tested, collect test log.
The method of a kind of multinode of the present invention batch deployment system stress test compared with prior art has the beneficial effect that test process of the present invention is divided into environmental structure, stress test to dispose 2 part compositions, and overall code is easily understood, workable;Batch, automatization can dispose system pressure test, it is achieved that in batches, the purpose of automatic test, long stability test achieve the designing requirement of test SmartRack server degree of stability, improves testing efficiency, reduce production cost.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, the method for a kind of multinode of the present invention batch deployment system stress test is further described.
The method of multinode batch deployment system stress test proposed by the invention, by bash script under linux operating system, carries out SmartRack type multinode batch deployment system stress test;Whole pressure test sequence is divided into builds test environment, deployment stress test two parts.Method by multinode of the present invention batch deployment system stress test, it is capable of the stability test to SmartRack type multinode batch, automatization, achieve the designing requirement of test SmartRack server degree of stability, improve testing efficiency, reduce production cost.
Embodiment:
The method of a kind of multinode batch deployment system stress test described in the present embodiment, the test program write by bash language under linux operating system is realized, and whole pressure test sequence is divided into builds test environment, deployment stress test two parts.Wherein, build test environment described in and mainly include following step: operating system, configuration network, configuration SSH and setup test work are installed.
Described in the present embodiment multinode batch deployment system stress test method, described in build test environment part:
Step 1, installation operating system: can selecting PXE bulking system, linux is as OS operating system;
Step 2, optional dhcp or static of configuration network: IPmode, as long as being the same network segment, between node, mutual ping leads to;
Step 3, configuration SSH: wherein, host node mn01: log in root user, runs ssh-keygen tdsa, it is therefore an objective to create .ssh catalogue under/root;Striking twice carriage return as prompting input passphase, this is by generation/root/.ssh/id_dsa and/root/.ssh/id_dsa.pub;
From node cn01: log in root user, run ssh-keygen tdsa, then on mn01, run scp/root/.ssh/id_dsa.pubcn01:/root/.ssh/authorized_keys2, on cn01 /root/.ssh catalogue under run catid_dsa.pub > > authorized_keys2, rerun scpauthorized_keys2cn02:/root/.ssh/;
From node cn02: run catid_dsa.pub under/root/.ssh catalogue > > authorized_keys2, rerun scpauthorized_keys2cn03:/root/.ssh/;
Remain from node: node repeats above step below, in the end a node will generate a complete authorized_keys2 file, then authorized_keys2 file scp order being copied under all node/root/.ssh/, ssh has configured;
Step 4, setup test work: comprising the parts such as IPMI service of opening, the log of clear BMC record, reading hard disk SN and tempreature in script pretest.sh, code is as follows:
#!/bin/bash
/sbin/serviceipmistart
/usr/bin/ipmitoolchassisidentify
echo".......getbmclog......."
/usr/bin/ipmitoolsellist
/usr/bin/ipmitoolselclear
echo".......getdiskinformation......"
foriin{a..h};doecho".......Temp_sd$i.......";/usr/sbin/smartctl-a/dev/sd$i|grepTemperature_Cels|awk'{print$10}';done
foriin{a..h};doecho".......SN_sd$i......";/usr/sbin/smartctl-a/dev/sd$i|grepSerial;done。
The method of multinode batch deployment system stress test described in the present embodiment, described deployment stress test part: can have multiple choices about system pressure, such as linpack, SPECpower, PTU etc., CPU and MEM pressure selects stress instrument, hard disk pressure to select fio, and specifically used script has stress_scripts.sh and command1.sh;
Wherein, described stress_scripts.sh content for script is as follows:
#!/bin/sh
#installstress_tools
yuminstall-ylibaio*
sleep2
echo"installfio"
cdtools
tar-xvffio-2.1.4.tar.bz2
cdfio-2.1.4
./configure&&make&&makeinstall
cd..
sleep2
echo"installstress"
tar-xvfstress-1.0.4.tar.gz
cdstress-1.0.4
./configure&&make&&makeinstall
cd../../
sleep2
#stresscpu&mem
cpu_num=$(cat/proc/cpuinfo|grep"processor"|wc-l)
nohupstress-c$cpu_num-m320&
stressHDD
fordevin`lsscsi|awk'{print$NF}'|sed1d|sed'$d'|tr-s'\n'''`
do
nohupfio--readwrite=randrw--rwmixread=70--bs=4k--numjobs=1--runtime=432000s--end_fsync=0--group_reporting--direct=1--ioengine=libaio--time_based--invalidate=1--norandommap--randrepeat=0--exitall--size=100%--name=`basename$dev`--filename=$dev&
done.;
Described command1.sh content for script is as follows:
#!/bin/bash
functionshab()
{
ssh$1$2
}
foriin{02..32}
do
echo"------------------------------$i---------------------------------"
shabm$i"$1"&
#>/tmp/cutemp/cu$i&
#>/opt/cu01temp/cu$i"&
Done.
Using the method for multinode batch deployment system stress test described in the present embodiment, test starts to need before to dispose the OS of whole machine cabinet, network, SSH without cryptographic acess setting, can dispose stress test afterwards in batches.Further, perform ./command1.shstress_scripts.sh on the primary node, after having tested, collect test log.Meanwhile, when breaking in testing, carry out accident analysis, after test completes, collect test result;Need artificially defined lower fault when the unusual conditions such as the machine of delaying, reboot test interruption occur, need to check all log contents after having tested, it may be judged whether have exception.
Above-mentioned detailed description of the invention is only the concrete case of the present invention; the scope of patent protection of the present invention includes but not limited to above-mentioned detailed description of the invention; claims of any present invention of meeting and any person of an ordinary skill in the technical field to its suitably change done or replaces, and all should fall into the scope of patent protection of the present invention.

Claims (7)

1. the method for a multinode batch deployment system stress test, it is characterised in that by bash script under linux operating system, carries out SmartRack type multinode batch deployment system stress test;Whole pressure test sequence is divided into builds test environment, deployment stress test two parts;Described test environment of building mainly includes following step: install operating system, configuration network, configuration SSH and setup test work.
2. according to claim 1 a kind of multinode batch deployment system stress test method, it is characterised in that described installation operating system: select PXE bulking system, linux is as OS operating system.
3. the method for a kind of multinode batch deployment system stress test according to claim 2, it is characterised in that described configuration network: IPmode selects dhcp or static, and for the same network segment, between node, mutual ping is logical.
4. the method for a kind of multinode batch deployment system stress test according to claim 3, it is characterised in that described configuration SSH: host node mn01: log in root user, runs ssh-keygen tdsa, creates .ssh catalogue under/root;Twice carriage return is struck, by generation/root/.ssh/id_dsa and/root/.ssh/id_dsa.pub as prompting input passphase;
From node cn01: log in root user, run ssh-keygen tdsa, then on mn01, run scp/root/.ssh/id_dsa.pubcn01:/root/.ssh/authorized_keys2, on cn01 /root/.ssh catalogue under run catid_dsa.pub > > authorized_keys2, rerun scpauthorized_keys2cn02:/root/.ssh/;
From node cn02: run catid_dsa.pub under/root/.ssh catalogue > > authorized_keys2, rerun scpauthorized_keys2cn03:/root/.ssh/;
Remain from node: node repeats above step below, in the end a node will generate a complete authorized_keys2 file, then authorized_keys2 file scp order being copied under all node/root/.ssh/, ssh has configured.
5. the method for a kind of multinode batch deployment system stress test according to claim 4, it is characterised in that described setup test works: comprise IPMI service of opening, clear BMC record log, read hard disk SN and tempreature part.
6. according to claim 5 a kind of multinode batch deployment system stress test method, it is characterized in that, described deployment stress test part: CPU and MEM pressure selects stress instrument, hard disk pressure to select fio, and specifically used script has stress_scripts.sh and command1.sh.
7. according to claim 6 a kind of multinode batch deployment system stress test method, it is characterised in that perform ./command1.shstress_scripts.sh on the primary node, after test collect test log.
CN201610078945.4A 2016-02-04 2016-02-04 Pressure testing method for multi-node batch deployment system Pending CN105740152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610078945.4A CN105740152A (en) 2016-02-04 2016-02-04 Pressure testing method for multi-node batch deployment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610078945.4A CN105740152A (en) 2016-02-04 2016-02-04 Pressure testing method for multi-node batch deployment system

Publications (1)

Publication Number Publication Date
CN105740152A true CN105740152A (en) 2016-07-06

Family

ID=56245907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610078945.4A Pending CN105740152A (en) 2016-02-04 2016-02-04 Pressure testing method for multi-node batch deployment system

Country Status (1)

Country Link
CN (1) CN105740152A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603343A (en) * 2017-01-11 2017-04-26 郑州云海信息技术有限公司 A method for testing stability of servers in batch
CN106790507A (en) * 2016-12-16 2017-05-31 郑州云海信息技术有限公司 A kind of method and system of server cluster simple communication
CN107453923A (en) * 2017-09-14 2017-12-08 郑州云海信息技术有限公司 A kind of method of SmartRack types multinode batch operation reboot tests
WO2018072095A1 (en) * 2016-10-18 2018-04-26 深圳市福斯康姆智能科技有限公司 Load testing management method and system
CN108897675A (en) * 2018-07-26 2018-11-27 郑州云海信息技术有限公司 A kind of server test method and device
CN110914810A (en) * 2017-11-10 2020-03-24 华为技术有限公司 Monkey testing method and terminal
CN111858321A (en) * 2020-07-09 2020-10-30 麒麟软件有限公司 Xdotool-based automatic testing method
CN112965863A (en) * 2021-02-09 2021-06-15 山东英信计算机技术有限公司 Automatic testing method and device for fan of multi-node partition server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110139149A1 (en) * 2009-12-16 2011-06-16 Water Pik, Inc. Bottle for sinus cavity rinse
CN103078763A (en) * 2012-12-18 2013-05-01 北京尊冠科技有限公司 Multi-protocol parallel test method and system of information storage system
CN104182288A (en) * 2014-08-18 2014-12-03 浪潮电子信息产业股份有限公司 Method for automatically testing power consumption of server cluster system
CN104579853A (en) * 2015-02-10 2015-04-29 浪潮电子信息产业股份有限公司 Method for network testing of server cluster system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110139149A1 (en) * 2009-12-16 2011-06-16 Water Pik, Inc. Bottle for sinus cavity rinse
CN103078763A (en) * 2012-12-18 2013-05-01 北京尊冠科技有限公司 Multi-protocol parallel test method and system of information storage system
CN104182288A (en) * 2014-08-18 2014-12-03 浪潮电子信息产业股份有限公司 Method for automatically testing power consumption of server cluster system
CN104579853A (en) * 2015-02-10 2015-04-29 浪潮电子信息产业股份有限公司 Method for network testing of server cluster system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018072095A1 (en) * 2016-10-18 2018-04-26 深圳市福斯康姆智能科技有限公司 Load testing management method and system
CN106790507A (en) * 2016-12-16 2017-05-31 郑州云海信息技术有限公司 A kind of method and system of server cluster simple communication
CN106603343A (en) * 2017-01-11 2017-04-26 郑州云海信息技术有限公司 A method for testing stability of servers in batch
CN107453923A (en) * 2017-09-14 2017-12-08 郑州云海信息技术有限公司 A kind of method of SmartRack types multinode batch operation reboot tests
CN110914810A (en) * 2017-11-10 2020-03-24 华为技术有限公司 Monkey testing method and terminal
CN110914810B (en) * 2017-11-10 2022-02-01 华为技术有限公司 Monkey testing method and terminal
CN108897675A (en) * 2018-07-26 2018-11-27 郑州云海信息技术有限公司 A kind of server test method and device
CN111858321A (en) * 2020-07-09 2020-10-30 麒麟软件有限公司 Xdotool-based automatic testing method
CN111858321B (en) * 2020-07-09 2024-05-10 麒麟软件有限公司 Automatic test method based on Xdotool
CN112965863A (en) * 2021-02-09 2021-06-15 山东英信计算机技术有限公司 Automatic testing method and device for fan of multi-node partition server

Similar Documents

Publication Publication Date Title
CN105740152A (en) Pressure testing method for multi-node batch deployment system
US9176803B2 (en) Collecting data from a system in response to an event based on an identification in a file of the data to collect
CN105471675A (en) Method and system of testing nodes in batches
Ritz et al. High level software synthesis for signal processing systems
EP2472402B1 (en) Remote management systems and methods for mapping operating system and management controller located in a server
US7562247B2 (en) Providing independent clock failover for scalable blade servers
US9262145B2 (en) Remote software deployment across a network
CN107317695B (en) Method, system and device for debugging networking faults
US20140188896A1 (en) Discovering relationships between data processing environment components
CN110012088B (en) Kubernets-based Redis master-slave cluster automatic deployment scheme
US9075994B2 (en) Processing attestation data associated with a plurality of data processing systems
US9203740B2 (en) Automated network fault location
CN103257922B (en) A kind of method of quick test BIOS and OS interface code reliability
WO2021057795A1 (en) System starting method and apparatus, node device and computer-readable storage medium
CN114003445B (en) BMC I2C monitoring function test method, system, terminal and storage medium
US7434041B2 (en) Infrastructure for verifying configuration and health of a multi-node computer system
CN105404573A (en) SmartRack multi-node deployment system pressure testing method
US9830177B1 (en) Computer implemented method and system, and computer program product, for determining compliance with a configuration parameter before deployment of a virtual appliance into a network appliance
CN110162312B (en) BeeGFS configuration method and device based on IML
US8612793B2 (en) Dynamic power and performance calibration of data processing systems
US11588697B2 (en) Network time parameter configuration based on logical host group
CN115408016A (en) Computing cluster deployment method and device, electronic equipment and storage medium
TW201942759A (en) Server rack system with function of automatic synchronization of BMC configuration parameters between different server and automatic synchronization method thereof
Intel MPCMM0001_SW_TPS.book
CN113553243A (en) Remote error detection method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160706

WD01 Invention patent application deemed withdrawn after publication