CN106598734B - Openstack virtual resource topology display method based on service view - Google Patents
Openstack virtual resource topology display method based on service view Download PDFInfo
- Publication number
- CN106598734B CN106598734B CN201611140277.XA CN201611140277A CN106598734B CN 106598734 B CN106598734 B CN 106598734B CN 201611140277 A CN201611140277 A CN 201611140277A CN 106598734 B CN106598734 B CN 106598734B
- Authority
- CN
- China
- Prior art keywords
- resource
- virtual
- tag
- virtual resource
- business
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
- G06F9/5077—Logical partitioning of resources; Management or configuration of virtualized resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/22—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种基于业务视图的Openstack虚拟资源拓扑显示方法,涉及Openstack虚拟资源显示领域。该方法的步骤为:根据需要展示的所有业务生成Tag表;根据Tag表中每项业务对应的所有虚拟资源,生成Tag_Resource表;根据Tag_Resource表中每条虚拟资源在Openstack中的ID,生成Resource表;通过现有的虚拟资源拓扑图,获取所有虚拟资源;当用户选取到Tag表存在的业务时,在Tag_Resource表中确定该业务对应的所有虚拟资源,根据Resource表中获取的虚拟资源ID得到对应的虚拟资源后刷新拓扑图。本发明能够将业务和虚拟资源对应的关系快速而直观的显示,进而便于业务人员对业务资源进行管理。
The invention discloses an Openstack virtual resource topology display method based on a business view, and relates to the field of Openstack virtual resource display. The steps of the method are: generating a Tag table according to all services to be displayed; generating a Tag_Resource table according to all virtual resources corresponding to each business in the Tag table; generating a Resource table according to the ID of each virtual resource in the Tag_Resource table in Openstack ; Obtain all virtual resources through the existing virtual resource topology map; When the user selects the business that exists in the Tag table, determine all the virtual resources corresponding to the business in the Tag_Resource table, and obtain the corresponding virtual resource ID according to the virtual resource ID obtained in the Resource table. Refresh the topology map after the virtual resource is displayed. The invention can quickly and intuitively display the corresponding relationship between the business and the virtual resources, thereby facilitating the business personnel to manage the business resources.
Description
技术领域technical field
本发明涉及Openstack虚拟资源显示领域,具体涉及一种基于业务视图的Openstack虚拟资源拓扑显示方法。The invention relates to the field of Openstack virtual resource display, in particular to a service view-based Openstack virtual resource topology display method.
背景技术Background technique
随着云技术方案的成熟,基于openstack的云平台也越来越广泛应用到各种领域,大量的业务系统被移植到云平台提供服务。但是,业务人员观看现有的虚拟网络、虚拟机等虚拟资源的拓扑图时,无法快速而直观的得出业务和虚拟资源对应的关系,进而不便于业务人员对业务资源进行管理。With the maturity of cloud technology solutions, cloud platforms based on openstack are more and more widely used in various fields, and a large number of business systems have been transplanted to cloud platforms to provide services. However, when business personnel view the existing topology diagrams of virtual resources such as virtual networks and virtual machines, they cannot quickly and intuitively obtain the corresponding relationship between services and virtual resources, which makes it inconvenient for business personnel to manage business resources.
发明内容SUMMARY OF THE INVENTION
针对现有技术中存在的缺陷,本发明解决的技术问题为:将业务和虚拟资源对应的关系快速而直观的显示,进而便于业务人员对业务资源进行管理。Aiming at the defects existing in the prior art, the technical problem solved by the present invention is to display the relationship corresponding to the business and the virtual resource quickly and intuitively, thereby facilitating the business personnel to manage the business resource.
为达到以上目的,本发明提供的基于业务视图的Openstack虚拟资源拓扑显示方法,方法包括以下步骤:In order to achieve the above purpose, the Openstack virtual resource topology display method based on the business view provided by the present invention, the method comprises the following steps:
S1:根据需要展示的所有业务生成Tag表;根据Tag表中每项业务对应的所有虚拟资源,生成Tag_Resource表;根据Tag_Resource表中每条虚拟资源的类型、以及每条虚拟资源在Openstack中的ID,生成Resource表,转到S2;S1: Generate a Tag table according to all services to be displayed; generate a Tag_Resource table according to all virtual resources corresponding to each service in the Tag table; according to the type of each virtual resource in the Tag_Resource table, and the ID of each virtual resource in Openstack , generate the Resource table, go to S2;
S2:通过现有的虚拟资源拓扑图,获取所有虚拟资源,转到S3;S2: Obtain all virtual resources through the existing virtual resource topology map, and go to S3;
S3:当用户选取到需要展示的业务时,若当前业务存在于Tag表中,在Tag_Resource表中确定当前业务对应的所有需要展示的虚拟资源,在Resource表中获取所有需要展示的虚拟资源ID和类型,根据获取的虚拟资源ID得到对应的虚拟资源,转到S4;S3: When the user selects the service that needs to be displayed, if the current service exists in the Tag table, determine all the virtual resources that need to be displayed corresponding to the current service in the Tag_Resource table, and obtain all the virtual resources ID and ID of the virtual resource to be displayed in the Resource table. type, obtain the corresponding virtual resource according to the obtained virtual resource ID, and go to S4;
S4:根据S3中选取的当前业务和得到的所有虚拟资源,刷新S2中的虚拟资源拓扑图。S4: Refresh the virtual resource topology diagram in S2 according to the current service selected in S3 and all the obtained virtual resources.
在上述技术方案的基础上,S1中所述Tag表、Tag_Resource表和Resource表均预先生成。Based on the above technical solution, the Tag table, Tag_Resource table and Resource table described in S1 are all pre-generated.
在上述技术方案的基础上,S3的流程通过Python语言和Django框架执行。Based on the above technical solutions, the S3 process is executed through the Python language and the Django framework.
在上述技术方案的基础上,S4的流程通过AngularJS和HTML5执行。On the basis of the above technical solutions, the S4 process is executed through AngularJS and HTML5.
与现有技术相比,本发明的优点在于:Compared with the prior art, the advantages of the present invention are:
本发明在显示虚拟资源的拓扑图时,能够根据选定的业务,在预先生成的3张业务虚拟资源表(Tag表、Tag_Resource表和Resource表)中确定选定业务对应的所有资源,继而根据确定的资源重新刷新拓扑图。与现有技术中无法快速而直观的得出业务和虚拟资源对应的关系相比,本发明刷新后的拓扑图直观的展现了业务对应的所有虚拟资源。因此,本发明能够快速而直观的显示业务和虚拟资源的对应关系,便于业务人员对业务资源进行管理。When displaying the topology diagram of virtual resources, the present invention can determine all the resources corresponding to the selected services in the three pre-generated service virtual resource tables (Tag table, Tag_Resource table and Resource table) according to the selected services, and then according to The identified resource refreshes the topology map. Compared with the prior art, which cannot quickly and intuitively obtain the corresponding relationship between services and virtual resources, the refreshed topology diagram of the present invention intuitively displays all virtual resources corresponding to services. Therefore, the present invention can quickly and intuitively display the corresponding relationship between the business and the virtual resources, which is convenient for business personnel to manage the business resources.
附图说明Description of drawings
图1为本发明实施例中基于业务视图的Openstack虚拟资源拓扑显示方法的流程图。FIG. 1 is a flowchart of a method for displaying a topology of Openstack virtual resources based on a service view in an embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图及实施例对本发明作进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.
参见图1所示,本发明实施例中的基于业务视图的Openstack虚拟资源拓扑显示方法,包括以下步骤:Referring to FIG. 1 , the method for displaying Openstack virtual resource topology based on a business view in an embodiment of the present invention includes the following steps:
S1:根据需要展示的所有业务预先生成Tag表(业务标签表),根据Tag表中每项业务对应的所有虚拟资源,预先生成Tag_Resource表(业务与虚拟资源关联表);根据Tag_Resource表中每条虚拟资源的类型、以及每条虚拟资源在Openstack中的ID,预先生成Resource表(虚拟资源定位表),转到S2。S1: Pre-generate the Tag table (service tag table) according to all the services to be displayed, and pre-generate the Tag_Resource table (service and virtual resource association table) according to all the virtual resources corresponding to each service in the Tag table; according to each entry in the Tag_Resource table The type of virtual resource, and the ID of each virtual resource in Openstack, generate a Resource table (virtual resource location table) in advance, and go to S2.
S2:通过现有的虚拟资源拓扑图,获取所有虚拟资源,转到S3。S2: Obtain all virtual resources through the existing virtual resource topology map, and go to S3.
S3:当用户选取到需要展示的业务时,若当前业务存在于Tag表中,通过Python语言(一种脚本解释语言)和Django框架(一种基于Python的web服务框架),在Tag_Resource表中确定当前业务对应的所有需要展示的虚拟资源,在Resource表中获取所有需要展示的虚拟资源ID和类型,根据获取的虚拟资源ID得到对应的虚拟资源,转到S4。S3: When the user selects the business to be displayed, if the current business exists in the Tag table, use the Python language (a script interpretation language) and Django framework (a Python-based web service framework) to determine in the Tag_Resource table For all virtual resources that need to be displayed corresponding to the current business, the IDs and types of all virtual resources to be displayed are obtained in the Resource table, and the corresponding virtual resources are obtained according to the obtained virtual resource IDs, and the process goes to S4.
S4:通过AngularJS(一种基于Javascript语言的Web前端页面处理框架)和HTML5(HTML5画布接口,用于在支持HTML5的浏览器中绘制图形),根据S3中选取的当前业务和得到的所有虚拟资源,刷新虚拟资源拓扑图。S4: Through AngularJS (a web front-end page processing framework based on Javascript language) and HTML5 (HTML5 canvas interface, used to draw graphics in browsers that support HTML5), according to the current business selected in S3 and all the virtual resources obtained to refresh the virtual resource topology.
进一步,本发明不局限于上述实施方式,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围之内。本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。Further, the present invention is not limited to the above-mentioned embodiments. For those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and modifications can also be made, and these improvements and modifications are also regarded as the present invention. within the scope of protection. Contents not described in detail in this specification belong to the prior art known to those skilled in the art.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611140277.XA CN106598734B (en) | 2016-12-12 | 2016-12-12 | Openstack virtual resource topology display method based on service view |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611140277.XA CN106598734B (en) | 2016-12-12 | 2016-12-12 | Openstack virtual resource topology display method based on service view |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106598734A CN106598734A (en) | 2017-04-26 |
CN106598734B true CN106598734B (en) | 2020-01-14 |
Family
ID=58597597
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611140277.XA Expired - Fee Related CN106598734B (en) | 2016-12-12 | 2016-12-12 | Openstack virtual resource topology display method based on service view |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106598734B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107257299A (en) * | 2017-08-03 | 2017-10-17 | 郑州云海信息技术有限公司 | The methods of exhibiting and exhibiting device of a kind of virtual resource |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102681899A (en) * | 2011-03-14 | 2012-09-19 | 金剑 | Virtual computing resource dynamic management system of cloud computing service platform |
CN103414589A (en) * | 2013-08-13 | 2013-11-27 | 华为技术有限公司 | Method and device for managing resource information |
CN104981783A (en) * | 2013-03-07 | 2015-10-14 | 思杰系统有限公司 | Dynamic configuration in cloud computing environments |
CN105516266A (en) * | 2015-11-30 | 2016-04-20 | 华为技术有限公司 | Service monitoring methods and system, and related devices |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103152438B (en) * | 2013-04-09 | 2015-11-18 | 上海理想信息产业(集团)有限公司 | Business health degree acquisition methods under a kind of cloud computing environment |
-
2016
- 2016-12-12 CN CN201611140277.XA patent/CN106598734B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102681899A (en) * | 2011-03-14 | 2012-09-19 | 金剑 | Virtual computing resource dynamic management system of cloud computing service platform |
CN104981783A (en) * | 2013-03-07 | 2015-10-14 | 思杰系统有限公司 | Dynamic configuration in cloud computing environments |
CN103414589A (en) * | 2013-08-13 | 2013-11-27 | 华为技术有限公司 | Method and device for managing resource information |
CN105516266A (en) * | 2015-11-30 | 2016-04-20 | 华为技术有限公司 | Service monitoring methods and system, and related devices |
Also Published As
Publication number | Publication date |
---|---|
CN106598734A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10163132B2 (en) | Systems and methods to create a geographic heatmap | |
CN105005568B (en) | Web page front end processing device and method based on template | |
JP2016505190A5 (en) | ||
CN102891765A (en) | SNMP (Simple Network Management Protocol) and HTML5 (Hypertext Markup Language 5)-based method for realizing web network topology | |
CN106126489A (en) | A kind of report file dynamic chart edit methods and system | |
WO2018024116A1 (en) | Card-based information displaying method and apparatus, and information displaying service processing method and apparatus | |
CN104915410A (en) | Storage and loading method of mind mapping and storage and loading system thereof | |
US10430482B2 (en) | Customized and automated dynamic infographics | |
CN106776655B (en) | Web application system display method and device | |
CN103324484B (en) | A kind of method and apparatus for showing view | |
CN107291880A (en) | The creation method and device of a kind of resource graphics | |
CN106598734B (en) | Openstack virtual resource topology display method based on service view | |
TW201807667A (en) | Network picture loading method, device and system | |
CN112508005A (en) | Method, apparatus, device and storage medium for processing image | |
CN113722550B (en) | Method and device for realizing relationship graph, electronic equipment and storage medium | |
CN105095593A (en) | Patterned topology generating method and system | |
CN111382223A (en) | Electronic map display method, terminal and electronic equipment | |
CN113194265A (en) | Streetscape video generation method and device, electronic equipment and storage medium | |
CN105786478B (en) | Method and apparatus for data processing | |
CN111353808B (en) | Method for determining media region information and related equipment | |
CN107945259A (en) | The methods of exhibiting and device that scene dragging renders | |
WO2017071212A1 (en) | Method and device for processing recommendation of frequently used contact | |
US10546559B2 (en) | Multi-layer rendering for visualizations | |
US20150205867A1 (en) | Method and device for grouping contacts in social network | |
WO2017050007A1 (en) | Test method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200114 |
|
CF01 | Termination of patent right due to non-payment of annual fee |