CN105635263B - Access processing method and adapter based on backstage caching - Google Patents

Access processing method and adapter based on backstage caching Download PDF

Info

Publication number
CN105635263B
CN105635263B CN201510994074.6A CN201510994074A CN105635263B CN 105635263 B CN105635263 B CN 105635263B CN 201510994074 A CN201510994074 A CN 201510994074A CN 105635263 B CN105635263 B CN 105635263B
Authority
CN
China
Prior art keywords
address
host
shared drive
machine
request
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.)
Active
Application number
CN201510994074.6A
Other languages
Chinese (zh)
Other versions
CN105635263A (en
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.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky 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 China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN201510994074.6A priority Critical patent/CN105635263B/en
Publication of CN105635263A publication Critical patent/CN105635263A/en
Application granted granted Critical
Publication of CN105635263B publication Critical patent/CN105635263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Hardware Redundancy (AREA)

Abstract

The embodiment of the invention discloses a kind of access processing methods and adapter, system based on backstage caching, the described method includes: adapter receives the request string that foreground system is sent, the request string is combined by access request grouping and its corresponding host IP address and standby host IP address;It inquires in shared drive with the presence or absence of all IP address in the request string;If all IP address are not to initialize shared drive all in shared drive, and inquiry shared drive whether there is all IP address in the request string again in the request string;If all IP address in the request string all in shared drive, find the current the smallest machine of IP connection number, connects with current IP connection number the smallest machine, the result is simultaneously returned to the foreground system by acquisition result.The load balancing for accessing hind computation system, greatly reduces the data pressure of hind computation system, improves cache hit rate, reach efficient active-standby switch.

Description

Access processing method and adapter based on backstage caching
Technical field
The present invention relates to data processing technique more particularly to a kind of access processing methods and adaptation based on backstage caching Device.
Background technique
Domestic Civil Aviation Industry, which services, in recent years is flourished, particularly important, the hind computation that shopping engine becomes System is also faced with huge pressure when handling fare data.It is balanced in order to reduce the data pressure to hind computation system Access, can be switched fast, the adapter for accessing computing system becomes indispensable in mechanical disorder.
Adapter is responsible for connection of the foreground system to computing system.If computing system break down or access it is excessively high, It needs the data of foreground system being switched to access standby system.At this moment, it is desirable that adapter can automatically switch to standby system And starts emergency process and guarantee foreground system performance.After computing system is restored, adapter continues data switchback computing system, weight The new host for using computing system.
In view of hind computation system has the caching mechanism of machine on single machine, in order to improve the hit to caching Rate will also destroy the load balancing of entire hind computation system, in this way, just even if making that specific machine is accessed to requests classification Caching and load balancing when needing to access optimize.
It is, therefore, desirable to provide a kind of new access module or access method, can call hind computation system in foreground system It when system, realizes to the load balancing of computing system accesses, reduces the data pressure of computing system, and reach efficiently active and standby and cut It changes and high level cache hit rate.
Summary of the invention
To solve existing technical problem, the embodiment of the present invention provides a kind of access process side based on backstage caching Method and adapter.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is achieved in that
The embodiment of the invention provides a kind of access processing methods based on backstage caching, which comprises
Adapter receives the request string that foreground system is sent, and the request string is by access request grouping and its corresponding host IP address and standby host IP address are combined into;
It inquires in shared drive with the presence or absence of all IP address in the request string;
If all IP address are not to initialize shared drive, and again all in shared drive in the request string Shared drive is inquired with the presence or absence of all IP address in the request string;
If in shared drive, it is the smallest all to find current IP connection number for all IP address in the request string Machine is connect with the current the smallest machine of IP connection number, obtains result and the result is returned to the foreground system.
Wherein, the method also includes: before connecting with the current the smallest machine of IP connection number, update the machine IP connection number, and the control block for controlling the shared drive is written and read locking to the data block of the machine;Obtaining result Afterwards, it controls the control block and unlock is written and read to the data block of the machine, update the IP connection number of the machine again.
Wherein, if all IP address in the request string are all in shared drive, determine that current only access calculates The host of system still accesses the host and standby host of computing system, if the current host for only accessing computing system, access is altogether The smallest machine of IP connection number is found in the host IP address list for enjoying memory, if the host of current accessed computing system and standby Machine then accesses host IP address list and the standby host IP address list of shared drive, finds the smallest machine of IP connection number.
Wherein, the initialization, comprising:
The control block for controlling the shared drive locks the read-write of all data blocks;
Again all IP address of the request string are inquired whether all in the shared drive;If it is not, then will not IP address in the shared drive is added to the shared drive, updates the IP address number of the control block, described in control Control block unlocks the read-write of all data blocks;
The read-write of all data blocks is unlocked if so, controlling the control block.
Wherein, before receiving the access request that foreground system is sent, the method also includes:
Access request is grouped, each grouping corresponding one by the format that foreground system is decided through consultation by agreement by scheduled strategy Each access request is grouped and its corresponding host IP address and standby host IP by group host IP address and one group of standby host IP address Request string that location is combined into simultaneously is sent to the adapter.
The embodiment of the invention also provides a kind of adapter, the adapter includes:
Receiving module, for receiving the request string of foreground system transmission, request string is grouped and its right by access request The host IP address and standby host IP address answered are combined into;
Enquiry module, for inquiring in shared drive with the presence or absence of all IP address in the request string;
Initialization module is that all IP address are not all altogether in request string for the result in the enquiry module When enjoying memory, then shared drive is initialized, and return to enquiry module;
Access modules are all IP address in request string all shared interior for the result in the enquiry module When depositing, then the current the smallest machine of IP connection number is found, connect with the current the smallest machine of IP connection number, obtains result and by institute It states result and returns to the foreground system.
Wherein, the access modules are also used to:
Before connecting with the current the smallest machine of IP connection number, the IP connection number of the machine is updated, and described in control The control block of shared drive is written and read locking to the data block of the machine;
After obtaining result, controls the control block and unlock is written and read to the data block of the machine, update institute again State the IP connection number of machine.
Wherein, the access modules are used for: if all IP address in the request string all in shared drive, really The host that computing system is only accessed before settled still accesses the host and standby host of computing system, if currently only accessing computing system Host, then the host IP address list for accessing shared drive finds the smallest machine of IP connection number, if current accessed calculates The host and standby host of system then access host IP address list and the standby host IP address list of shared drive, find IP connection number The smallest machine.
Wherein, the initialization module is used for: the control block for controlling the shared drive adds the read-write of all data blocks Lock;Again all IP address of the request string are inquired whether all in the shared drive;If it is not, then will be not described IP address in shared drive is added to the shared drive, updates the IP address number of the control block, controls the control block The read-write of all data blocks is unlocked;The read-write of all data blocks is unlocked if so, controlling the control block.
The embodiment of the invention also provides a kind of access process systems based on backstage caching, and the system comprises foregrounds System, computing system and above-mentioned adapter, wherein foreground system, the format for being decided through consultation by agreement, by access request By scheduled strategy grouping, the corresponding one group of host IP address of each grouping and one group of standby host IP address, by each access request point Request string that group and its corresponding host IP address and standby host IP address are combined into simultaneously is sent to the adapter.
The embodiment of the present invention calls backstage in foreground system using the combination of the technologies such as shared drive, counter, control lock Computing system when, make hind computation system access load balancing, greatly reduce the data pressure of hind computation system.And By the cache policy of hind computation system, and using the access strategy of load balancing, cache hit rate is further improved, and Efficient active-standby switch can be reached.
Detailed description of the invention
In attached drawing (it is not necessarily drawn to scale), similar appended drawing reference can describe phase in different views As component.Similar reference numerals with different letter suffix can indicate the different examples of similar component.Attached drawing with example and Unrestricted mode generally shows each embodiment discussed herein.
Fig. 1 is a flow diagram of access processing method of the embodiment of the present invention;
Fig. 2 is another flow diagram of access processing method of the embodiment of the present invention;
Fig. 3 is another flow diagram of access processing method of the embodiment of the present invention;
Fig. 4 is the composed structure schematic diagram of adapter of the embodiment of the present invention;
Fig. 5 is the composed structure schematic diagram of access process of embodiment of the present invention system.
Specific embodiment
The embodiment of the present invention is using shared drive, counter, the combination for controlling the technologies such as lock, foreground system to calculating system The direct access of system, is converted to three layers of call relation of adapter intermediate coordination, to call the calculating on backstage in foreground system When system, make the load balancing of hind computation system access.
As shown in Figure 1, it is provided in an embodiment of the present invention based on backstage caching access processing method, mainly may include as Lower step:
Step 101: access request is strategically grouped, each grouping by the format that foreground system is decided through consultation by agreement Corresponding one group of host IP address and one group of standby host IP address, and the host IP address and standby host that each access request is corresponding IP address is combined into request string, is sent to adapter, and adapter receives the request and goes here and there, analysis request string, with decompositing host ip Location group and standby host IP address group;
Step 102: adapter traverses the IP address list in shared drive, inquires the IP address of the request string shared Whether all exist in memory;
If the IP address of the request string all exists in shared drive, continue step 109;If the request string IP address be not all to exist in shared drive, then continue step 103;If
Step 103: the control block for controlling shared drive locks the read-write of its all data block;
Step 104: traversing the IP address list in shared drive again;
Step 105: whether the IP address of the inquiry request string is in the IP address list of shared drive;, if it is, Continue step 108;Otherwise continue step 106;
Step 106: the IP address not in shared drive is added in shared drive;
Step 107: updating the IP address number of control block;
Step 108: the control block for controlling shared drive unlocks the read-write of all data blocks;
Step 109: determine the current host system for only accessing computing system, or access computing system host system and The reserve system of computing system;
Step 1010: if only accessing host, accessing shared drive, inquire the IP address list of host, find connection The smallest IP address of number;If accessing host system and reserve system, shared drive is accessed, the IP address list of host is inquired With the IP address list of standby host, the current the smallest machine of IP connection number is found;
Step 1011: the IP connection number of IP connection number minimum machine is added 1 by control block, and by the read-write of the machine data block It locks;
Step 1012: adapter is connect with the current the smallest machine of IP connection number, obtains result;
Step 1013: control block unlocks the data block of IP connection number minimum machine, and subtracts 1 for IP connection number;
Step 1014: the result of acquisition is returned to foreground system by adapter, and process terminates.
Wherein, there is also in step 1012 time-out situation, if time-out do not receive yet as a result, if adapter still Step 1013 is executed, and time exceeded message is returned into foreground system in step 1014.
Specifically, the access method of the embodiment of the present invention can also be realized by process shown in Fig. 2, it is specific as follows:
Step 201: access request is strategically grouped, each grouping by the format that foreground system is decided through consultation by agreement Corresponding one group of host IP address and one group of standby host IP address, and the host IP address and standby host that each access request is corresponding IP address is combined into request string, is sent to adapter, and adapter receives the request and goes here and there, analysis request string, with decompositing host ip Location group and standby host IP address group;
Step 202: the IP address of machine in the computing system that adapter is provided by foreground system, inquiring these addresses is It is no all in shared drive;
Wherein, specific shared drive is searched by the system shared drive key assignments (ipckey) configured (sharememory) position is gone in memory to read corresponding structural data.
Step 203: if not all existing in shared drive, entering step 204;Otherwise, it is directly entered step 208;
Step 204: the control block of shared drive locks the read-write of its all data block, prevents from writing data behaviour between multi-process Work conflicts;
Wherein, control block is the data in shared drive, prevents data writing operation from rushing by locking mechanisms between multiple processes It is prominent.
Step 205: traversing the IP address list in shared drive again, whether check after locking has address not yet altogether It enjoys in memory and initializing.If it is, continuing step 207;Otherwise continue step 206;
Step 206: the IP address not in shared drive is added in shared drive.
Step 207: updating the IP address number of control block, control block unlocks the read-write of all data blocks;
Wherein, it needs to record existing IP address sum i.e. IP address number in step 206-207, in control block, and builds Found the index of each IP address.
Step 208: the active and standby information that adapter checking monitoring program provides determines the current host for only accessing computing system System, or access the host system of computing system and the reserve system of computing system;
Wherein, computing system host system is monitored using monitoring programme, whether checks computing system host system Normally.Analog value is set in shared drive, and indicating adapter, this uses host system or host system and reserve system.
Step 209: access shared drive finds the smallest machine of IP connection number in main (standby) machine IP address list.
Wherein, the smallest by IP connection number in shared drive lookup host (standby host) IP address list.Concrete mode are as follows: Memory address existing for control block is found by ipckey, memory address is formatted, uses IP address as key, circulation Find the corresponding connection number of each IP.Number of request is an IP address of request computing system every time, by the IP connection of the address Number plus 1 obtains subtracting 1 for IP connection number after result (time-out).
Wherein, if currently used is host, the IP connection number minimum machine of host is just looked for, if currently used is Standby host looks for the IP connection number minimum machine of standby host.
Step 210: control block is by the access number (i.e. IP connection number) of IP connection number minimum machine plus 1, and by its data block Read-write lock;
Step 211: the smallest machine of connection number establishes connection in the computing system on adapter and backstage, sends request, obtains To result or time-out, control block unlocks the read-write of the data block of IP connection number minimum machine, and by it by access number (i.e. IP Connection number) subtract 1;
Wherein, in step 11, adapter issues request to finally selected computing system machine, and obtain as a result, Result is returned into host process.
Step 212: obtained result information or time-out information are returned into foreground system.
The embodiment of the present invention uses share memory technology, control lock technology etc., and adapter and monitoring programme can adopt It is developed, is repeated no more with C++.
Such as Fig. 3, access processing method of the embodiment of the present invention can also realize that detailed process is such as by following process Under:
Step 301: access request is strategically grouped by the format that foreground is decided through consultation by agreement, to each grouping pair It answers one group of host IP address and one group of standby host IP address to be combined into request string and is sent to computing system adapter.
Wherein, the access request on foreground can be split request by certain key assignments strategy, will according to the strategy The every group of request split corresponds to specific key assignments, passes through pre-configured corresponding n (n is the integer not less than 1) the platform master of key assignments Machine machine and m (m is the integer not less than 1) platform standby host machine sends with corresponding IP address (active/standby) every group of request to suitable Orchestration.
Due to being related to sending data between process, foreground system and adapter can be deployed under same set of environmental services.This Inventive embodiments are disposed using tuxedo mode, and foreground system can split request according to mentioned above principle, are divided into multiple requests, are led to Tpcall (tpacall) mode for crossing tuxedo is sent to adapter, and multiple adapters can all receive corresponding request, then right Address resolution in request has related to transport protocol between the two here.
Since IP address can be multiple, there are also main and standby relations, i.e. random length, it is common practice that either using identifier Flag byte length.For example, identifier 1 can be used and divide main IP's and standby IP if identifier is used to distinguish Actual request divides each IP address between main (standby) IP address list using identifier 2.
Step 302: whether adapter checks these addresses all in shared drive by the computing system IP address provided In.
Specifically, using share memory structured data, at linux by ipckey by memory address and Fixed data do correspondence, then the corresponding data of structuring, correspond to IP information to data search.
Step 303: if not all there is shared drive, initialized by step 304 to step 307, if existing, It is directly entered step 308.
Step 304: the control block of shared drive locks its all data block;
In practical application, data in shared drive are directly operated, unlock is added to the data, prevents from reading IP data later It is clashed when writing.
In practical application, creation shared drive shared drive is broadly divided into two parts when service starts: control block and data Block, control block are used to lock or unlock the read-write of data block, and each data block is for storing the relevant information of a machine.One Control block can manage multiple data blocks simultaneously, and a data block corresponds to a machine of computing system.
Wherein, control block may include following information: the machine quantity that is saved in current background state, shared drive, IP address number and the index established for each IP.Wherein, current background state (status) value is P or A, and P is indicated only Host computing system is accessed, does not access standby host computing system, A indicates accessible host computing system and standby host computing system. The machine quantity saved in shared drive is recorded as serverNo.
Wherein, each data block storage is the relevant all information of a machine, and a data block may include one The IP (sitaServerIp [16]) of machine, the port (port) of machine, machine the information such as IP connection number (connNums).
Step 305: traversing the IP address list in shared drive again and check after locking whether have address not yet altogether It enjoys in memory and initializing.If it is, continuing step 307;Otherwise continue step 306;
Specifically, the IP address information in shared drive is read again, is prevented before locking to this is interior during locking The data deposited are modified by other processes, are thrown into question.Find that the IP address information does not have still if read again, then to the knot The IP address information is written in structure data, and initializes corresponding data.The IP configuration index of final updating entirety again will Total writes back in shared drive.
Step 306: the IP address not in shared drive is added in shared drive.
Step 307: updating IP address number in control block, control block unlocks all data blocks.
Step 308: the active and standby information that checking monitoring program provides determines the current host system for only accessing computing system, Or the host system of access computing system and the reserve system of computing system.
Here, monitoring programme carries out relevant operation for receiving monitoring message.If monitoring system finds that computing system is raw The threshold value that resource anxiety is more than setting is produced, then updating shared drive state is A;If computing system host system restores message, Then updating shared drive state is P.
Step 309: access shared drive finds the smallest machine of IP connection number in main (standby) machine IP address list.
Step 310: the access number of IP connection number minimum machine is added 1 by control block, and the read-write of its data block is locked;
Step 311: adapter and the smallest machine of IP connection number establish connection, send a request to computing system, are counted The result or obtain time-out information that calculation system returns, control block unlock the data block of IP connection number minimum machine, and by its Access number subtracts 1.
Step 312: result information (time-out information) is returned into foreground system.
In embodiments of the present invention, pass through foreground system, the adapter for access process and background computer system The collaborative work of these three parts handles access request.Foreground system utilizes shared drive, meter when calling hind computation system The technologies such as number device, control lock, which are realized to reach the load balancing of computing system accesses, to be reduced the pressure of computing system, active and standby cuts It changes and high level cache hit rate.The share memory technology that the embodiment of the present invention utilizes, timing monitor background system, to access system meter The modes such as number locking, strategically access computing system, increase the cache hit rate of computing system, and to a certain extent Load balancing.
Such as Fig. 4, the embodiment of the invention also provides a kind of adapters, and for realizing above-mentioned access processing method, this is suitable Orchestration includes following part:
Receiving module 41, for receiving the request string of foreground system transmission, request string be grouped by access request and its Corresponding host IP address and standby host IP address are combined into;
Enquiry module 42, for inquiring in shared drive with the presence or absence of all IP address in the request string;
Initialization module 43 is that all IP address are not all in request string for the result in the enquiry module 42 In shared drive, then shared drive is initialized, and return to enquiry module;
Access modules 44 are all IP address in request string all altogether for the result in the enquiry module 42 When enjoying memory, then the current the smallest machine of IP connection number is found, connect with the current the smallest machine of IP connection number, obtains result simultaneously The result is returned into the foreground system.
Wherein, the access modules 44 are also used to: before connecting with the current the smallest machine of IP connection number, described in update The IP connection number of machine, and the control block for controlling the shared drive is written and read locking to the data block of the machine;It is obtaining It after obtaining result, controls the control block and unlock is written and read to the data block of the machine, the IP for updating the machine again connects Connect number.
Wherein, the access modules 44 are used for: if all IP address in the request string all in shared drive, Determine that the current host for only accessing computing system still accesses the host and standby host of computing system, if current only access calculates system The host of system, then the smallest machine of IP connection number is found in the host IP address list for accessing shared drive, if current accessed meter The host and standby host of calculation system then access host IP address list and the standby host IP address list of shared drive, find IP connection The smallest machine of number.
Wherein, the initialization module 43 is used for: controlling the control block of the shared drive for the read-write of all data blocks It locks;Again all IP address of the request string are inquired whether all in the shared drive;If it is not, then will be not in institute It states the IP address in shared drive and is added to the shared drive, update the IP address number of the control block, control the control Block unlocks the read-write of all data blocks;The read-write of all data blocks is unlocked if so, controlling the control block.
Such as Fig. 5, the embodiment of the invention also provides a kind of access process system, which includes foreground system, backstage Computing system and adapter as shown in Figure 4.When its actual deployment, adapter have it is multiple, foreground system also have it is multiple, calculate System is also multiple, and a request string can be issued multiple adapters while handled by a foreground system.Here, Access request is grouped, the corresponding one group of master of each grouping by the format that foreground system can be decided through consultation by agreement by scheduled strategy Each access request is grouped and its corresponding host IP address and standby host IP address is spelled by machine IP address and one group of standby host IP address At request string and be sent to the adapter.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (8)

1. a kind of access processing method based on backstage caching, which is characterized in that the described method includes:
Adapter receives the request string that foreground system is sent, and the request string is by access request grouping and its corresponding host ip Location and standby host IP address are combined into;
It inquires in shared drive with the presence or absence of all IP address in the request string;
If all IP address are not to initialize shared drive, and inquire again all in shared drive in the request string Shared drive is with the presence or absence of all IP address in the request string;The initialization, comprising: control the control of the shared drive Clamp dog locks the read-write of all data blocks;Again all IP address of the request string are inquired whether all in the shared drive In;If it is not, then the IP address not in the shared drive is added to the shared drive, the control block is updated IP address number controls the control block and unlocks the read-write of all data blocks;If so, controlling the control block for all data The read-write of block unlocks;
If all IP address in the request string all in shared drive, find the current the smallest machine of IP connection number Device is connect with the current the smallest machine of IP connection number, obtains result and the result is returned to the foreground system.
2. the method according to claim 1, wherein the method also includes:
Before connecting with the current the smallest machine of IP connection number, the IP connection number of the machine is updated, and is controlled described shared The control block of memory is written and read locking to the data block of the machine;
After obtaining result, controls the control block and unlock is written and read to the data block of the machine, update the machine again The IP connection number of device.
3. method according to claim 1 or 2, it is characterised in that:
If all IP address in the request string all in shared drive, determine the current host for only accessing computing system Or the host and standby host of computing system are accessed, if the current host for only accessing computing system, accesses the master of shared drive Machine IP address list finds the smallest machine of IP connection number, if the host and standby host of current accessed computing system, access is altogether Host IP address list and the standby host IP address list for enjoying memory, find the smallest machine of IP connection number.
4. the method according to claim 1, wherein receive foreground system send access request before, institute State method further include:
Access request is grouped, the corresponding one group of master of each grouping by the format that foreground system is decided through consultation by agreement by scheduled strategy Each access request is grouped and its corresponding host IP address and standby host IP address is spelled by machine IP address and one group of standby host IP address It is gone here and there at the request, and request string is sent to the adapter.
5. a kind of adapter, which is characterized in that the adapter includes:
Receiving module, for receiving the request string of foreground system transmission, request string is grouped and its corresponding by access request Host IP address and standby host IP address are combined into;
Enquiry module, for inquiring in shared drive with the presence or absence of all IP address in the request string;
Initialization module is that all IP address are not all shared interior in request string for the result in the enquiry module When depositing, then shared drive is initialized, and return to enquiry module;The initialization includes: the control block for controlling the shared drive The read-write of all data blocks is locked;Again all IP address of the request string are inquired whether all in the shared drive; If it is not, then the IP address not in the shared drive is added to the shared drive, the IP of the control block is updated Number of addresses controls the control block and unlocks the read-write of all data blocks;If so, controlling the control block for all data blocks Read-write unlock;
Access modules are all IP address in request string all in shared drive for the result in the enquiry module When, then the current the smallest machine of IP connection number is found, is connect with the current the smallest machine of IP connection number, acquisition result simultaneously will be described As a result the foreground system is returned to.
6. adapter according to claim 5, which is characterized in that the access modules are also used to:
Before connecting with the current the smallest machine of IP connection number, the IP connection number of the machine is updated, and is controlled described shared The control block of memory is written and read locking to the data block of the machine;
After obtaining result, controls the control block and unlock is written and read to the data block of the machine, update the machine again The IP connection number of device.
7. adapter according to claim 5 or 6, which is characterized in that the access modules are used for:
If all IP address in the request string all in shared drive, determine the current host for only accessing computing system Or the host and standby host of computing system are accessed, if the current host for only accessing computing system, accesses the master of shared drive Machine IP address list finds the smallest machine of IP connection number, if the host and standby host of current accessed computing system, access is altogether Host IP address list and the standby host IP address list for enjoying memory, find the smallest machine of IP connection number.
8. a kind of access process system based on backstage caching, which is characterized in that the system comprises: foreground system calculates system System and such as described in any item adapters of claim 5 to 7, wherein
Access request is grouped, each grouping corresponding one by foreground system, the format for being decided through consultation by agreement by scheduled strategy Each access request is grouped and its corresponding host IP address and standby host IP by group host IP address and one group of standby host IP address Location is combined into the request string, and request string is sent to the adapter.
CN201510994074.6A 2015-12-25 2015-12-25 Access processing method and adapter based on backstage caching Active CN105635263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510994074.6A CN105635263B (en) 2015-12-25 2015-12-25 Access processing method and adapter based on backstage caching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510994074.6A CN105635263B (en) 2015-12-25 2015-12-25 Access processing method and adapter based on backstage caching

Publications (2)

Publication Number Publication Date
CN105635263A CN105635263A (en) 2016-06-01
CN105635263B true CN105635263B (en) 2019-03-05

Family

ID=56049735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510994074.6A Active CN105635263B (en) 2015-12-25 2015-12-25 Access processing method and adapter based on backstage caching

Country Status (1)

Country Link
CN (1) CN105635263B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597904B (en) * 2018-05-25 2023-11-24 海能达通信股份有限公司 Data synchronization method, standby machine and host machine

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1133993A (en) * 1995-03-15 1996-10-23 三菱电机株式会社 Multi-computer system
CA2230550A1 (en) * 1997-03-14 1998-09-14 At&T Corp. Hosting a network service on a cluster of servers using a single-address image
CN1968166A (en) * 2005-11-18 2007-05-23 联通新时讯通信有限公司 Network structure-based intelligent terminal application system
CN101340327A (en) * 2008-08-21 2009-01-07 腾讯科技(深圳)有限公司 Method, system and domain name parsing server implementing load balance of network server
CN101938504A (en) * 2009-06-30 2011-01-05 深圳市融创天下科技发展有限公司 Cluster server intelligent dispatching method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1133993A (en) * 1995-03-15 1996-10-23 三菱电机株式会社 Multi-computer system
CA2230550A1 (en) * 1997-03-14 1998-09-14 At&T Corp. Hosting a network service on a cluster of servers using a single-address image
CN1968166A (en) * 2005-11-18 2007-05-23 联通新时讯通信有限公司 Network structure-based intelligent terminal application system
CN101340327A (en) * 2008-08-21 2009-01-07 腾讯科技(深圳)有限公司 Method, system and domain name parsing server implementing load balance of network server
CN101938504A (en) * 2009-06-30 2011-01-05 深圳市融创天下科技发展有限公司 Cluster server intelligent dispatching method and system

Also Published As

Publication number Publication date
CN105635263A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN109491928A (en) Buffer control method, device, terminal and storage medium
CN112000421A (en) Management scheduling technology based on super-fusion architecture
CN109597567B (en) Data processing method and device
CN101727555A (en) Access control method for operation system and implementation platform thereof
CN102882983A (en) Rapid data memory method for improving concurrent visiting performance in cloud memory system
CN103491155A (en) Cloud computing method and system for achieving mobile computing and obtaining mobile data
CN109918359A (en) Database service persistence method and system based on swarm
CN113014611B (en) Load balancing method and related equipment
CN104618304A (en) Data processing method and data processing system
CN105683928A (en) Data caching policy in multiple tenant enterprise resource planning system
CN111416825A (en) Inter-thread lock-free log management method and system, terminal and storage medium
CN107071045A (en) A kind of resource scheduling system based on multi-tenant
CN111464331B (en) Control method and system for thread creation and terminal equipment
CN106533961A (en) Flow control method and device
CN109981767A (en) HANA data bank access method, device, system, equipment and storage medium
CN106973091B (en) Distributed memory data redistribution method and system, and master control server
US11625273B1 (en) Changing throughput capacity to sustain throughput for accessing individual items in a database
CN105978744B (en) A kind of resource allocation methods, apparatus and system
CN105635263B (en) Access processing method and adapter based on backstage caching
CN108366110A (en) A kind of website data interactive system and method
CN102868594B (en) Method and device for message processing
CN102420856B (en) Data processing method and equipment
CN107704618A (en) A kind of heat based on aufs file system migrates method and system
US11580082B2 (en) Object storage system with control entity quota usage mapping
CN107295093A (en) A kind of cloud computing platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 100085 Yumin Street, Houshayu Town, Shunyi District, Beijing

Patentee after: CHINA TRAVELSKY HOLDING Co.

Address before: 100010, Beijing, Dongcheng District East Fourth Street, West 157

Patentee before: CHINA TRAVELSKY HOLDING Co.

CP02 Change in the address of a patent holder