Search

CN-121681006-B - Cloud integration method and device for oil and gas industrial software

CN121681006BCN 121681006 BCN121681006 BCN 121681006BCN-121681006-B

Abstract

The invention discloses a cloud integration method and device of oil and gas industrial software, wherein the method comprises the steps of receiving an operation instruction of the oil and gas industrial software sent by a user terminal; when the operation instruction is a software starting instruction, the optimal software instance is selected from a software instance resource pool, a persistent two-way communication connection is established with a remote application program service based on a preset remote desktop protocol, the selected software instance is started, when the operation instruction is not the software starting instruction, the operation instruction is converted through the preset remote desktop protocol and then is sent to the started software instance, a real-time picture of the software instance sent by the started software instance through the preset remote desktop protocol is received and converted into a browser interface rendering format of the user terminal, and then the real-time picture is pushed to the user terminal. The invention can directly access the oil and gas industrial software through the browser.

Inventors

  • CHEN JIAZHI
  • WANG TIECHENG
  • XIANG JIAN
  • WANG ZHIWEI
  • LIU TONGBIN
  • JIN JIAQI

Assignees

  • 昆仑数智科技有限责任公司
  • 中国石油天然气股份有限公司

Dates

Publication Date
20260512
Application Date
20260209

Claims (13)

  1. 1. The cloud integration method of the oil and gas industrial software is characterized by being applied to a background service cluster and comprising the following steps of: Receiving an operation instruction of oil and gas industrial software sent by a user terminal; When the operation instruction is a software starting instruction, selecting an optimal software instance from a pre-constructed software instance resource pool according to the software parameters of an operation object in the operation instruction, establishing persistent two-way communication connection with a remote application program service based on a preset remote desktop protocol, and starting the selected software instance so that the selected software instance is integrated into the remote application program service; When the operation instruction is not a software starting instruction, a software instance which is started by software related to an operation object is obtained, the operation instruction is converted through a preset remote desktop protocol and then is sent to the started software instance, a real-time picture of the software instance which is sent by the started software instance through the preset remote desktop protocol is received, difference data of current graphic frame data and previous graphic frame data of the real-time picture are calculated, dirty rectangles are obtained according to the difference data, noise reduction and combination are conducted on the dirty rectangles, importance levels of the dirty rectangles are determined according to the coordinate boundaries and the importance levels of the functional areas of the dirty rectangles, descending order is conducted on the dirty rectangles according to the weight and the area of the dirty rectangles to form a transmission queue, each dirty rectangle in the transmission queue is converted into a browser interface rendering format of a user terminal according to the coordinate precision parameter and a basic conversion matrix which are bound to the functional area of the dirty rectangles, and the dirty rectangles in the browser interface format are pushed to a browser interface of the user terminal according to the sequence of the transmission queue.
  2. 2. The method of claim 1, further comprising, prior to screening the optimal software instance from the pre-built pool of software instance resources based on the software parameters of the object of operation in the operation instructions: Forwarding the operation instruction to an authentication center through a pre-configured service gateway for identity verification; According to the software parameters of the operation object in the operation instruction, the method for screening the optimal software instance from the pre-constructed software instance resource pool comprises the following steps: and after the authentication is successful, selecting an optimal software instance from a pre-constructed software instance resource pool according to the software parameters of the operation object in the operation instruction.
  3. 3. The method as recited in claim 1, further comprising: receiving state data of equipment deployed by the software instance; Calculating each health index value of each device according to the collected state data, and calculating the comprehensive health degree of each device according to all the health index values; Adding a software instance on the equipment with the comprehensive health degree larger than the preset health degree threshold value into a software instance resource pool; and deleting the software instance on the device with the comprehensive health degree smaller than the preset health degree threshold from the software instance resource pool.
  4. 4. The method as recited in claim 1, further comprising: Inputting data into a software instance prediction model by using the software instance of the second preset duration to obtain the required quantity of the software instance of the third preset duration in the future, wherein the software instance prediction model is obtained by training a machine learning model; According to the resource occupation amount of each software instance to the equipment, calculating the hardware resource required by each software instance; Determining a preset starting time of each software instance according to the starting time and the data loading time of each software instance; locking hardware resources required by each software instance in a fourth preset time before the preheating starting time, and marking the hardware resources as preheating occupancy; when the preheating time window arrives, starting a corresponding software instance, executing automatic verification, and entering a standby state after the verification is passed; After receiving the software start instruction, the software instance is modified from a standby state to an operating state, so that the software instance is integrated into the remote application service.
  5. 5. The method of claim 1, wherein selecting optimal software instances from a pre-built pool of software instance resources based on software parameters of an object of operation in the operation instructions, comprises: After operation instructions of a plurality of users are obtained at the same time, determining the priority of the users according to the identity tokens in the operation instructions; And screening optimal software examples from all idle software examples in a software example resource pool for each user in turn according to the sequence from the high weight value to the low weight value corresponding to the priority of the user, wherein the software example with the highest comprehensive matching degree index value with the user is used as the optimal software example during each screening.
  6. 6. The method of claim 1, wherein selecting optimal software instances from a pre-built pool of software instance resources based on software parameters of an object of operation in the operation instructions, comprises: if the operation instruction is a multi-version collaboration request, generating a version combination identifier, wherein the multi-version collaboration request comprises a software type, a version combination and a collaboration scene; According to the version combination identification, screening the optimal software instance corresponding to each version in the version combination from a software instance resource pool, calling a version compatibility interface, and checking the feasibility of data interaction among the optimal software instances; If the verification is passed, calculating the occupation amount of resources for a plurality of optimal software instances of the version combination; Comparing the resource occupation amount with the minimum required resource occupation amount of the version combination in a resource demand matrix; And if the resource occupation amount of the version combination meets the minimum required resource occupation amount, establishing a special communication channel for a plurality of optimal software instances of the version combination.
  7. 7. The method of claim 1, wherein converting the real-time screen into a browser interface rendering format of the user terminal comprises: Dividing the real-time picture according to the functional areas by adopting a semantic dividing algorithm, and recording boundary coordinates of each functional area; Dividing importance levels for the functional areas; Binding coordinate precision parameters for functional areas with different importance levels; Obtaining the screen resolution and window size of a user terminal, and calculating a basic conversion matrix of a global coordinate system of a real-time picture and a screen coordinate system of the user terminal; And converting the real-time picture into a browser interface rendering format of the user terminal according to the coordinate precision parameters and the basic conversion matrix bound by the functional areas with different importance levels.
  8. 8. The method of claim 1, wherein the received operation instruction is a successfully matched preprocessed operation instruction; the operation instruction of the preprocessing of successful matching is obtained by the user terminal through the following steps: The method comprises the steps that user operation data are collected through a data collection module integrated with a browser page, and the data collection module operates in an asynchronous mode; forming an operation sequence from user operation data collected within a preset time period; Obtaining a predicted operation instruction candidate set according to the operation sequence and the user operation prediction model; Screening operation instructions with probability higher than a first set threshold value from the operation instruction candidate set, and taking the operation instructions as preprocessed operation instructions; And monitoring the operation executed by the user, and when the operation executed by the user is completely matched with a preprocessed operation instruction, taking out the preprocessed operation instruction which is successfully matched.
  9. 9. The method of claim 8, wherein obtaining a predicted candidate set of operating instructions based on the sequence of operations and the user operation prediction model comprises: Comparing the operation sequence with the characteristics of the operation modes in the user operation prediction model to determine the operation mode corresponding to the operation sequence; And inputting the operation mode and the operation sequence into a user operation prediction model to obtain a predicted operation instruction candidate set.
  10. 10. The cloud integration device of the oil and gas industrial software is characterized by being applied to a background service cluster and comprising: the operation instruction receiving module is used for receiving an operation instruction of the oil and gas industrial software sent by the user terminal; The system comprises a software starting module, a software instance resource pool, a remote application program service, a remote desktop protocol, a software starting module, a remote application program service and a service gateway, wherein the software starting module is used for forwarding an operation instruction to the authentication center through the pre-configured service gateway to carry out identity verification when the operation instruction is the software starting instruction; The interactive module is used for obtaining a software instance which is started by software related to an operation object when the operation instruction is not a software starting instruction, converting the operation instruction through a preset remote desktop protocol and then sending the operation instruction to the started software instance, receiving a real-time picture of the software instance which is sent by the started software instance through the preset remote desktop protocol, calculating difference data between current graphic frame data of the real-time picture and previous graphic frame data, obtaining dirty rectangles according to the difference data, reducing noise and combining the dirty rectangles, determining importance levels of the dirty rectangles according to the coordinate boundaries and the importance levels of the function areas of the dirty rectangles, sorting the dirty rectangles in a descending order according to the weight and the area of the dirty rectangles to form a transmission queue, converting the dirty rectangles into a browser interface rendering format of a user terminal according to the coordinate precision parameter and a basic conversion matrix which are bound to the function area of the dirty rectangles in the transmission queue, and pushing the dirty rectangles in the browser interface rendering format to the browser interface of the user terminal according to the order of the transmission queue.
  11. 11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 9 when executing the computer program.
  12. 12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 9.
  13. 13. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the method of any of claims 1 to 9.

Description

Cloud integration method and device for oil and gas industrial software Technical Field The invention relates to the technical field of oil and gas industrial software, in particular to a cloud integration method and device of oil and gas industrial software. Background Currently, core specialty software (e.g., mainstream reservoir numerical modeling software, fine geologic modeling software, etc.) relied upon in the oil and gas industry has the general limitation of being highly dependent on localized deployment. When running, the software needs to rely on a high-performance computer or a professional graphic workstation locally for users. Taking oil reservoir numerical simulation software as an example, complex operations need to be performed on massive geological data, fluid flow data and the like, and fine geological modeling software needs to construct a high-precision three-dimensional geological model, so that the requirements on hardware performance are very strict. This requirement makes the software installation and configuration process very cumbersome. The technical staff not only needs to ensure that the operating system is compatible with the software version, but also accurately debug various driving programs, and particularly needs to repeatedly adjust parameters aiming at the configuration of the bottom hardware of the GPU, the CPU and the large memory so as to ensure the normal operation of the software. This not only takes a lot of time and effort, but also requires a skilled person to have a great deal of expertise. Moreover, the user has to invest high capital to purchase a professional graphic workstation in order to meet the software operating conditions. These workstations are not only expensive to purchase, but also require a significant amount of subsequent maintenance and upgrade, including periodic replacement of aging hardware, authorization to upgrade software, etc., further increasing the enterprise burden. Conventional remote desktop solutions, such as direct RDP (remote desktop protocol) or VNC (virtual network computing) connections, have significant drawbacks in terms of convenience. If a user wants to remotely use the relevant software, a specific dedicated client program must be installed locally in advance. This means that different software may correspond to different clients, and the user spends additional time and effort installing and managing. For oil and gas industry practitioners who often need to go out to operate, frequent installation of clients on different devices is inconvenient, and the requirement of directly accessing software through a pure browser at any time and any place is difficult to realize, so that the flexibility and convenience of work are greatly limited, and the requirement of modern high-efficiency office cannot be met. In terms of remote transmission of Graphical User Interfaces (GUIs), especially those involving complex three-dimensional rendering, such as three-dimensional visual presentation of complex geologic structures in fine geologic modeling software, dynamic three-dimensional simulation of multiphase fluid flow in reservoirs in reservoir numerical simulation software, data transmission delay and bandwidth occupation problems are prominent. When a user performs real-time operations such as model rotation, amplification, detail viewing and the like on remote operation software, high delay can cause untimely response of operation instructions, screen blocking is serious, observation and analysis of the model by the user are seriously affected, real-time operation experience and working efficiency are reduced, and efficient exploration, development and research on complex oil and gas reservoirs are hindered. In light of the above dilemma, existing virtualization platform solutions, while providing users with remote access capabilities to some extent, still suffer from significant drawbacks in many key respects. In terms of protocol conversion efficiency, optimization for professional graphics applications is lacking. The graphic data of the oil-gas professional software is huge and complex, and the existing virtualization platform cannot efficiently process the data in the protocol conversion process, so that the graphic display quality is reduced and the operation delay is increased. In terms of native compatibility of modern Web browsers, the functional advantages of the browser are difficult to fully develop, and when a user accesses software by using the browser, the situations of limited functions, abnormal interface display and the like often occur. Therefore, a scheme for directly accessing and using complex professional oil and gas industrial software only through a standard browser is needed at present, efficient protocol conversion is required to be realized, multi-tenant sharing and multi-version software instance coexistence are supported, and the display effect is good. Disclosure of Invention The embodiment of the inven