Nothing Special   »   [go: up one dir, main page]

CN109144669A - The method for testing pressure and system of NAS virtual machine system under a kind of MCS system - Google Patents

The method for testing pressure and system of NAS virtual machine system under a kind of MCS system Download PDF

Info

Publication number
CN109144669A
CN109144669A CN201810933929.8A CN201810933929A CN109144669A CN 109144669 A CN109144669 A CN 109144669A CN 201810933929 A CN201810933929 A CN 201810933929A CN 109144669 A CN109144669 A CN 109144669A
Authority
CN
China
Prior art keywords
virtual machine
nas
under
mcs
write
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
CN201810933929.8A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810933929.8A priority Critical patent/CN109144669A/en
Publication of CN109144669A publication Critical patent/CN109144669A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention provides the method for testing pressure and system of NAS virtual machine system under a kind of MCS system, comprising the following steps: S1, the NAS virtual machine for logging in each node under duplication script to/tmp/ catalogue, and assign script corresponding permission;S2, CPU obtain MCS resource, and past/dev/null equipment persistent loop carries out 0 write-in;S3, toward persistently carrying out 0 write-in under src equipment;If S4, virtual machine is restarted during applied voltage test, correlation log is recorded.The pressure test to NAS virtual machine system not only may be implemented in the present invention, the abnormal and output abnormality of NAS void machine in press process can be automatically recorded simultaneously to correlation log, it solves the problems, such as in the prior art for fault location low efficiency in the pressure test of NAS virtual machine system, greatly improve fault location efficiency in test process, the realization of this method makes it possible automatic test NAS void machine stability.

Description

The method for testing pressure and system of NAS virtual machine system under a kind of MCS system
Technical field
The present invention relates to server stress the field of test technology, the pressure of NAS virtual machine system under especially a kind of MCS system Force test method and system.
Background technique
MCS system is the linux that simplifies based on linux kernel, and KVM is a kernel module of Linux system, each KVM virtual machine is all the standard process managed by linux scheduler program.KVM virtual machine is total as individual module and MCS software With operating on physical node, the Map Volume that all nodes provide is connected by ISCSI agreement, while virtual machine accesses extranets Network externally provides NAS service.In entire group system, each node runs a virtual machine, is connected using 2 network interface cards outer Portion's network.
NAS (Network Attached Storage, network attached storage) is literally briefly exactly to be connected to network On, have the device of data storage function, therefore also referred to as " network memory ";It is a kind of exclusive data storage server, It is data-centered, storage equipment is completely separated with server, manages data concentratedly, to discharge bandwidth, reduction always possesses Cost, protection investment etc..NAS is simple by its deployment at present, capacity is big, the advantages such as cheap in server virtualization and cloud in terms of Calculation field has a wide range of applications.
The prior art is empty in the pressure test of NAS virtual machine system, can not often automatically record NAS in press process The exception of machine causes fault location low efficiency in test process.
Summary of the invention
The object of the present invention is to provide the method for testing pressure and system of NAS virtual machine system under a kind of MCS system, it is intended to Solve the problems, such as that, in the prior art for fault location low efficiency in the pressure test of NAS virtual machine system, realization automatically records The abnormal and output abnormality of NAS void machine greatly improves fault location efficiency in test process to correlation log in press process.
To reach above-mentioned technical purpose, the present invention provides a kind of pressure test sides of NAS virtual machine system under MCS system Method, comprising the following steps:
S1, the NAS virtual machine for logging in each node under duplication script to/tmp/ catalogue, and assign script and weigh accordingly Limit;
S2, CPU obtain MCS resource, and past/dev/null equipment persistent loop carries out 0 write-in, is continuously increased process number;
S3, toward persistently carrying out 0 write-in under src equipment;
If S4, virtual machine is restarted during applied voltage test, correlation log is recorded.
Preferably, the increase process number is until the same with physical id number.
Preferably, the operation of 0 write-in is carried out under the equipment toward src persistently as Infinite Cyclic operation.
Preferably, the method also includes:
Run Script for 24 hours after, check inside log whether record empty machine abnormal restarting information.
The present invention also provides a kind of pressure testing system of NAS virtual machine system under MCS system, the system comprises:
Script initial module under duplication script to/tmp/ catalogue, and is assigned for logging in the NAS virtual machine of each node The corresponding permission of script;
CPU pressure test module obtains MCS resource for CPU, and past/dev/null equipment persistent loop carries out 0 write-in, It is continuously increased process number;
Memory pressure test module, for toward persistently carrying out 0 write-in under src equipment;
Logger module, if for during applied voltage test virtual machine restart, record correlation log.
Preferably, the increase process number is until the same with physical id number.
Preferably, the operation of 0 write-in is carried out under the equipment toward src persistently as Infinite Cyclic operation.
Preferably, the system also includes:
Exception information checks module, after being used for Run Script for 24 hours, checks inside log whether record empty machine abnormal restarting letter Breath.
The effect provided in summary of the invention is only the effect of embodiment, rather than invents all whole effects, above-mentioned A technical solution in technical solution have the following advantages that or the utility model has the advantages that
Compared with prior art, the present invention carries out automation pressure test by writing shell script in script, benefit With CPU obtain MCS resource, it is past/dev/null equipment persistent loop carry out 0 write-in, toward src equipment under persistently carry out 0 write-in, and Record relevant abnormalities restart log, the pressure test to NAS virtual machine system not only may be implemented, while can automatically record pressure The abnormal and output abnormality of NAS void machine solves in the prior art to correlation log for the pressure of NAS virtual machine system in the process In power test the problem of fault location low efficiency, fault location efficiency in test process is greatly improved, the realization of this method makes certainly Dynamicization test NAS void machine stability is possibly realized.
Detailed description of the invention
Fig. 1 is the method for testing pressure stream of NAS virtual machine system under a kind of MCS system provided in the embodiment of the present invention Cheng Tu;
Fig. 2 is the pressure testing system knot of NAS virtual machine system under a kind of MCS system provided in the embodiment of the present invention Structure block diagram.
Specific embodiment
In order to clearly illustrate the technical characterstic of this programme, below by specific embodiment, and its attached drawing is combined, to this Invention is described in detail.Following disclosure provides many different embodiments or example is used to realize different knots of the invention Structure.In order to simplify disclosure of the invention, hereinafter the component of specific examples and setting are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relationship between various embodiments and/or setting is discussed.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
The pressure for being provided for the embodiments of the invention NAS virtual machine system under a kind of MCS system with reference to the accompanying drawing is surveyed Method for testing is described in detail with system.
As shown in Figure 1, the embodiment of the invention discloses a kind of method for testing pressure of NAS virtual machine system under MCS system, The following steps are included:
S1, the NAS virtual machine for logging in each node under duplication script to/tmp/ catalogue, and assign script and weigh accordingly Limit;
S2, CPU obtain MCS resource, and past/dev/null equipment persistent loop carries out 0 write-in;
S3, toward persistently carrying out 0 write-in under src equipment;
If S4, virtual machine is restarted during applied voltage test, correlation log is recorded.
The embodiment of the present invention recycles script by shell and carries out CPU and memory progress pressure test to NAS virtual machine, and Record the abnormal restarting information in pressure test sequence.
It logs in the NAS virtual machine of each node, under duplication yali.sh script to/tmp/ catalogue, and assigns yali.sh foot This corresponding permission executes yali.sh script in each NAS void machine node later, after operation for 24 hours, checks/root/ Empty machine abnormal restarting information whether is recorded inside bootlog.log.
The yali.sh script concrete operations are as follows:
CPU obtain MCS resource, and using dd order it is past/dev/null equipment persistent loop carry out 0 write-in, be continuously increased Process number is until the same with physical id number:
for i in`seq 1$(cat/proc/cpuinfo|grep"physical id"|wc-l)`;Do dd if=/ Dev/zero of=/dev/nul l&done
Using dd order toward persistently carrying out 0 write-in under src equipment, and make its Infinite Cyclic:
If virtual machine is restarted during applied voltage test, records correlation log and be redirected to/root/ Bootlog.log file:
cat<<"EOF">/root/bootlog.sh
#!/bin/bash
echo"Boot at$(date)">>/root/bootlog.log
EOF
chmod+x/root/bootlog.sh
echo"/root/bootlog.sh">>/etc/rc.d/rc.local
By abnormal restarting information preservation to/root/bootlog.log file, tester is facilitated to check.In delay 10s Afterwards, it checks whether virtual machine starts, if do not started, continues to postpone 10s;If virtual machine has been started up, continue to hold Row pressure test script.
The embodiment of the present invention is carried out automation pressure test in script, is obtained using CPU by writing shell script MCS resource, past/dev/nul l equipment persistent loop carry out 0 write-in, toward src equipment under persistently carry out 0 write-in, and record correlation Abnormal restarting log not only may be implemented the pressure test to NAS virtual machine system, while can automatically record in press process The abnormal and output abnormality of NAS void machine solves the pressure test in the prior art for NAS virtual machine system to correlation log The problem of middle fault location low efficiency, fault location efficiency in test process is greatly improved, the realization of this method surveys automation Examination NAS void machine stability is possibly realized.
As shown in Fig. 2, the embodiment of the invention also discloses a kind of pressure test systems of NAS virtual machine system under MCS system System, the system comprises:
Script initial module under duplication script to/tmp/ catalogue, and is assigned for logging in the NAS virtual machine of each node The corresponding permission of script;
CPU pressure test module obtains MCS resource for CPU, and past/dev/nul l equipment persistent loop carries out 0 write-in, It is continuously increased process number;The increase process number is until the same with physical id number;
Memory pressure test module, for toward persistently carrying out 0 write-in under src equipment;It is persistently carried out under the equipment toward src The operation of 0 write-in is Infinite Cyclic operation;
Logger module, if for during applied voltage test virtual machine restart, record correlation log.
The system also includes:
Exception information checks module, after being used for Run Script for 24 hours, checks inside log whether record empty machine abnormal restarting letter Breath.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (8)

1. the method for testing pressure of NAS virtual machine system under a kind of MCS system, which comprises the following steps:
S1, the NAS virtual machine for logging in each node under duplication script to/tmp/ catalogue, and assign script corresponding permission;
S2, CPU obtain MCS resource, and past/dev/null equipment persistent loop carries out 0 write-in, is continuously increased process number;
S3, toward persistently carrying out 0 write-in under src equipment;
If S4, virtual machine is restarted during applied voltage test, correlation log is recorded.
2. the method for testing pressure of NAS virtual machine system under a kind of MCS system according to claim 1, which is characterized in that The increase process number is until the same with physical id number.
3. the method for testing pressure of NAS virtual machine system under a kind of MCS system according to claim 1, which is characterized in that The operation of 0 write-in is carried out under the equipment toward src persistently as Infinite Cyclic operation.
4. the method for testing pressure of NAS virtual machine system under a kind of MCS system according to claim 1 to 3, It is characterized in that, the method also includes:
Run Script for 24 hours after, check inside log whether record empty machine abnormal restarting information.
5. the pressure testing system of NAS virtual machine system under a kind of MCS system, which is characterized in that the system comprises:
Script initial module under duplication script to/tmp/ catalogue, and assigns script for logging in the NAS virtual machine of each node Corresponding permission;
CPU pressure test module obtains MCS resource for CPU, and past/dev/null equipment persistent loop carries out 0 write-in, constantly Increase process number;
Memory pressure test module, for toward persistently carrying out 0 write-in under src equipment;
Logger module, if for during applied voltage test virtual machine restart, record correlation log.
6. the pressure testing system of NAS virtual machine system under a kind of MCS system according to claim 5, which is characterized in that The increase process number is until the same with physical id number.
7. the pressure testing system of NAS virtual machine system under a kind of MCS system according to claim 6, which is characterized in that The operation of 0 write-in is carried out under the equipment toward src persistently as Infinite Cyclic operation.
8. the pressure testing system of NAS virtual machine system under a kind of MCS system according to claim 5-7 any one, It is characterized in that, the system also includes:
Exception information checks module, after being used for Run Script for 24 hours, checks inside log whether record empty machine abnormal restarting information.
CN201810933929.8A 2018-08-15 2018-08-15 The method for testing pressure and system of NAS virtual machine system under a kind of MCS system Pending CN109144669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810933929.8A CN109144669A (en) 2018-08-15 2018-08-15 The method for testing pressure and system of NAS virtual machine system under a kind of MCS system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810933929.8A CN109144669A (en) 2018-08-15 2018-08-15 The method for testing pressure and system of NAS virtual machine system under a kind of MCS system

Publications (1)

Publication Number Publication Date
CN109144669A true CN109144669A (en) 2019-01-04

Family

ID=64789660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810933929.8A Pending CN109144669A (en) 2018-08-15 2018-08-15 The method for testing pressure and system of NAS virtual machine system under a kind of MCS system

Country Status (1)

Country Link
CN (1) CN109144669A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557449A (en) * 2019-08-30 2019-12-10 苏州浪潮智能科技有限公司 NAS distributed storage array and VMware mutual authentication test system, method and equipment
CN111240898A (en) * 2020-01-09 2020-06-05 中瓴智行(成都)科技有限公司 Hypervisor-based black box implementation method and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855188A (en) * 2012-08-03 2013-01-02 福州瑞芯微电子有限公司 Android based system pressure testing method
CN103000228A (en) * 2011-09-08 2013-03-27 上海宝信软件股份有限公司 Storage device test method and system
CN103984627A (en) * 2014-05-15 2014-08-13 浪潮电子信息产业股份有限公司 Test method for memory pressure of Linux server
CN103984634A (en) * 2014-06-05 2014-08-13 浪潮电子信息产业股份有限公司 Memory unsteady state pressure test method of LINUX server
US20150067316A1 (en) * 2013-08-29 2015-03-05 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd Electronic device and testing method
CN105700982A (en) * 2016-01-19 2016-06-22 浪潮电子信息产业股份有限公司 Memory pressure and stability testing method based on high-performance linpack
CN105786668A (en) * 2016-04-01 2016-07-20 浪潮电子信息产业股份有限公司 Memory error detection method based on Redhat system
CN105786669A (en) * 2016-04-25 2016-07-20 浪潮电子信息产业股份有限公司 Method for testing stability of Rack server
CN107038098A (en) * 2017-04-28 2017-08-11 郑州云海信息技术有限公司 It is a kind of to pass through the method that network carries out server memory diagnosis in batches
CN107948019A (en) * 2017-12-21 2018-04-20 郑州云海信息技术有限公司 A kind of method of automatic test network interface card pressure under linux system
CN107977296A (en) * 2017-11-20 2018-05-01 郑州云海信息技术有限公司 A kind of method, apparatus and medium of NAS storage system performance test

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103000228A (en) * 2011-09-08 2013-03-27 上海宝信软件股份有限公司 Storage device test method and system
CN102855188A (en) * 2012-08-03 2013-01-02 福州瑞芯微电子有限公司 Android based system pressure testing method
US20150067316A1 (en) * 2013-08-29 2015-03-05 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd Electronic device and testing method
CN104424068A (en) * 2013-08-29 2015-03-18 鸿富锦精密工业(深圳)有限公司 System and method for pressure testing of firmware update
CN103984627A (en) * 2014-05-15 2014-08-13 浪潮电子信息产业股份有限公司 Test method for memory pressure of Linux server
CN103984634A (en) * 2014-06-05 2014-08-13 浪潮电子信息产业股份有限公司 Memory unsteady state pressure test method of LINUX server
CN105700982A (en) * 2016-01-19 2016-06-22 浪潮电子信息产业股份有限公司 Memory pressure and stability testing method based on high-performance linpack
CN105786668A (en) * 2016-04-01 2016-07-20 浪潮电子信息产业股份有限公司 Memory error detection method based on Redhat system
CN105786669A (en) * 2016-04-25 2016-07-20 浪潮电子信息产业股份有限公司 Method for testing stability of Rack server
CN107038098A (en) * 2017-04-28 2017-08-11 郑州云海信息技术有限公司 It is a kind of to pass through the method that network carries out server memory diagnosis in batches
CN107977296A (en) * 2017-11-20 2018-05-01 郑州云海信息技术有限公司 A kind of method, apparatus and medium of NAS storage system performance test
CN107948019A (en) * 2017-12-21 2018-04-20 郑州云海信息技术有限公司 A kind of method of automatic test network interface card pressure under linux system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
倪金超: "基于SCF平台的Web压力测试工具的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557449A (en) * 2019-08-30 2019-12-10 苏州浪潮智能科技有限公司 NAS distributed storage array and VMware mutual authentication test system, method and equipment
CN111240898A (en) * 2020-01-09 2020-06-05 中瓴智行(成都)科技有限公司 Hypervisor-based black box implementation method and system
CN111240898B (en) * 2020-01-09 2023-08-15 中瓴智行(成都)科技有限公司 Method and system for realizing black box based on Hypervisor

Similar Documents

Publication Publication Date Title
US10872034B2 (en) Method, device and computer program product for executing test cases
Gunawi et al. Why does the cloud stop computing? lessons from hundreds of service outages
US10592372B2 (en) Confidence-controlled sampling methods and systems to analyze high-frequency monitoring data and event messages of a distributed computing system
Almeida et al. ChainReaction: a causal+ consistent datastore based on chain replication
US8769340B2 (en) Automatically allocating clients for software program testing
US11294758B2 (en) Automated methods and systems to classify and troubleshoot problems in information technology systems and services
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
US10289539B1 (en) Performance testing in a software deployment pipeline
US9697068B2 (en) Building an intelligent, scalable system dump facility
CN105068920B (en) Shell-based method for testing stability of rack asset information
CN108521339A (en) A kind of reaction type node failure processing method and system based on cluster daily record
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
CN104639402A (en) Method for server cluster system network test
US10013335B2 (en) Data flow analysis in processor trace logs using compiler-type information method and apparatus
CN110764980A (en) Log processing method and device
CN109614259A (en) A kind of system and method for server PCIe device positioning failure reason
CN109086176A (en) A kind of SSD steady-state method of test, device, equipment and storage medium based on FIO
US10635407B2 (en) Identification of differences between scripts for testing applications
CN109144669A (en) The method for testing pressure and system of NAS virtual machine system under a kind of MCS system
CN106681867A (en) Testing method and device
US10037218B1 (en) Scalable deep testing system for websites
CN109918221B (en) Hard disk error reporting analysis method, system, terminal and storage medium
CN110750445A (en) Method, system and equipment for testing high-availability function of YARN component
CN109257230A (en) A kind of Log Administration System and method of semiconductor memory burn-in test
CN109324933A (en) A kind of AEP memory reboot test method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190104