TWI728036B - Information processing method, device and system - Google Patents
Information processing method, device and system Download PDFInfo
- Publication number
- TWI728036B TWI728036B TW106101583A TW106101583A TWI728036B TW I728036 B TWI728036 B TW I728036B TW 106101583 A TW106101583 A TW 106101583A TW 106101583 A TW106101583 A TW 106101583A TW I728036 B TWI728036 B TW I728036B
- Authority
- TW
- Taiwan
- Prior art keywords
- information
- end server
- configuration
- command information
- address information
- Prior art date
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 36
- 238000003672 processing method Methods 0.000 title claims abstract description 11
- 238000000034 method Methods 0.000 claims abstract description 68
- 230000008569 process Effects 0.000 claims abstract description 36
- 238000012545 processing Methods 0.000 claims abstract description 30
- 230000002159 abnormal effect Effects 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 7
- 230000004048 modification Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2255—Hash tables
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1061—Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
- H04L67/1065—Discovery involving distributed pre-established resource-based relationships among peers, e.g. based on distributed hash tables [DHT]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本申請實施例提供了一種資訊處理方法,其特徵在於,包括:提供允許指令資訊控制設備存取的介面,並通過該介面接收該指令資訊控制設備發送的第一配置指令資訊;根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊。根據本申請實施例,無須每次配置資訊更新都進行讀取設定檔、比對新舊設定檔和查找配置資訊的處理,節省了處理資源。同時,也節省了配置資訊更新耗費的時間,提升了配置資訊更新的效率。 The embodiment of the present application provides an information processing method, which is characterized in that it includes: providing an interface allowing access to the command information control device, and receiving the first configuration command information sent by the command information control device through the interface; The configuration command information instructs the front-end server to process configuration information for at least one back-end server. According to the embodiment of the present application, there is no need to read configuration files, compare new and old configuration files, and find configuration information every time configuration information is updated, which saves processing resources. At the same time, it also saves the time spent on updating configuration information and improves the efficiency of updating configuration information.
Description
本申請關於網際網路技術領域,特別是關於一種資訊處理方法、一種資訊處理裝置和一種資訊處理系統。 This application relates to the field of Internet technology, in particular to an information processing method, an information processing device and an information processing system.
在雲計算場景下,大量雲服務的伺服器都需要經常更新配置資訊,以滿足用戶需求。以負載均衡雲服務為例,需要更新前端伺服器中的後端伺服器的配置資訊,以保證準確地將用戶的存取請求調度到正常工作的後端伺服器。實際應用中,通常會利用檢測後端伺服器工作狀態的應用程式,例如Keepalived,負責對配置資訊的更新處理。Keepalived是一個基於VRRP(Virtual Router Redundancy Protocol,虛擬路由冗餘協定)技術的實現服務高可用方案的軟體。Keepalived主要用於檢測後端伺服器的狀態,如果有一台後端伺服器當機,或工作出現故障,Keepalived將檢測到,並將有故障的後端伺服器從系統中剔除,當後端伺服器工作正常後Keepalived自動將後端伺服器加入到伺服器群中。因為Keepalived的伺服器狀態檢測應用程式的記憶體中,通常保存有後端伺服器的配置資 訊的記憶體結構,因此可利用其進行資訊更新。 In the cloud computing scenario, a large number of cloud service servers need to frequently update configuration information to meet user needs. Taking the load balancing cloud service as an example, the configuration information of the back-end server in the front-end server needs to be updated to ensure that the user's access request is accurately dispatched to the working back-end server. In actual applications, applications that detect the working status of the back-end server, such as Keepalived, are usually used to update the configuration information. Keepalived is a software based on VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) technology to achieve high availability of services. Keepalived is mainly used to detect the status of the back-end server. If a back-end server is down or the work fails, Keepalived will detect it and remove the faulty back-end server from the system. After the server works normally, Keepalived automatically adds the back-end server to the server group. Because Keepalived's server status detection application’s memory usually saves the configuration data of the back-end server. The memory structure of the information, so it can be used to update information.
具體地,在更新配置資訊時,通常是首先生成一個更新後的設定檔,並觸發Keepalived重新載入該設定檔。Keepalived將更新設定檔與歷史設定檔進行對比,逐一查找後端伺服器的配置資訊是否發生變更,並針對發生變更的配置資訊生成修改指令,前端伺服器根據該修改指令更新後端伺服器的配置資訊。 Specifically, when the configuration information is updated, an updated profile is usually generated first, and Keepalived is triggered to reload the profile. Keepalived compares the updated configuration file with the historical configuration file, finds whether the configuration information of the back-end server has changed one by one, and generates a modification command for the changed configuration information. The front-end server updates the configuration of the back-end server according to the modification command. News.
然而,目前的配置資訊更新方式中,需要針對每一個後端伺服器的配置資訊進行查找和對比處理,當雲服務存在大量的後端伺服器,整個資訊更新過程需要耗費較多的處理資源。而且,更新過程耗費了較多的時間,造成了資訊更新效率較低的問題。 However, in the current configuration information update method, the configuration information of each back-end server needs to be searched and compared. When a cloud service has a large number of back-end servers, the entire information update process requires more processing resources. Moreover, the update process consumes a lot of time, causing the problem of low information update efficiency.
鑒於上述問題,提出了本申請實施例以便提供一種克服上述問題或者至少部分地解決上述問題的一種資訊處理方法、相應的一種資訊處理裝置和相應的一種資訊處理系統。 In view of the above problems, the embodiments of the present application are proposed to provide an information processing method, a corresponding information processing device, and a corresponding information processing system that overcome the above problems or at least partially solve the above problems.
為了解決上述問題,本申請公開了一種資訊處理方法,包括:提供允許指令資訊控制設備存取的介面,並通過該介面接收該指令資訊控制設備發送的第一配置指令資訊;根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊。 In order to solve the above problems, the present application discloses an information processing method, including: providing an interface that allows access to the command information control device, and receiving the first configuration command information sent by the command information control device through the interface; according to the first configuration The command information instructs the front-end server to process configuration information for at least one back-end server.
可選地,該前端伺服器對至少一個後端伺服器進行負載均衡處理。 Optionally, the front-end server performs load balancing processing on at least one back-end server.
可選地,該根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊包括:從該第一配置指令資訊中獲取後端伺服器的原始位址資訊,在預置資料庫中查找根據該原始位址資訊對應轉換的目標位址資訊;根據該目標位址資訊生成第二配置指令資訊,以供該前端伺服器對該目標位址資訊指示的後端伺服器的配置資訊進行處理。 Optionally, the instructing the front-end server to process the configuration information of the at least one back-end server according to the first configuration command information includes: obtaining the original address information of the back-end server from the first configuration command information, and in advance Search in the database for the target address information corresponding to the conversion based on the original address information; generate second configuration command information based on the target address information for the back-end server to be instructed by the front-end server to the target address information Configuration information for processing.
可選地,該預置資料庫為雜湊表,該在預置資料庫中查找根據該原始位址資訊對應轉換的目標位址資訊包括:計算該原始位址資訊的目標關鍵值;在該雜湊表中查找關鍵值匹配於該目標關鍵值的目標位址資訊。 Optionally, the preset database is a hash table, and the searching in the preset database for the target address information correspondingly converted according to the original address information includes: calculating the target key value of the original address information; Find the target address information whose key value matches the target key value in the table.
可選地,該根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊包括:根據該第一配置指令資訊指示前端伺服器針對保存在該前端伺服器中的後端伺服器的配置資訊進行增加、刪除和/或修改處理。 Optionally, the instructing the front-end server to process the configuration information for the at least one back-end server according to the first configuration command information includes: instructing the front-end server according to the first configuration command information to target the back-end server stored in the front-end server. The configuration information of the end server is added, deleted and/or modified.
可選地,該方法還包括:當在該雜湊表中查找不到關鍵值匹配於該目標關鍵值的目標位址資訊,針對該原始位址資訊添加異常標識並生成記錄日誌。 Optionally, the method may further include: when the target address information whose key value matches the target key value cannot be found in the hash table, adding an abnormal identifier to the original address information and generating a record log.
為了解決上述問題,本申請還公開了一種資訊處理裝置,包括:第一配置指令資訊接收模組,用於提供允許指令資訊控制設備存取的介面,並通過該介面接收該指令資訊控制設備發送的第一配置指令資訊;指示模組,用於根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊。 In order to solve the above problems, this application also discloses an information processing device, including: a first configuration command information receiving module for providing an interface allowing access to the command information control device, and receiving the command information control device through the interface. The first configuration command information; the instruction module is used to instruct the front-end server to process the configuration information for at least one back-end server according to the first configuration command information.
可選地,該前端伺服器對至少一個後端伺服器進行負載均衡處理。 Optionally, the front-end server performs load balancing processing on at least one back-end server.
可選地,該指示模組包括:目標位址資訊查找子模組,用於從該第一配置指令資訊中獲取後端伺服器的原始位址資訊,在預置資料庫中查找根據該原始位址資訊對應轉換的目標位址資訊;第二配置指令資訊生成子模組,用於根據該目標位址資訊生成第二配置指令資訊,以供該前端伺服器對該目標位址資訊指示的後端伺服器的配置資訊進行處理。 Optionally, the instruction module includes: a target address information search sub-module, which is used to obtain the original address information of the back-end server from the first configuration instruction information, and search in a preset database according to the original address information. The address information corresponds to the converted target address information; the second configuration command information generating sub-module is used to generate the second configuration command information according to the target address information for the front-end server to instruct the target address information The configuration information of the back-end server is processed.
可選地,該預置資料庫為雜湊表,該目標位址資訊查找子模組包括:目標關鍵值計算子單元,用於計算該原始位址資訊的目標關鍵值;目標位址資訊查找子單元,用於在該雜湊表中查找關鍵值匹配於該目標關鍵值的目標位址資訊。 Optionally, the preset database is a hash table, and the target address information search submodule includes: a target key value calculation subunit for calculating the target key value of the original address information; and a target address information search subunit The unit is used to search the hash table for the target address information whose key value matches the target key value.
可選地,該指示模組包括:配置資訊處理子模組,用於根據該第一配置指令資訊 指示前端伺服器針對保存在該前端伺服器中的後端伺服器的配置資訊進行增加、刪除和/或修改處理。 Optionally, the instruction module includes: a configuration information processing sub-module for processing according to the first configuration instruction information Instruct the front-end server to add, delete, and/or modify the configuration information of the back-end server stored in the front-end server.
可選地,該裝置還包括:異常標識添加模組,用於當在該雜湊表中查找不到關鍵值匹配於該目標關鍵值的目標位址資訊,針對該原始位址資訊添加異常標識並生成記錄日誌。 Optionally, the device further includes: an abnormal identifier adding module, which is used to add an abnormal identifier to the original address information when the target address information whose key value matches the target key value cannot be found in the hash table. Generate recording logs.
為了解決上述問題,本申請還公開了一種資訊處理系統,包括:前端伺服器、後端伺服器和指令資訊控制設備;該前端伺服器包括:第一配置指令資訊接收模組,用於提供允許指令資訊控制設備存取的介面,並通過該介面接收該指令資訊控制設備發送的第一配置指令資訊;指示模組,用於根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊;該後端伺服器包括:存取請求調度接收模組,用於接收該前端伺服器根據該後端伺服器的配置資訊調度的存取請求;該指令資訊控制設備,用於存取該前端伺服器,並通過該前端伺服器提供的介面將該第一配置指令資訊下發至該前端伺服器。 In order to solve the above problems, this application also discloses an information processing system, including: a front-end server, a back-end server, and command information control equipment; the front-end server includes: a first configuration command information receiving module for providing permission The command information controls the interface accessed by the device, and receives the first configuration command information sent by the command information control device through the interface; the instruction module is used to instruct the front-end server to process at least one back-end server according to the first configuration command information The configuration information of the server; the back-end server includes: an access request dispatch receiving module, which is used to receive the access request dispatched by the front-end server according to the configuration information of the back-end server; the command information controls the device with Access the front-end server, and issue the first configuration command information to the front-end server through the interface provided by the front-end server.
本申請實施例包括以下優點:相比起目前的通過設定檔進行資訊處理的方式,本申請實施例無須每次配置資訊更新都進行讀取設定檔、比對 新舊設定檔和查找配置資訊的處理,節省了處理資源。同時,也節省了配置資訊更新耗費的時間,提升了配置資訊更新的效率。 The embodiment of the application includes the following advantages: Compared with the current method of information processing through the configuration file, the embodiment of the application does not need to read the configuration file and compare each time the configuration information is updated. The processing of new and old configuration files and finding configuration information saves processing resources. At the same time, it also saves the time spent on updating configuration information and improves the efficiency of updating configuration information.
而且,在回應用戶的存取請求等的即時性要求較高的場景中,更新的配置資訊在較短的時間內可以生效並恢復對用戶的服務,改善了用戶體驗。 Moreover, in scenarios with high real-time requirements such as responding to a user's access request, the updated configuration information can take effect in a relatively short period of time and restore service to the user, which improves the user experience.
101‧‧‧步驟 101‧‧‧Step
102‧‧‧步驟 102‧‧‧Step
201‧‧‧步驟 201‧‧‧Step
202‧‧‧步驟 202‧‧‧Step
203‧‧‧步驟 203‧‧‧Step
301‧‧‧第一配置指令資訊接收模組 301‧‧‧First configuration command information receiving module
302‧‧‧指示模組 302‧‧‧Instruction Module
401‧‧‧第一配置指令資訊接收模組 401‧‧‧First configuration command information receiving module
402‧‧‧指示模組 402‧‧‧Instruction Module
403‧‧‧異常標識添加模組 403‧‧‧Abnormal identification add module
701‧‧‧前端伺服器 701‧‧‧Front-end server
702‧‧‧後端伺服器 702‧‧‧Backend Server
703‧‧‧指令資訊控制設備 703‧‧‧Command information control equipment
圖1是本申請的一種資訊處理方法實施例一的步驟流程圖;圖2是本申請的一種資訊處理方法實施例二的步驟流程圖;圖3是本申請的一種資訊處理裝置實施例一的結構方塊圖;圖4是本申請的一種資訊處理裝置實施例二的結構方塊圖;圖5是本申請的一種基於Keepalived的Hotconf介面的資訊處理流程圖;圖6是本申請的一種基於拓撲結構的資訊更新系統示意圖;圖7是本申請的一種資訊處理系統實施例的結構方塊圖。 1 is a flowchart of the steps of Embodiment 1 of an information processing method of this application; FIG. 2 is a flowchart of steps of Embodiment 2 of an information processing method of this application; FIG. 3 is a flowchart of Embodiment 1 of an information processing device of this application Structural block diagram; Figure 4 is a structural block diagram of the second embodiment of an information processing device of this application; Figure 5 is a flow chart of information processing based on the Keepalived Hotconf interface of this application; Figure 6 is a topology-based structure of this application Schematic diagram of the information update system; Figure 7 is a block diagram of the structure of an embodiment of the information processing system of this application.
為使本申請的上述目的、特徵和優點能夠更加明顯易懂,下面結合圖式和具體實施方式對本申請作進一步詳細的說明。 In order to make the above objectives, features, and advantages of the application more obvious and understandable, the application will be further described in detail below in conjunction with the drawings and specific implementations.
負載均衡雲服務的應用場景中,通常是將多個後端伺服器(Real Server,RS)組織成一個虛擬伺服器,以便於用戶訪問存取。針對用戶的存取請求,可以由前端伺服器將流量轉發調度至其中一個或多個的後端伺服器,以實現後端伺服器的負載均衡。實際應用中,可能部分後端伺服器因為儲存空間不足或處理負載過大等的問題,而無法正常服務,針對這些異常的後端伺服器,需要更新前端伺服器中的後端伺服器的配置資訊,以重新配置後端伺服器,避免將流量轉發至異常的後端伺服器。 In the application scenario of load balancing cloud services, multiple back-end servers (Real Server, RS) are usually organized into a virtual server to facilitate user access. For the user's access request, the front-end server can forward the traffic to one or more of the back-end servers to achieve load balancing of the back-end servers. In actual applications, some back-end servers may not be able to service normally due to insufficient storage space or excessive processing load. For these abnormal back-end servers, it is necessary to update the configuration information of the back-end servers in the front-end servers. To reconfigure the back-end servers to avoid forwarding traffic to abnormal back-end servers.
採用Keepalived對後端伺服器的配置資訊的更新方式中,通常是通過比對新舊配置資訊,根據發生更改的配置資訊相應生成修改指示資訊以更新其配置資訊。 In the method of updating the configuration information of the back-end server by using Keepalived, the configuration information is usually updated by comparing the new and old configuration information and generating the modification instruction information according to the changed configuration information.
具體地,可以首先生成包含有後端伺服器的配置資訊的設定檔,並觸發Keepalived載入該設定檔,根據設定檔中關於後端伺服器的相關配置資訊,生成記憶體結構,即每一個後端伺服器的配置資訊都會生成一個相應的記憶體結構,記憶體結構之間通過鏈表連結。 Specifically, you can first generate a configuration file containing the configuration information of the back-end server, and trigger Keepalived to load the configuration file, and generate a memory structure based on the configuration information about the back-end server in the configuration file, that is, each The configuration information of the back-end server will generate a corresponding memory structure, and the memory structures are linked through a linked list.
當需要進行配置資訊更新時,可以觸發Keepalived重新載入更新的設定檔。針對更新的設定檔和歷史設定檔,Keepalived首先從歷史設定檔中選取一個後端伺服器的配置資訊,然後在更新的設定檔中按序查找是否有對應的後 端伺服器的配置資訊,根據查找結果相應對配置資訊進行更新。 When the configuration information needs to be updated, Keepalived can be triggered to reload the updated configuration file. For the updated profile and historical profile, Keepalived first selects the configuration information of a back-end server from the historical profile, and then searches the updated profile in order to see if there is a corresponding post The configuration information of the end server is updated accordingly based on the search results.
根據目前的更新方式,假如有n個後端伺服器,則每次更新需要進行查找的次數為n(n+1)/2次,然而,負載均衡雲服務系統中往往具有上萬台的後端伺服器,根據目前的更新方式進行查找處理會非常耗時,而且還會導致更新的配置資訊要較長時間才能生效,造成較長時間的服務不可用的情況,影響了用戶體驗。 According to the current update method, if there are n back-end servers, the number of searches required for each update is n(n+1)/2 times. However, the load balancing cloud service system often has tens of thousands of back-end servers. On the end server, searching and processing according to the current update method will be very time-consuming, and it will also cause the updated configuration information to take a long time to take effect, resulting in a long-term service unavailability, which affects the user experience.
參照圖1,示出了本申請的一種資訊處理方法實施例一的步驟流程圖,具體可以包括如下步驟: Referring to Fig. 1, there is shown a step flow chart of Embodiment 1 of an information processing method according to the present application, which may specifically include the following steps:
步驟101,提供允許指令資訊控制設備存取的介面,並通過該介面接收該指令資訊控制設備發送的第一配置指令資訊。 Step 101: Provide an interface that allows the command information control device to access, and receive the first configuration command information sent by the command information control device through the interface.
本申請實施例中,具體地,可以通過TCP監聽的方式向指令資訊控制設備提供一個允許其存取的介面,以供指令資訊控制設備修改根據配置資訊生成的記憶體結構。實際應用中,指令資訊控制設備可以是負責全域配置資訊更新的上層控制系統。 In the embodiment of the present application, specifically, an interface that allows access to the command information control device can be provided to the command information control device by means of TCP monitoring, so that the command information control device can modify the memory structure generated according to the configuration information. In practical applications, the command information control device may be an upper-level control system responsible for updating the global configuration information.
當通過伺服器狀態檢測應用程式進行配置資訊的處理時,可以向指令資訊控制設備開放一個特定介面,以供指令資訊控制設備調用應用程式的記憶體中保存有的配置資訊的記憶體結構。例如,通過Keepalived處理配置資訊時,可以設置Keepalived向指令資訊控制設備開放Hotconf介面,以供指令資訊控制設備調用Keepalived記 憶體中配置資訊的記憶體結構。此外需要說明的是,Keepalived的Hotconf原本用於應用程式的熱配置功能,熱配置功能可以使得應用程式在運行時進行升級,而不需要重新開機和載入設定檔。在本申請實施例的方案中,可以利用Keepalived的對外開放的Hotconf接口供指令資訊控制設備存取,以接收第一配置指令資訊。 When the configuration information is processed by the server state detection application, a specific interface can be opened to the command information control device for the command information control device to call the memory structure of the configuration information stored in the memory of the application program. For example, when the configuration information is processed by Keepalived, Keepalived can be set to open the Hotconf interface to the command information control device, so that the command information control device can call the Keepalived record. The memory structure that allocates information in the memory. In addition, it should be noted that Keepalived's Hotconf was originally used for the hot configuration function of the application. The hot configuration function allows the application to be upgraded while it is running, without the need to reboot and load the configuration file. In the solution of the embodiment of the present application, the open Hotconf interface of Keepalived can be used for the command information control device to access, so as to receive the first configuration command information.
當然,所屬技術領域中具有通常知識者可以根據實際使用的應用程式開放供指令資訊控制設備存取的介面。 Of course, a person with ordinary knowledge in the technical field can open an interface for command and information control equipment to access according to the actual application program.
通過開放給指令資訊控制設備存取的介面,可以接收到指令資訊控制設備發送的第一配置指令資訊。 The first configuration command information sent by the command information control device can be received through the interface open to the access of the command information control device.
步驟102,根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊。 Step 102: Instruct the front-end server to process the configuration information for at least one back-end server according to the first configuration command information.
作為本發明實施例的優選示例,該根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊包括:根據該第一配置指令資訊指示前端伺服器針對保存在該前端伺服器中的後端伺服器的配置資訊進行增加、刪除和/或修改處理。 As a preferred example of the embodiment of the present invention, the instructing the front-end server to process the configuration information for at least one back-end server according to the first configuration command information includes: instructing the front-end server according to the first configuration command information to store information on the front-end server The configuration information of the back-end server in the server is added, deleted and/or modified.
該第一配置指令資訊可以包括有後端伺服器的位址資訊和相應的操作處理資訊。後端伺服器的位址資訊可以作為後端伺服器的標識,用於確定所針對的後端伺服器的配置資訊;操作處理資訊用於確定對所針對的後端伺服器的配置資訊進行增加、刪除或修改等的操作處理。 The first configuration command information may include address information of the back-end server and corresponding operation processing information. The address information of the back-end server can be used as the identification of the back-end server to determine the configuration information of the targeted back-end server; the operation processing information is used to determine the addition of the configuration information of the targeted back-end server , Delete or modify operations.
可以根據該第一配置指令資訊指示前端伺服器對一個 或多個後端伺服器的配置資訊進行增加、刪除或修改等的操作處理。或者,針對於負載均衡雲服務系統,第一配置指令資訊中所包含的後端伺服器的位址資訊並非後端伺服器在其虛擬網路中的唯一確定的位址資訊。因此可以先從第一配置指令資訊中獲取後端伺服器的原始位址資訊,並利用該原始位址資訊在預置資料庫中查找後端伺服器在其所屬的網路中唯一確定的目標位址資訊,利用該目標位址資訊生成一個第二配置指令資訊,用於指示前端伺服器對一個或多個後端伺服器的配置資訊進行增加、刪除或修改等的操作處理。 According to the first configuration command information, the front-end server can be instructed to Or add, delete or modify the configuration information of multiple back-end servers. Or, for the load balancing cloud service system, the address information of the back-end server included in the first configuration command information is not the only certain address information of the back-end server in its virtual network. Therefore, the original address information of the back-end server can be obtained from the first configuration command information, and the original address information can be used to find the unique target of the back-end server in the network to which it belongs in the preset database. The address information uses the target address information to generate a second configuration command information, which is used to instruct the front-end server to add, delete, or modify the configuration information of one or more back-end servers.
其中,負載均衡雲服務系統中的前端伺服器可以為LVS(Linux Virtual Server,Linux虛擬伺服器),在LVS上可以運行IPVS(IP Virtual Server,IP虛擬服務交換機),通過IPVS中位於內核層面的資料包轉發模組,實現對多個後端伺服器的流量轉發和負載均衡。實際應用中,可以將Keepalived等的伺服器狀態檢測應用程式安裝在LVS上。 Among them, the front-end server in the load balancing cloud service system can be LVS (Linux Virtual Server, Linux virtual server), and IPVS (IP Virtual Server, IP virtual service switch) can be run on LVS. The data packet forwarding module realizes traffic forwarding and load balancing to multiple back-end servers. In practical applications, server status detection applications such as Keepalived can be installed on LVS.
前端伺服器可以根據生成的修改指令相應更新本地的後端伺服器的配置資訊,從而可以根據更新的配置資訊,將用戶存取請求資料包轉發調度到適合的後端伺服器。 The front-end server can correspondingly update the configuration information of the local back-end server according to the generated modification instruction, so that the user access request data packet can be forwarded and dispatched to a suitable back-end server according to the updated configuration information.
需要說明的是,本申請實施例所提供的資訊更新方式不僅適用於負載均衡雲服務系統,還可以適用於雲計算場景下的其他雲服務。所屬技術領域中具有通常知識者可以根據實際需要,利用本申請實施例所提供的核心構思更新 其他類型的資訊,例如通過對外開放的介面接收路由表更新指令資訊,根據接收的路由表更新指令資訊,指示前端伺服器更新其路由表。 It should be noted that the information update method provided in the embodiments of the present application is not only applicable to the load balancing cloud service system, but also applicable to other cloud services in the cloud computing scenario. Those with general knowledge in the technical field can use the core concept update provided by the embodiments of this application according to actual needs. Other types of information, such as receiving routing table update command information through an open interface, and instructing the front-end server to update its routing table based on the received routing table update command information.
需要進一步說明的是,實際應用中可以由前端伺服器執行上述的實施方式。具體地,可以將伺服器狀態檢測應用程式部署在前端伺服器上,通過伺服器狀態檢測應用程式向指令資訊控制設備開放存取介面,以接收指令資訊控制設備發送的第一配置指令資訊,根據接收到的第一配置指令資訊,對所保存的後端伺服器的配置資訊進行處理。 It should be further explained that, in actual applications, the front-end server may execute the above-mentioned implementation. Specifically, the server status detection application can be deployed on the front-end server, and the server status detection application can open the access interface to the command information control device to receive the first configuration command information sent by the command information control device, according to The received first configuration instruction information processes the saved configuration information of the back-end server.
此外,也可以單獨部署一個向指令資訊控制設備開放存取介面的配置資訊更新伺服器,由配置資訊更新伺服器接收指令資訊控制設備發送的第一配置指令資訊。配置資訊更新伺服器根據接收到的第一配置指令資訊指示前端伺服器對其所保存的後端伺服器的配置資訊進行處理。 In addition, a configuration information update server that opens an access interface to the command information control device can also be deployed separately, and the configuration information update server receives the first configuration command information sent by the command information control device. The configuration information update server instructs the front-end server to process the stored configuration information of the back-end server according to the received first configuration instruction information.
根據本申請實施例,通過提供允許指令資訊控制設備存取的介面,並通過該介面接收用於指示前端伺服器處理後端伺服器的配置資訊的第一配置指令資訊。相比起目前的通過設定檔進行資訊處理的方式,本申請實施例無須每次配置資訊更新都進行讀取設定檔、比對新舊設定檔和查找配置資訊的處理,節省了處理資源。同時,也節省了配置資訊更新耗費的時間,提升了配置資訊更新的效率。 According to an embodiment of the present application, an interface that allows command information to control device access is provided, and the first configuration command information for instructing the front-end server to process the configuration information of the back-end server is received through the interface. Compared with the current method of information processing through configuration files, the embodiment of the present application does not need to read configuration files, compare new and old configuration files, and find configuration information every time configuration information is updated, thus saving processing resources. At the same time, it also saves the time spent on updating configuration information and improves the efficiency of updating configuration information.
而且,在回應用戶的存取請求等的即時性要求較高的場景中,更新的配置資訊在較短的時間內可以生效並恢復對用戶的服務,改善了用戶體驗。 Moreover, in scenarios with high real-time requirements such as responding to a user's access request, the updated configuration information can take effect in a relatively short period of time and restore service to the user, which improves the user experience.
參照圖2,示出了本申請的一種資訊處理方法實施例二的步驟流程圖,具體可以包括如下步驟: Referring to Fig. 2, there is shown a step flow chart of the second embodiment of an information processing method according to the present application, which may specifically include the following steps:
步驟201,提供允許指令資訊控制設備存取的介面,並通過該介面接收該指令資訊控制設備發送的第一配置指令資訊。 Step 201: Provide an interface that allows the command information control device to access, and receive the first configuration command information sent by the command information control device through the interface.
通過開放給指令資訊控制設備存取的介面,可以接收到指令資訊控制設備發送給的第一配置指令資訊。 Through the interface open to the command information control device to access, the first configuration command information sent by the command information control device can be received.
步驟202,從該第一配置指令資訊中獲取後端伺服器的原始位址資訊,在預置資料庫中查找根據該原始位址資訊對應轉換的目標位址資訊。 Step 202: Obtain the original address information of the back-end server from the first configuration command information, and search for the target address information correspondingly converted according to the original address information in the preset database.
負載均衡雲服務的應用場景中,可以從指令資訊控制設備發送的第一配置指令資訊中獲取到後端伺服器的原始位址資訊,例如後端伺服器的VIP位址192.168.1.1:80。 In the application scenario of the load balancing cloud service, the original address information of the back-end server can be obtained from the first configuration command information sent by the command information control device, for example, the VIP address of the back-end server 192.168.1.1:80.
因為原始位址資訊的資訊結構比較複雜,將其儲存在資料庫後需要逐一比對,導致查找效率較低。因此,可以在預置資料庫中儲存根據原始位址資訊轉換的目標位址資訊。轉換的方式可以有多種,例如利用雜湊表的映射方式,將VIP位址轉換成一個較簡單的數值,以便於資訊的查找。 Because the information structure of the original address information is more complicated, it needs to be compared one by one after it is stored in the database, resulting in low search efficiency. Therefore, the target address information converted from the original address information can be stored in the preset database. There can be many conversion methods, for example, a hash table mapping method is used to convert the VIP address into a simpler value to facilitate information search.
負載均衡雲服務的應用場景中,前端伺服器可以對處於第一網路中的至少一個後端伺服器進行負載均衡處理。然而,指令資訊控制設備所發送的第一配置指令資訊中,所包含的後端伺服器的位址資訊是在整個網路範圍內的原始位址資訊,與後端伺服器在其所屬的虛擬網路中的位址 資訊並不相同,根據原始位址無法確定指令資訊所針對的後端伺服器。因此,可以在第一配置指令資訊中獲取後端伺服器在第二網路中的原始位址資訊,根據獲取的原始位址資訊,在預置資料庫中查找後端伺服器在其所屬的第一網路中的目標位址資訊。作為本發明實施例的優選示例,該預置資料庫可以為雜湊表,該在預置資料庫中查找根據該原始位址資訊對應轉換的目標位址資訊可以包括以下子步驟: In the application scenario of the load balancing cloud service, the front-end server may perform load balancing processing on at least one back-end server in the first network. However, in the first configuration command information sent by the command information control device, the address information of the back-end server included is the original address information in the entire network, and the back-end server is in the virtual address information to which it belongs. Address in the network The information is not the same, and the backend server to which the command information is targeted cannot be determined based on the original address. Therefore, the original address information of the back-end server in the second network can be obtained from the first configuration command information. According to the obtained original address information, search for the back-end server in the preset database Target address information in the first network. As a preferred example of the embodiment of the present invention, the preset database may be a hash table, and searching the preset database for the target address information correspondingly converted according to the original address information may include the following sub-steps:
子步驟S11,計算該原始位址資訊的目標關鍵值。 In sub-step S11, the target key value of the original address information is calculated.
子步驟S12,在該雜湊表中查找關鍵值匹配於該目標關鍵值的目標位址資訊。 In sub-step S12, search for the target address information whose key value matches the target key value in the hash table.
可以基於原始位址資訊計算其目標關鍵值,例如可以通過雜湊演算法(Hash)進行計算。利用計算得到的目標關鍵值,在雜湊表中查找到匹配於該目標關鍵值的位址資訊,作為對應的後端伺服器的目標位址資訊。 The target key value can be calculated based on the original address information, for example, it can be calculated by a hash algorithm (Hash). Using the calculated target key value, the address information matching the target key value is found in the hash table as the target address information of the corresponding back-end server.
相比起在基於鏈表連結的記憶體結構中逐條對比的查找方式,利用雜湊表儲存後端伺服器的配置資訊,優化了根據配置資訊生成的記憶體結構的組織形式,並結合雜湊演算法的查找方式,提升了對後端伺服器的目標位址資訊的查找效率。 Compared with the search method of comparing one by one in the memory structure based on linked list links, the hash table is used to store the configuration information of the back-end server, and the organization of the memory structure generated based on the configuration information is optimized, and combined with the hash calculation The method of searching improves the efficiency of searching the target address information of the back-end server.
子步驟S13,當在該雜湊表中查找不到關鍵值匹配於該目標關鍵值的目標位址資訊,針對該原始位址資訊添加異常標識並生成記錄日誌。 In sub-step S13, when the target address information whose key value matches the target key value cannot be found in the hash table, an abnormal mark is added to the original address information and a record log is generated.
當查找不到匹配的目標位址資訊時,表明第一配置指 令資訊中包含的後端伺服器的原始位址資訊有誤,可以相應添加異常標識並生成記錄日誌。此外還可以列印包含有原始位址錯誤的記錄日誌,並結束更新流程。 When no matching target address information is found, it indicates that the first configuration refers to If the original address information of the back-end server contained in the information is incorrect, an exception flag can be added accordingly and a log can be generated. In addition, you can print a log containing the original address error, and end the update process.
步驟203,根據該目標位址資訊生成第二配置指令資訊,以供該前端伺服器對該目標位址資訊指示的後端伺服器的配置資訊進行處理。 Step 203: Generate second configuration instruction information according to the target address information, so that the front-end server can process the configuration information of the back-end server indicated by the target address information.
在查找到後端伺服器的目標位址資訊後,可以生成一個包含有該目標位址資訊的第二配置指令資訊。前端伺服器根據第二配置指令資訊中的目標位址資訊,可以確定需要進行處理的後端伺服器。 After the target address information of the back-end server is found, a second configuration command information containing the target address information can be generated. The front-end server can determine the back-end server to be processed according to the target address information in the second configuration command information.
根據本申請實施例,在負載均衡雲服務的配置資訊更新的應用場景中,無須每次配置資訊更新都進行讀取設定檔、比對新舊設定檔和查找配置資訊的處理,節省了處理資源。同時,也節省了配置資訊更新耗費的時間,提升了配置資訊更新的效率。 According to the embodiment of the present application, in the application scenario of the configuration information update of the load balancing cloud service, there is no need to read the configuration file, compare the old and new configuration files, and find the configuration information every time the configuration information is updated, which saves processing resources. . At the same time, it also saves the time spent on updating configuration information and improves the efficiency of updating configuration information.
為了便於所屬技術領域中具有通常知識者理解本申請實施例,以下結合圖5和圖6對本申請實施例進行說明。 In order to facilitate those with ordinary knowledge in the technical field to understand the embodiments of the present application, the embodiments of the present application are described below with reference to FIGS. 5 and 6.
圖5示出了基於Keepalived的Hotconf介面的資訊處理流程圖。從圖中可見,上層控制系統通過Keepalived對外提供的Hotconf介面,下發刪除VIP為192.168.1.1:80的後端伺服器的指令。Keepalived應用程式通過雜湊演算法將192.168.1.1:80轉換為一個目標關鍵值Key,通過這個Key在雜湊表中查找對應的後端伺服器。如果查找到對應的後端伺服器,則生成相應的刪除指令消息,並下發給 前端伺服器的IPVS內核模組,並結束流程。如果沒有查找到對應的後端伺服器,則列印錯誤日誌,並結束流程。 Figure 5 shows a flow chart of information processing based on the Keepalived Hotconf interface. It can be seen from the figure that the upper-level control system issues an instruction to delete the back-end server with the VIP of 192.168.1.1:80 through the Hotconf interface provided by Keepalived. The Keepalived application uses a hash algorithm to convert 192.168.1.1:80 into a target key value Key, and uses this key to find the corresponding back-end server in the hash table. If the corresponding back-end server is found, the corresponding delete instruction message is generated and sent to The IPVS kernel module of the front-end server, and the process ends. If the corresponding back-end server is not found, print the error log and end the process.
圖6示出了一種基於拓撲結構的資訊更新系統示意圖。從圖中可見,本申請的資訊更新系統可以基於拓撲架構而建立,其中部署有上層控制系統,前端伺服器以及多個後端伺服器,其中,前端伺服器可以設置為安裝有Keepalived的LVS伺服器。上層控制系統可以通過前端伺服器中對外開放的Keepalived的Hotconf介面,將第一配置指令資訊發送給前端伺服器。前端伺服器可以根據接收到的第一配置指令資訊,相應對保存在Keepalived中的後端伺服器的配置資訊進行增加、刪除或修改等的操作處理,以便於前端伺服器可以根據更新後的配置資訊對多個後端伺服器進行負載均衡的調度處理。 Figure 6 shows a schematic diagram of an information update system based on a topology. As can be seen from the figure, the information update system of this application can be built based on a topology, in which an upper-level control system, a front-end server, and multiple back-end servers are deployed. Among them, the front-end server can be set as an LVS server with Keepalived installed. Device. The upper-level control system can send the first configuration command information to the front-end server through the Hotconf interface of Keepalived that is open to the outside world in the front-end server. The front-end server can add, delete or modify the configuration information of the back-end server stored in Keepalived according to the received first configuration command information, so that the front-end server can follow the updated configuration Information performs load balancing scheduling processing on multiple back-end servers.
需要說明的是,對於方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是所屬技術領域中具有通常知識者應該知悉,本申請實施例並不受所描述的動作順序的限制,因為依據本申請實施例,某些步驟可以採用其他順序或者同時進行。其次,所屬技術領域中具有通常知識者也應該知悉,說明書中所描述的實施例均屬於優選實施例,所關於的動作並不一定是本申請實施例所必須的。 It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those with ordinary knowledge in the technical field should know that the embodiments of this application are not subject to the described sequence of actions. Because according to the embodiments of the present application, some steps can be performed in other order or simultaneously. Secondly, those with ordinary knowledge in the technical field should also know that the embodiments described in the specification are all preferred embodiments, and the related actions are not necessarily required by the embodiments of this application.
參照圖3,示出了本申請的一種資訊處理裝置實施例一的結構方塊圖,具體可以包括如下模組:第一配置指令資訊接收模組301,用於提供允許指令 資訊控制設備存取的介面,並通過該介面接收該指令資訊控制設備發送的第一配置指令資訊。 3, there is shown a structural block diagram of the first embodiment of an information processing device of the present application, which may specifically include the following modules: a first configuration instruction information receiving module 301 for providing permission instructions The interface accessed by the information control device, and the first configuration instruction information sent by the instruction information control device is received through the interface.
指示模組302,用於根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊。 The instruction module 302 is used for instructing the front-end server to process the configuration information for at least one back-end server according to the first configuration instruction information.
相比起目前的通過設定檔進行資訊處理的方式,本申請實施例無須每次配置資訊更新都進行讀取設定檔、比對新舊設定檔和查找配置資訊的處理,節省了處理資源。同時,也節省了配置資訊更新耗費的時間,提升了配置資訊更新的效率。 Compared with the current method of information processing through configuration files, the embodiment of the present application does not need to read configuration files, compare new and old configuration files, and find configuration information every time configuration information is updated, thus saving processing resources. At the same time, it also saves the time spent on updating configuration information and improves the efficiency of updating configuration information.
而且,在回應用戶的存取請求等的即時性要求較高的場景中,更新的配置資訊在較短的時間內可以生效並恢復對用戶的服務,改善了用戶體驗。 Moreover, in scenarios with high real-time requirements such as responding to a user's access request, the updated configuration information can take effect in a relatively short period of time and restore service to the user, which improves the user experience.
參照圖4,示出了本申請的一種資訊處理裝置實施例二的結構方塊圖,具體可以包括如下模組:第一配置指令資訊接收模組401,用於提供允許指令資訊控制設備存取的介面,並通過該介面接收該指令資訊控制設備發送的第一配置指令資訊。 4, there is shown a structural block diagram of the second embodiment of an information processing device of the present application, which may specifically include the following modules: a first configuration command information receiving module 401, which is used to provide a command and information control device to access The first configuration instruction information sent by the instruction information control device is received through the interface.
指示模組402,用於根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊。 The instruction module 402 is used for instructing the front-end server to process the configuration information for at least one back-end server according to the first configuration instruction information.
異常標識添加模組403,用於當在該雜湊表中查找不到關鍵值匹配於該目標關鍵值的目標位址資訊,針對該原始位址資訊添加異常標識並生成記錄日誌。 The abnormal identifier adding module 403 is used to add an abnormal identifier to the original address information when the target address information whose key value matches the target key value cannot be found in the hash table and generate a record log.
作為本申請實施例的優選示例,該前端伺服器對至少一個後端伺服器進行負載均衡處理。 As a preferred example of the embodiment of the present application, the front-end server performs load balancing processing on at least one back-end server.
作為本申請實施例的優選示例一,該指示模組402可以包括:目標位址資訊查找子模組,用於從該第一配置指令資訊中獲取後端伺服器的原始位址資訊,在預置資料庫中查找根據該原始位址資訊對應轉換的目標位址資訊;第二配置指令資訊生成子模組,用於根據該目標位址資訊生成第二配置指令資訊,以供該前端伺服器對該目標位址資訊指示的後端伺服器的配置資訊進行處理。 As a preferred example one of the embodiment of the present application, the instruction module 402 may include: a target address information search sub-module for obtaining the original address information of the back-end server from the first configuration instruction information. Search the target address information correspondingly converted according to the original address information in the setting database; the second configuration command information generating sub-module is used to generate the second configuration command information according to the target address information for the front-end server Process the configuration information of the back-end server indicated by the target address information.
作為本申請實施例的優選示例二,該指示模組402可以包括:配置資訊處理子模組,用於根據該第一配置指令資訊指示前端伺服器針對保存在該前端伺服器中的後端伺服器的配置資訊進行增加、刪除和/或修改處理。 As a second preferred example of the embodiment of the present application, the instruction module 402 may include: a configuration information processing sub-module for instructing the front-end server to respond to the back-end server stored in the front-end server according to the first configuration instruction information Add, delete and/or modify the configuration information of the device.
作為本申請實施例的優選示例,該預置資料庫為雜湊表,該目標位址資訊查找子模組可以包括:目標關鍵值計算子單元,用於計算該原始位址資訊的目標關鍵值;目標位址資訊查找子單元,用於在該雜湊表中查找關鍵值匹配於該目標關鍵值的目標位址資訊。 As a preferred example of the embodiment of the present application, the preset database is a hash table, and the target address information search submodule may include: a target key value calculation subunit for calculating the target key value of the original address information; The target address information search subunit is used to search the hash table for target address information whose key value matches the target key value.
根據本申請實施例,在負載均衡雲服務的配置資訊更新的應用場景中,無須每次配置資訊更新都進行讀取設定檔、比對新舊設定檔和查找配置資訊的處理,節省了處理資源。同時,也節省了配置資訊更新耗費的時間,提升了配置資訊更新的效率。 According to the embodiment of the present application, in the application scenario of the configuration information update of the load balancing cloud service, there is no need to read the configuration file, compare the old and new configuration files, and find the configuration information every time the configuration information is updated, which saves processing resources. . At the same time, it also saves the time spent on updating configuration information and improves the efficiency of updating configuration information.
對於裝置實施例而言,由於其與方法實施例基本相似,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
參照圖7,示出了本申請的一種資訊處理系統實施例的結構方塊圖,具體可以包括:前端伺服器701、後端伺服器702和指令資訊控制設備703;該前端伺服器701可以包括:第一配置指令資訊接收模組,用於提供允許指令資訊控制設備存取的介面,並通過該介面接收該指令資訊控制設備發送的第一配置指令資訊;指示模組,用於根據該第一配置指令資訊指示前端伺服器處理對至少一個後端伺服器的配置資訊;該後端伺服器702可以包括:存取請求調度接收模組,用於接收該前端伺服器根據該後端伺服器的配置資訊調度的存取請求;該指令資訊控制設備703,可以用於存取該前端伺服器,並通過該前端伺服器提供的介面將該第一配置指令資訊下發至該前端伺服器。 Referring to FIG. 7, there is shown a structural block diagram of an embodiment of an information processing system of the present application, which may specifically include: a front-end server 701, a back-end server 702, and a command information control device 703; the front-end server 701 may include: The first configuration instruction information receiving module is used to provide an interface that allows the instruction information to control the device to access, and to receive the first configuration instruction information sent by the instruction information control device through the interface; the instruction module is used to control the device according to the first configuration instruction information. The configuration command information instructs the front-end server to process configuration information for at least one back-end server; the back-end server 702 may include: an access request dispatch receiving module for receiving the front-end server according to the back-end server Configuration information scheduling access request; the command information control device 703 can be used to access the front-end server, and send the first configuration command information to the front-end server through the interface provided by the front-end server.
相比起目前的通過設定檔進行資訊處理的方式,本申請實施例無須每次配置資訊更新都進行讀取設定檔、比對新舊設定檔和查找配置資訊的處理,節省了處理資源。同時,也節省了配置資訊更新耗費的時間,提升了配置資訊更新的效率。 Compared with the current method of information processing through configuration files, the embodiment of the present application does not need to read configuration files, compare new and old configuration files, and find configuration information every time configuration information is updated, thus saving processing resources. At the same time, it also saves the time spent on updating configuration information and improves the efficiency of updating configuration information.
而且,在回應用戶的存取請求等的即時性要求較高的場景中,更新的配置資訊在較短的時間內可以生效並恢復對用戶的服務,改善了用戶體驗。 Moreover, in scenarios with high real-time requirements such as responding to a user's access request, the updated configuration information can take effect in a relatively short period of time and restore service to the user, which improves the user experience.
對於系統實施例而言,由於其與方法實施例基本相似,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
本說明書中的各個實施例均採用遞進的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個實施例之間相同相似的部分互相參見即可。 The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
所屬技術領域中具有通常知識者應明白,本申請實施例的實施例可提供為方法、裝置、或電腦程式產品。因此,本申請實施例可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本申請實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒介(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。 Those with ordinary knowledge in the technical field should understand that the embodiments of the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present application may adopt computer program products implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program codes. form.
在一個典型的配置中,所述電腦設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。記憶體可能包括電腦可讀媒介中的非永久性記憶體,隨機存取記憶體(RAM)和/或非易失性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀媒介的示例。電腦可讀媒介包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的 模組或其他資料。電腦的儲存媒介的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可程式設計唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁片儲存或其他磁性存放裝置或任何其他非傳輸媒介,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀媒介不包括非持續性的電腦可讀媒體(transitory media),如調變的資料訊號和載波。 In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory ( flash RAM). Memory is an example of computer readable media. Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information can be computer readable instructions, data structures, programs Module or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital multi-function Optical discs (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission media, can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include non-persistent computer-readable media (transitory media), such as modulated data signals and carrier waves.
本申請實施例是參照根據本申請實施例的方法、終端設備(系統)、和電腦程式產品的流程圖和/或方方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方方塊圖中的每一流程和/或方框、以及流程圖和/或方方塊圖中的流程和/或方框的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可程式設計資料處理終端設備的處理器以產生一個機器,使得通過電腦或其他可程式設計資料處理終端設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方方塊圖一個方框或多個方框中指定的功能的裝置。 The embodiments of the present application are described with reference to the flowcharts and/or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, dedicated computers, embedded processors or other programmable data processing terminal equipment to generate a machine, which can be executed by the processor of the computer or other programmable data processing terminal equipment The instructions generate means for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
這些電腦程式指令也可儲存在能引導電腦或其他可程式設計資料處理終端設備以特定方式工作的電腦可讀記憶體中,使得儲存在該電腦可讀記憶體中的指令產生包括指 令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方方塊圖一個方框或多個方框中指定的功能。 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory generate instructions including instructions. A manufactured product of a device. The instruction device implements the functions specified in a flow or multiple flows in a flowchart and/or a block or multiple blocks in a block diagram.
這些電腦程式指令也可裝載到電腦或其他可程式設計資料處理終端設備上,使得在電腦或其他可程式設計終端設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式設計終端設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方方塊圖一個方框或多個方框中指定的功能的步驟。 These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to generate computer-implemented processing, so that the computer or other programmable terminal equipment The instructions executed on the design terminal device provide steps for implementing functions specified in one or more processes in the flowchart and/or one block or more in the block diagram.
儘管已描述了本申請實施例的優選實施例,但所屬技術領域中具有通常知識者一旦得知了基本創造性概念,則可對這些實施例做出另外的變更和修改。所以,所附請求項意欲解釋為包括優選實施例以及落入本申請實施例範圍的所有變更和修改。 Although the preferred embodiments of the embodiments of the present application have been described, those with ordinary knowledge in the technical field can make additional changes and modifications to these embodiments once they learn the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
最後,還需要說明的是,在本文中,諸如第一和第二等之類的關係術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者終端設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者終端設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個......”限定的要素,並不排除在包括該要素的過 程、方法、物品或者終端設備中還存在另外的相同要素。 Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. Or there is any such actual relationship or sequence between operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also those that are not explicitly listed. Other elements listed, or also include elements inherent to this process, method, article, or terminal device. In the absence of further restrictions, the element defined by the sentence "including a..." is not excluded from the process of including the element. There are other similar elements in the process, method, article or terminal equipment.
以上對本申請所提供的一種資訊處理方法、一種資訊處理裝置和一種資訊處理系統,進行了詳細介紹,本文中應用了具體個例對本申請的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本申請的方法及其核心思想;同時,對於所屬技術領域中具有通常知識者,依據本申請的思想,在具體實施方式及應用範圍上均會有改變之處,綜上所述,本說明書內容不應理解為對本申請的限制。 The above provides a detailed introduction to an information processing method, an information processing device, and an information processing system provided by this application. Specific examples are used in this article to illustrate the principles and implementation of the application. The description of the above embodiments is only Used to help understand the methods and core ideas of this application; at the same time, for those with general knowledge in the technical field, according to the ideas of this application, there will be changes in the specific implementation and scope of application. In summary , The content of this manual should not be construed as a limitation to this application.
Claims (13)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610031093.3A CN106982236B (en) | 2016-01-18 | 2016-01-18 | Information processing method, device and system |
CN201610031093.3 | 2016-01-18 |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201730789A TW201730789A (en) | 2017-09-01 |
TWI728036B true TWI728036B (en) | 2021-05-21 |
Family
ID=59339914
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW106101583A TWI728036B (en) | 2016-01-18 | 2017-01-17 | Information processing method, device and system |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN106982236B (en) |
TW (1) | TWI728036B (en) |
WO (1) | WO2017124933A1 (en) |
Families Citing this family (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109343891B (en) * | 2017-08-01 | 2022-02-18 | 阿里巴巴集团控股有限公司 | Data processing system, method and device |
CN109144979B (en) * | 2018-08-15 | 2022-07-12 | 中国建设银行股份有限公司 | Data processing method and device based on distributed application system |
CN109005071B (en) * | 2018-09-05 | 2021-05-25 | 网宿科技股份有限公司 | Decision deployment method and scheduling equipment |
CN109597678B (en) * | 2018-10-09 | 2023-07-21 | 创新先进技术有限公司 | Task processing method and device |
CN109582485B (en) * | 2018-10-26 | 2022-05-03 | 创新先进技术有限公司 | Configuration change abnormity detection method and device |
CN110162512B (en) * | 2019-05-05 | 2021-11-09 | 中国银行股份有限公司 | Log retrieval method, device and storage medium |
CN110334103B (en) * | 2019-05-09 | 2021-11-02 | 北京顺丰同城科技有限公司 | Recommendation service updating method, providing device, access device and recommendation system |
CN110990052B (en) * | 2019-11-29 | 2023-09-26 | 杭州迪普科技股份有限公司 | Configuration preservation method and device |
CN111212399B (en) * | 2019-12-23 | 2023-08-18 | 新奇点企业管理集团有限公司 | Data transmission method and device, computer storage medium and electronic equipment |
CN111309371A (en) * | 2020-01-14 | 2020-06-19 | 网易(杭州)网络有限公司 | Query method and device |
CN115087958B (en) * | 2020-03-12 | 2024-01-16 | 华为技术有限公司 | Data updating method, device and equipment |
CN111726249B (en) * | 2020-06-02 | 2022-10-04 | 中盈优创资讯科技有限公司 | Configuration file processing method and device of network equipment |
CN111753205B (en) * | 2020-06-28 | 2024-03-19 | 北京百度网讯科技有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
CN111966486B (en) * | 2020-07-01 | 2024-10-08 | 深圳华云信息系统科技股份有限公司 | Method for acquiring data, FPGA system and readable storage medium |
CN114531493B (en) * | 2020-11-23 | 2024-03-26 | 北京达佳互联信息技术有限公司 | Request processing method and device, electronic equipment and storage medium |
CN112579933B (en) * | 2020-12-24 | 2023-12-08 | 中国农业银行股份有限公司 | Information processing method and device |
CN113904724B (en) * | 2021-10-12 | 2022-11-22 | 中国人民解放军战略支援部队信息工程大学 | Communication device and communication system |
CN115150164B (en) * | 2022-06-30 | 2023-09-26 | 北京天融信网络安全技术有限公司 | Request verification method, apparatus, electronic device and computer readable storage medium |
CN115567392B (en) * | 2022-10-10 | 2023-08-15 | 浙江保融科技股份有限公司 | Automatic deployment upgrading method for customer internal service system |
CN116708063B (en) * | 2022-12-23 | 2024-06-11 | 荣耀终端有限公司 | Log reporting method, electronic equipment, cloud server and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI245521B (en) * | 2004-06-01 | 2005-12-11 | Realtek Semiconductor Corp | Network address-port translation device and method |
CN104038376A (en) * | 2014-06-30 | 2014-09-10 | 浪潮(北京)电子信息产业有限公司 | Method and device for managing real servers and LVS clustering system |
CN105099761A (en) * | 2015-06-26 | 2015-11-25 | 广东欧珀移动通信有限公司 | Method and system for concentratedly managing configuration information of client |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7644120B2 (en) * | 2000-09-15 | 2010-01-05 | Invensys Systems, Inc. | Industrial process control data access server supporting multiple client data exchange protocols |
US7996482B1 (en) * | 2007-07-31 | 2011-08-09 | Qurio Holdings, Inc. | RDMA based real-time video client playback architecture |
CN103490963B (en) * | 2013-09-13 | 2016-09-14 | 天脉聚源(北京)传媒科技有限公司 | The method and device of controlled device in a kind of control area net(CAN) |
CN104090891B (en) * | 2013-12-12 | 2016-05-04 | 深圳市腾讯计算机系统有限公司 | Data processing method, Apparatus and system |
CN104965726A (en) * | 2015-03-10 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Configuration updating method, apparatus and system |
CN105187230B (en) * | 2015-06-25 | 2018-09-07 | 走遍世界(北京)信息技术有限公司 | The switching method and device of server |
-
2016
- 2016-01-18 CN CN201610031093.3A patent/CN106982236B/en active Active
-
2017
- 2017-01-09 WO PCT/CN2017/070631 patent/WO2017124933A1/en active Application Filing
- 2017-01-17 TW TW106101583A patent/TWI728036B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI245521B (en) * | 2004-06-01 | 2005-12-11 | Realtek Semiconductor Corp | Network address-port translation device and method |
CN104038376A (en) * | 2014-06-30 | 2014-09-10 | 浪潮(北京)电子信息产业有限公司 | Method and device for managing real servers and LVS clustering system |
CN105099761A (en) * | 2015-06-26 | 2015-11-25 | 广东欧珀移动通信有限公司 | Method and system for concentratedly managing configuration information of client |
Also Published As
Publication number | Publication date |
---|---|
WO2017124933A1 (en) | 2017-07-27 |
CN106982236B (en) | 2020-07-28 |
CN106982236A (en) | 2017-07-25 |
TW201730789A (en) | 2017-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI728036B (en) | Information processing method, device and system | |
US10997211B2 (en) | Systems and methods for database zone sharding and API integration | |
US10977277B2 (en) | Systems and methods for database zone sharding and API integration | |
EP3547648B1 (en) | Service processing and consensus method and device | |
US11023535B1 (en) | Placement of data volumes in a data center | |
US10048996B1 (en) | Predicting infrastructure failures in a data center for hosted service mitigation actions | |
US10069707B2 (en) | System and method for seamless horizontal scaling using logical scalable units | |
US9363177B2 (en) | System and methods for communicating in a telecommunication network via independent key routing and proxies | |
US11210308B2 (en) | Metadata tables for time-series data management | |
JP2017538200A (en) | Service addressing in a distributed environment | |
US11347808B1 (en) | Dynamically-adaptive bloom-filter | |
US11122110B2 (en) | Blockchain-based file processing method, apparatus, and device, and storage medium | |
CN114153566A (en) | Cross-processor architecture multi-container inter-cluster service discovery method, device and equipment | |
WO2015081908A2 (en) | Method, device, and system for updating parameter value | |
US20150032756A1 (en) | Normalized searchable cloud layer | |
US11863612B2 (en) | Network edge computing and network edge computation scheduling method, device and medium | |
US11159607B2 (en) | Management for a load balancer cluster | |
US20180157699A1 (en) | Identifying schema changes in a data streaming system | |
US9380018B2 (en) | System and method for communicating in a telecommunication network via common key routing and proxies | |
CN117389830A (en) | Cluster log acquisition method and device, computer equipment and storage medium | |
WO2016101759A1 (en) | Data routing method, data management device and distributed storage system | |
US20170153870A1 (en) | Server and method for ranking data sources | |
WO2016095716A1 (en) | Fault information processing method and related device | |
US9363224B2 (en) | System and methods for communicating in a telecommunication network using common key routing and data locality tables | |
US9338126B2 (en) | System and method for communicating in a telecommunication network via independent key routing and data locality tables |