WO2019205346A1 - Operation and maintenance method and device for bi tool, computer device, and storage medium - Google Patents

Operation and maintenance method and device for bi tool, computer device, and storage medium Download PDF

Info

Publication number
WO2019205346A1
WO2019205346A1 PCT/CN2018/099777 CN2018099777W WO2019205346A1 WO 2019205346 A1 WO2019205346 A1 WO 2019205346A1 CN 2018099777 W CN2018099777 W CN 2018099777W WO 2019205346 A1 WO2019205346 A1 WO 2019205346A1
Authority
WO
WIPO (PCT)
Prior art keywords
maintenance
tool
instruction
server
operated
Prior art date
Application number
PCT/CN2018/099777
Other languages
French (fr)
Chinese (zh)
Inventor
黄涛
杨勇
宋剑锋
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019205346A1 publication Critical patent/WO2019205346A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Definitions

  • the present invention relates to the field of operation and maintenance technologies of data mining software, and in particular, to a method, device, computer device and storage medium for operating and maintenance of a BI tool.
  • BI analysis tools are also known as BI tools.
  • the BI tool is a tool that effectively integrates the system data applied in the enterprise and provides reports quickly and accurately. It can help users understand the required enterprise information and help users make business decisions.
  • Common BI tools are Cognos, Pentaho, Tableau, etc.
  • the operation and maintenance personnel usually observe the running application state, locate the position where the problem may occur, and then operate the BI tool through the console.
  • a server cluster that usually deploys BI tools contains more servers, and there may be more nodes involved in operation and maintenance.
  • the operation and maintenance of BI tools through existing operation and maintenance methods is relatively inefficient.
  • the application provides an operation and maintenance method of a BI tool, and the method includes:
  • Determining an operable object at the same level as the operation and maintenance object, and/or an operable object having a hierarchy lower than the hierarchy of the operation and maintenance object is an operation and maintenance object to be operated;
  • the hierarchy of the operation and maintenance object includes a subsystem hierarchy, a logical unit hierarchy, and an application node hierarchy.
  • the operating state of the BI tool is monitored, and when the operating state of the BI tool meets the operation and maintenance conditions, the operation and maintenance operation instruction is triggered, including:
  • the operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
  • the operating state of the BI tool is monitored, and when the operating state of the BI tool meets the operation and maintenance conditions, the operation and maintenance operation instruction is triggered, including:
  • the operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
  • the operating state of the BI tool is monitored, and when the operating state of the BI tool meets the operation and maintenance conditions, the operation and maintenance operation instruction is triggered, including:
  • system time is a preset time, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to perform data synchronization on the BI tool;
  • the operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
  • Determining that the preset server among the objects to be operated is a server to be synchronized
  • Data synchronization is performed on the server to be synchronized.
  • the method further includes:
  • the operation and maintenance operation instruction is triggered according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
  • the method further includes:
  • the alarm information is sent.
  • the application also provides an operation and maintenance device of a BI tool, the device comprising:
  • a monitoring module configured to monitor an operating state of the BI tool, and trigger an operation and maintenance operation instruction when the running state of the BI tool meets an operation and maintenance condition
  • An acquiring module configured to acquire an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object
  • a determining module configured to determine an operable object at the same level as the operation and maintenance object, and/or an operable object whose level is lower than the level of the operation and maintenance object is an operation and maintenance object to be operated;
  • the processing module is configured to perform operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
  • the hierarchy of the operation and maintenance object includes a subsystem hierarchy, a logical unit hierarchy, and an application node hierarchy.
  • the monitoring module is specifically configured to:
  • the processing module is specifically configured to:
  • the monitoring module is specifically configured to:
  • the processing module is specifically configured to:
  • the monitoring module is specifically configured to:
  • system time is a preset time, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to perform data synchronization on the BI tool;
  • the processing module is specifically configured to:
  • Determining that the preset server among the objects to be operated is a server to be synchronized
  • Data synchronization is performed on the server to be synchronized.
  • the apparatus further includes:
  • a display module configured to display a selection page of the operation and maintenance operation, where the selection page includes an operation and maintenance operation and an operation and maintenance object;
  • the triggering module is configured to trigger an operation and maintenance operation instruction according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
  • the apparatus further includes:
  • the reminding module is configured to: after the operation and maintenance of the operation and maintenance object to be operated, obtain the information that the BI tool runs abnormally, and send an alarm message.
  • the application also provides a computer device comprising a memory and a processor, the memory for storing at least one instruction, the processor for executing the at least one instruction to implement the BI described in any embodiment The operation and maintenance method of the tool.
  • the present application also provides a non-volatile readable storage medium, wherein the non-volatile readable storage medium stores at least one instruction, which is implemented in any embodiment when executed by a processor The operation and maintenance method of the BI tool.
  • the present application triggers an operation and maintenance operation instruction by monitoring an operation state of the BI tool, and when the operation state of the BI tool meets an operation and maintenance condition; acquiring an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object; an operable object that is at the same level as the operation and maintenance object, and/or an operable object whose hierarchy is lower than the hierarchy of the operation and maintenance object is an operation and maintenance object to be operated;
  • the operation and maintenance operation indicated by the operation and maintenance operation instruction performs operation and maintenance on the operation and maintenance object to be operated.
  • the operation and maintenance operation instruction is automatically triggered, and when the operation and maintenance object is determined, the operable object at the same level as the operation and maintenance object is determined according to the hierarchy of the operation and maintenance object, and The operation object that is lower than the hierarchy of the operation and maintenance object is the operation and maintenance object to be operated. Therefore, the operation and maintenance object indicated by the operation and maintenance operation instruction can determine that multiple objects are to be operated and operated, and then The operation object is operated and maintained. No maintenance personnel are required to manually monitor and perform operation and maintenance processing one by one, which greatly improves the efficiency of operation and maintenance.
  • FIG. 1 is a flowchart of an operation and maintenance method of a BI tool according to an embodiment of the present application
  • FIG. 2 is a diagram showing an example of a hierarchy of an operation and maintenance object in the embodiment of the present invention
  • FIG. 3 is a block diagram of an operation and maintenance apparatus of a BI tool according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a computer apparatus according to a preferred embodiment of the present invention for implementing an operation and maintenance method of a BI tool.
  • FIG. 1 is a flowchart of an operation and maintenance method of a BI tool according to an embodiment of the present application.
  • the order of the steps in the flowchart may be changed according to different requirements, and some steps may be omitted.
  • S10 Monitor an operating state of the BI tool, and trigger an operation and maintenance operation instruction when the running state of the BI tool meets an operation and maintenance condition.
  • the operation and maintenance method of the BI tool described in this application can be used for operation and maintenance of any BI tool deployed in Cognos, Pentaho, Tableau, or at least two BI tools deployed in Cognos, Pentaho, and Tableau. Operation and maintenance.
  • the above operation and maintenance instructions include, but are not limited to, restarting BI tool instructions, starting BI tool instructions, suspending BI tool instructions, clearing cache instructions, cleaning log instructions, data synchronization instructions, and model issuing instructions.
  • the instruction to restart the BI tool is used to restart the BI tool.
  • the Start BI Tools command is used to launch the BI tool from the shutdown state.
  • the pause BI tool instruction is used to tentatively set the running BI tool, and the cleanup cache instruction is used to clean up the cache in the BI system, such as cleaning up a Cognos cache.
  • the cleanup log directive is used to log the BI system runtime, such as cleaning up a Cognos log.
  • the data synchronization instructions are used to synchronize data between different BI systems, such as synchronizing the specified data in the current first Cognos system to the second Cognos system.
  • the model release directive is used to publish the model.
  • the model is used to define how the data is organized and what the structure of the data is. Models can be created in advance as needed or created during use.
  • the above operation and maintenance conditions can be set according to requirements. Different operation and maintenance conditions can be set for different parameters of the BI tool runtime server.
  • the specified command is sent to the server of the BI tool to detect the availability of the BI tool.
  • the normal value is returned, the status of the BI tool is determined to be normal.
  • the returned value is an abnormal value, it is determined that the running state of the BI tool satisfies the operation and maintenance condition. , trigger the corresponding operation and maintenance operation instructions.
  • the step S10 monitors an operation state of the BI tool.
  • the triggering the operation and maintenance operation instruction includes:
  • an operation and maintenance operation instruction is triggered, and the operation and maintenance operation instruction is used to schedule the running process.
  • the above system resources include a CPU, a memory, and a shared storage of a server that are not limited to the BI system.
  • System resources are hardware resources of the servers of the BI system.
  • the preset thresholds corresponding to different system resources are different.
  • monitoring the CPU usage of the BI tool at runtime when the CPU utilization exceeds 90%, triggers the operation and maintenance operation instruction.
  • it is an operation and maintenance operation instruction that triggers a server for the BI tool.
  • This directive is used to schedule a running process. For example, a process that occupies too much resources is suspended, or a sequence of operations is scheduled.
  • the commonly deployed BI tool has multiple servers.
  • the operation and maintenance operation command may be an operation and maintenance operation instruction issued for one or more specified servers.
  • the operation and maintenance operation instructions of the server for the BI tool are sent, so that the operation and maintenance personnel are not required to find and find the problem, and the operation and maintenance can be performed in an active and timely manner to improve the operation and maintenance efficiency.
  • the step S10 monitors an operation state of the BI tool.
  • the triggering the operation and maintenance operation instruction includes:
  • an operation and operation operation instruction is triggered, where the operation operation instruction is used to clean the cache of the server.
  • the preset cache value may be specifically set as needed.
  • the preset cache value may be determined according to the size of the remaining space of the disk in the server of the BI tool.
  • the default cache value is 70% or 80% of the size of the remaining cache capacity in the BI tool's server.
  • the command to clear the cache may be sent only to the one or several servers.
  • the cache in the server can be cleaned in time to avoid the problem that the system running efficiency or abnormal operation caused by the cache is not cleaned up.
  • the step S10 monitors an operation state of the BI tool.
  • the triggering the operation and maintenance operation instruction includes:
  • the system time is a preset time
  • an operation and maintenance operation instruction is triggered, and the operation and maintenance operation instruction is used to perform data synchronization on the BI tool.
  • the system time of the server of the BI tool may be the current system time of the server of the BI tool.
  • the value of the specific preset time can be set as needed.
  • the data synchronization of the BI tool is specifically performed by sending the operation and maintenance operation instruction to one or more Cognos systems, so that the data of the Cognos system that receives the operation and maintenance operation instruction is synchronized with the data between the other Cognos systems.
  • the triggered operation and maintenance operation instruction may also be an instruction for performing model release, or an instruction for clearing the log.
  • the operation and maintenance operation instruction for the BI tool is sent, and the operation and maintenance personnel can manually trigger the operation and maintenance operation instruction when the operation and maintenance personnel manually operate when the preset system time is reached. , carry out active operation and maintenance, improve the efficiency of operation and maintenance.
  • the above operation and maintenance object may refer to an object to perform an operation and maintenance operation.
  • the operation and maintenance object is a Cognos system
  • the specific operation and maintenance object may be one or several servers in a certain Cognos system.
  • different levels can be set in advance for the operation and maintenance objects.
  • the first Cognos system, the second Cognos system, and the third Cognos system are set to the first level.
  • the hierarchy of the operation and maintenance object includes a subsystem level, a logic unit level, and an application node level.
  • the hierarchy of the operation and maintenance objects is divided into three levels, that is, a subsystem level, a logical unit level, and an application node level.
  • the subsystem level may be a BI system, for example, the operation and maintenance object of the subsystem level is the Cognos subsystem.
  • the logical unit level can also be referred to as the LE (logic element) level.
  • the LE level can be divided into system architectures of the subsystems.
  • the subsystem is a Cognos system
  • the Cognos subsystem is a three-tier architecture, including: presentation/web tier, application tier, and data tier.
  • the operation and maintenance objects at the logical unit level are instance objects of the presentation layer, instance objects of the application layer, and instance objects of the data layer.
  • the application node level is the corresponding application node under the LE level.
  • a Cognos subsystem has 10 hosts, 2 of which are web hosts (network hosts), 6 are app hosts (application hosts), and 2 are cm hosts (content management hosts). Each host is an application node level. Operation and maintenance object.
  • under the subsystem level is the LE level
  • under the LE level is the application node level.
  • FIG. 2 is an example diagram of the hierarchy of the operation and maintenance object.
  • one or more operation node levels of the application node level may also be operated under the logical unit level.
  • S30 Determine an operable object at the same level as the operation and maintenance object, and/or an operable object whose level is lower than the level of the operation and maintenance object is an operation and maintenance object to be operated.
  • the above operable object is an object that can be operated and operated.
  • a Cognos subsystem consists of 10 hosts, 2 of which are web hosts (network hosts), 6 are app hosts (application hosts), and 2 are cm hosts (content management hosts). Each host is an operational object. If the operation and maintenance object is the Cognos subsystem, the operation and maintenance object to be operated can be 10 hosts (including 2 web hosts, 6 app hosts, and 2 cm hosts).
  • the operation and maintenance object is an operable object of the LE level, specifically an instance object of an application tier, the operation and maintenance object to be operated may be six app hosts.
  • the operation and maintenance object is a web host (an instance object of the application node level)
  • the operation and maintenance object to be operated may be the web host.
  • S40 Perform operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
  • the operation and maintenance operation is performed on the operation and maintenance object.
  • operation and maintenance operations that can be performed for different operation and maintenance objects can be different. Some operation and maintenance operations are available to all operation and maintenance objects, and some operation and maintenance operations are only available for some operation and maintenance objects. For example, restarting apache is an operation that a web host will have. Model publishing is an operation that the app host will have. Start synchronization, close synchronization, and clean up the queue are operations that are only available to the cm host. The specific operation and maintenance operations depend on the operations indicated by the operation and maintenance instructions.
  • a Cognos subsystem has 10 hosts, 2 of which are web hosts, 6 are app hosts, 2 are cm hosts, and operation and maintenance operations are restart operations. If the operation and maintenance object to be operated is 10 hosts, all 10 hosts perform a restart operation. If the operation and maintenance object to be operated is 6 app hosts, only 6 app hosts perform a restart operation; if the operation and maintenance object is a web host with IP 10.20.30.40, only the web host performs a restart operation.
  • the operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction may include:
  • the above suspension condition may be set in advance as needed. For example, one or more servers have lower priority for performing tasks; or one server runs at night, and the refresh report service is not executed at this time, and the server is running and starts a large number of refreshes.
  • the service related to the report can be determined to suspend the server at this time.
  • the specific pause condition is not limited to the above, and can be set according to the operational needs of the BI tool in practice.
  • the received operation and maintenance operation instruction is an instruction for cleaning the cache of the server of the BI tool
  • the operation and maintenance operation indicated by the operation and maintenance operation instruction is performed on the to-be-operated operation.
  • Dimensional objects are operated and maintained, including:
  • the operation and maintenance object to be operated may be one or more servers that need to be cache cleaned.
  • the operation and maintenance object to be operated may be one or more servers that need to be cache cleaned.
  • the servers that need to be cleaned are not in a refresh state, they are cache cleaned.
  • the cache cleaning of the server may be performed according to the operation and maintenance operation instruction, and when the cache is cleared, only the cache of the server that is not in the refresh state is cleaned.
  • the server When the server is in the refresh state, some files in the cache may be required to support the refresh. Therefore, when the cache is cleaned in this embodiment, the BI tool may also be prevented from running.
  • the received operation and maintenance operation instruction is an instruction for performing data synchronization on the BI tool
  • the operation and maintenance operation indicated by the operation and maintenance operation instruction is performed on the operation and maintenance object to be operated.
  • Operation and maintenance including:
  • Determining that the preset server among the objects to be operated is a server to be synchronized
  • Data synchronization is performed on the server to be synchronized.
  • the above preset server may be a server capable of data synchronization, such as a cm host (content management host).
  • the preset servers among the objects to be operated may all be the server to be synchronized or part of the server to be synchronized. After the server to be synchronized is acquired from the objects to be operated, the data to be synchronized is synchronized with the server to be synchronized. When data synchronization is performed, the data on the object to be operated may be synchronized to other storage areas, or the data of other storage areas may be synchronized to the object to be operated.
  • the object to be operated is two cm hosts
  • the data on the two cm hosts is synchronized with other storage areas for data backup, or the data in other servers is synchronized to the two cm hosts.
  • the result of the operation and maintenance operation may be summarized. For example, whether all the operation and maintenance objects to be operated successfully perform the operation and maintenance operations, or whether the execution time of the operation and maintenance objects exceeds the preset time. Similarly, the results of the operation and maintenance operations can be sent to the operation and maintenance staff, so that the operation and maintenance work can quickly understand the operation and operation and maintenance status of the BI tools.
  • the operation and maintenance operations can be performed on a plurality of operable objects quickly, thereby improving the efficiency of operation and maintenance.
  • the logical unit level and the application node level are included in the hierarchy of the operation and maintenance object, accurate operation and maintenance operations can be performed on a certain type of host and a certain host quickly and accurately.
  • the method described in the present application may further include:
  • the selection page of the operation and maintenance operation is displayed, and the selection page includes an operation and maintenance operation and an operation and maintenance object; and an operation and maintenance operation instruction is triggered according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
  • the above operation and maintenance operations include but are not limited to: restart BI tools, start BI tools, suspend BI tools, clean up caches, clean up logs, synchronize data, and publish models.
  • the selection page includes an operation and maintenance operation object and an operation and maintenance object, which means that the operation and maintenance operation and the operation and maintenance object are displayed on the selected page, and the user can select the operation and maintenance operation and the operation and maintenance object from the selection page.
  • a page for displaying an operation and maintenance operation may be displayed on the graphical user interface for the operation and maintenance personnel to view.
  • the operation and maintenance operations performed according to the operation and maintenance operation instructions are determined according to the operation and maintenance personnel. Therefore, in the operation and maintenance method provided by the present application, not only can the operation and maintenance be automated, but also the selection interface is provided for the operation and maintenance personnel to select and trigger the instruction, so that the operation and maintenance personnel are more convenient in system operation and maintenance.
  • the method described in the present application may further include:
  • the reminder is performed.
  • the operation and maintenance personnel may need to view the exception and process it.
  • the alarm information is sent to the operation and maintenance personnel, so that the operation and maintenance personnel can process the abnormality in time and perform precise operation and maintenance. .
  • the alarm information can be sent to the operation and maintenance personnel in time when the automatic operation and maintenance cannot be performed, so that the problems in the running process of the BI tool can be solved in time to avoid the system failure affecting the user. usage of.
  • the operation and maintenance method of the BI tool monitors the running state of the BI tool, and when the running state of the BI tool meets the operation and maintenance condition, triggers the operation and maintenance operation instruction; acquires the operation and maintenance object indicated by the operation and maintenance operation instruction, and a hierarchy of the operation and maintenance object; an operable object that is at the same level as the operation and maintenance object, and/or an operable object whose hierarchy is lower than the hierarchy of the operation and maintenance object is an operation and maintenance object to be operated;
  • the operation and maintenance operation indicated by the operation and maintenance operation instruction performs operation and maintenance on the operation and maintenance object to be operated.
  • the operation and maintenance operation instruction is automatically triggered, and when the operation and maintenance object is determined, according to the hierarchy of the operation and maintenance object, the operable object of the operation and maintenance object at the same level is determined, and The operation object that is lower than the hierarchy of the operation and maintenance object is the operation and maintenance object to be operated. Therefore, the operation and maintenance object indicated by the operation and maintenance operation instruction can determine that multiple objects are to be operated and operated, and then The operation object is operated and maintained. No maintenance personnel are required to manually monitor and perform operation and maintenance processing one by one, which greatly improves the efficiency of operation and maintenance.
  • FIG. 3 is a functional block diagram of an operation and maintenance apparatus of a BI tool according to an embodiment of the present application.
  • the operation and maintenance device of the BI tool includes a monitoring module 210, an obtaining module 220, a determining module 230, and a processing module 240.
  • a module as referred to herein refers to a series of computer readable instruction segments that can be executed by a processor of a computer device and that are capable of performing a fixed function, which are stored in a memory of the computer device.
  • the functions of the respective modules will be described in detail in the subsequent embodiments.
  • the monitoring module 210 is configured to monitor an operating state of the BI tool, and trigger an operation and maintenance operation instruction when the running state of the BI tool meets an operation and maintenance condition.
  • the operation and maintenance device of the BI tool described in the present application can perform operation and maintenance on any BI tool deployed in Cognos, Pentaho, Tableau, or at least two BI tools deployed in Cognos, Pentaho, and Tableau. Operation and maintenance.
  • the above operation and maintenance instructions include, but are not limited to, restarting BI tool instructions, starting BI tool instructions, suspending BI tool instructions, clearing cache instructions, cleaning log instructions, data synchronization instructions, and model issuing instructions.
  • the instruction to restart the BI tool is used to restart the BI tool.
  • the Start BI Tools command is used to launch the BI tool from the shutdown state.
  • the pause BI tool instruction is used to tentatively set the running BI tool, and the cleanup cache instruction is used to clean up the cache in the BI system, such as cleaning up a Cognos cache.
  • the cleanup log directive is used to log the BI system runtime, such as cleaning up a Cognos log.
  • the data synchronization instructions are used to synchronize data between different BI systems, such as synchronizing the specified data in the current first Cognos system to the second Cognos system.
  • the model release directive is used to publish the model.
  • the model is used to define how the data is organized and what the structure of the data is. Models can be created in advance as needed or created during use.
  • the above operation and maintenance conditions can be set according to requirements. Different operation and maintenance conditions can be set for different parameters of the BI tool runtime server.
  • the specified command is sent to the server of the BI tool to detect the availability of the BI tool.
  • the normal value is returned, the status of the BI tool is determined to be normal.
  • the returned value is an abnormal value, it is determined that the running state of the BI tool satisfies the operation and maintenance condition. , trigger the corresponding operation and maintenance operation instructions.
  • the monitoring module 210 is specifically configured to:
  • the above system resources include a CPU, a memory, and a shared storage of a server that are not limited to the BI system.
  • System resources are hardware resources of the servers of the BI system.
  • the preset thresholds corresponding to different system resources are different.
  • monitoring the CPU usage of the BI tool at runtime when the CPU utilization exceeds 90%, triggers the operation and maintenance operation instruction.
  • it is an operation and maintenance operation instruction that triggers a server for the BI tool.
  • This directive is used to schedule a running process. For example, a process that occupies too much resources is suspended, or a sequence of operations is scheduled.
  • the commonly deployed BI tool has multiple servers.
  • the operation and maintenance operation command may be an operation and maintenance operation instruction issued for one or more specified servers.
  • the operation and maintenance operation instructions of the server for the BI tool are sent, so that the operation and maintenance personnel are not required to find and find the problem, and the operation and maintenance can be performed in an active and timely manner to improve the operation and maintenance efficiency.
  • the monitoring module 210 is specifically configured to:
  • the preset cache value may be specifically set as needed.
  • the preset cache value may be determined according to the size of the remaining space of the disk in the server of the BI tool.
  • the default cache value is 70% or 80% of the size of the remaining cache capacity in the BI tool's server.
  • the command to clear the cache may be sent only to the one or several servers.
  • the cache in the server can be cleaned in time to avoid the problem that the system running efficiency or abnormal operation caused by the cache is not cleaned up.
  • the monitoring module 210 is specifically configured to:
  • the system time of the server of the BI tool may be the current system time of the server of the BI tool.
  • the value of the specific preset time can be set as needed.
  • the data synchronization of the BI tool is specifically performed by sending the operation and maintenance operation instruction to one or more Cognos systems, so that the data of the Cognos system that receives the operation and maintenance operation instruction is synchronized with the data between the other Cognos systems.
  • the triggered operation and maintenance operation instruction may also be an instruction for performing model release, or an instruction for clearing the log.
  • the operation and maintenance operation instruction for the BI tool is sent, and the operation and maintenance personnel can manually trigger the operation and maintenance operation instruction when the operation and maintenance personnel manually operate when the preset system time is reached. , carry out active operation and maintenance, improve the efficiency of operation and maintenance.
  • the obtaining module 220 is configured to acquire an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object.
  • the above operation and maintenance object may refer to an object to perform an operation and maintenance operation.
  • the operation and maintenance object is a Cognos system
  • the specific operation and maintenance object may be one or several servers in a certain Cognos system.
  • different levels can be set in advance for the operation and maintenance objects.
  • the first Cognos system, the second Cognos system, and the third Cognos system are set to the first level.
  • the hierarchy of the operation and maintenance object includes a subsystem level, a logic unit level, and an application node level.
  • the hierarchy of the operation and maintenance objects is divided into three levels, that is, a subsystem level, a logical unit level, and an application node level.
  • the subsystem level may be a BI system, for example, the operation and maintenance object of the subsystem level is the Cognos subsystem.
  • the logical unit level can also be referred to as the LE (logic element) level.
  • the LE level can be divided into system architectures of the subsystems.
  • the subsystem is a Cognos system
  • the Cognos subsystem is a three-tier architecture, including: presentation/web tier, application tier, and data tier.
  • the operation and maintenance objects at the logical unit level are instance objects of the presentation layer, instance objects of the application layer, and instance objects of the data layer.
  • the application node level is the corresponding application node under the LE level.
  • a Cognos subsystem has 10 hosts, 2 of which are web hosts (network hosts), 6 are app hosts (application hosts), and 2 are cm hosts (content management hosts). Each host is an application node level. Operation and maintenance object.
  • under the subsystem level is the LE level
  • under the LE level is the application node level.
  • FIG. 2 is an example diagram of the hierarchy of the operation and maintenance object.
  • one or more operation node levels of the application node level may also be operated under the logical unit level.
  • the determining module 230 is configured to determine an operable object at the same level as the operation and maintenance object, and/or an operable object whose level is lower than the level of the operation and maintenance object is an operation and maintenance object to be operated.
  • the above operable object is an object that can be operated and operated.
  • a Cognos subsystem consists of 10 hosts, 2 of which are web hosts (network hosts), 6 are app hosts (application hosts), and 2 are cm hosts (content management hosts). Each host is an operational object. If the operation and maintenance object is the Cognos subsystem, the operation and maintenance object to be operated can be 10 hosts (including 2 web hosts, 6 app hosts, and 2 cm hosts).
  • the operation and maintenance object is an operable object of the LE level, specifically an instance object of an application tier, the operation and maintenance object to be operated may be six app hosts.
  • the operation and maintenance object is a web host (an instance object of the application node level)
  • the operation and maintenance object to be operated may be the web host.
  • the processing module 240 is configured to perform operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
  • the operation and maintenance operation is performed on the operation and maintenance object.
  • operation and maintenance operations that can be performed for different operation and maintenance objects can be different. Some operation and maintenance operations are available to all operation and maintenance objects, and some operation and maintenance operations are only available for some operation and maintenance objects. For example, restarting apache is an operation that a web host will have. Model publishing is an operation that the app host will have. Start synchronization, close synchronization, and clean up the queue are operations that are only available to the cm host. The specific operation and maintenance operations depend on the operations indicated by the operation and maintenance instructions.
  • a Cognos subsystem has 10 hosts, 2 of which are web hosts, 6 are app hosts, 2 are cm hosts, and operation and maintenance operations are restart operations. If the operation and maintenance object to be operated is 10 hosts, all 10 hosts perform a restart operation. If the operation and maintenance object to be operated is 6 app hosts, only 6 app hosts perform a restart operation; if the operation and maintenance object is a web host with IP 10.20.30.40, only the web host performs a restart operation.
  • the processing module is specifically configured to:
  • the above suspension condition may be set in advance as needed. For example, one or more servers have lower priority for performing tasks; or one server runs at night, and the refresh report service is not executed at this time, and the server is running and starts a large number of refreshes.
  • the service related to the report can be determined to suspend the server at this time.
  • the specific pause condition is not limited to the above, and can be set according to the operational needs of the BI tool in practice.
  • the processing module is specifically configured to:
  • the operation and maintenance object to be operated may be one or more servers that need to be cache cleaned. When one or more servers that need to be cleaned are not in a refresh state, they are cached.
  • the cache cleaning of the server may be performed according to the operation and maintenance operation instruction, and when the cache is cleared, only the cache of the server that is not in the refresh state is cleaned.
  • the server When the server is in the refresh state, some files in the cache may be required to support the refresh. Therefore, when the cache is cleaned in this embodiment, the BI tool may also be prevented from running.
  • the processing module is specifically configured to:
  • Determining that the preset server among the objects to be operated is a server to be synchronized; and performing data synchronization on the server to be synchronized.
  • the above preset server may be a server capable of data synchronization, such as a cm host (content management host).
  • the preset servers among the objects to be operated may all be the server to be synchronized or part of the server to be synchronized. After the server to be synchronized is acquired from the objects to be operated, the data to be synchronized is synchronized with the server to be synchronized. When data synchronization is performed, the data on the object to be operated may be synchronized to other storage areas, or the data of other storage areas may be synchronized to the object to be operated.
  • the object to be operated is two cm hosts
  • the data on the two cm hosts is synchronized with other storage areas for data backup, or the data in other servers is synchronized to the two cm hosts.
  • the result of the operation and maintenance operation may be summarized. For example, whether all the operation and maintenance objects to be operated successfully perform the operation and maintenance operations, or whether the execution time of the operation and maintenance objects exceeds the preset time. Similarly, the results of the operation and maintenance operations can be sent to the operation and maintenance staff, so that the operation and maintenance work can quickly understand the operation and operation and maintenance status of the BI tools.
  • the operation and maintenance operations can be performed on a plurality of operable objects quickly, thereby improving the efficiency of operation and maintenance.
  • the logical unit level and the application node level are included in the hierarchy of the operation and maintenance object, accurate operation and maintenance operations can be performed on a certain type of host and a certain host quickly and accurately.
  • the apparatus described in the present application may further include a display module and a trigger module.
  • the display module is configured to display a selection page of the operation and maintenance operation, and the selection page includes an operation and maintenance operation and an operation and maintenance object.
  • the triggering module is configured to trigger an operation and maintenance operation instruction according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
  • the above operation and maintenance operations include but are not limited to: restart BI tools, start BI tools, suspend BI tools, clean up caches, clean up logs, synchronize data, and publish models.
  • the selection page includes an operation and maintenance operation object and an operation and maintenance object, which means that the operation and maintenance operation and the operation and maintenance object are displayed on the selected page, and the user can select the operation and maintenance operation and the operation and maintenance object from the selection page.
  • a page for displaying an operation and maintenance operation may be displayed on the graphical user interface for the operation and maintenance personnel to view.
  • the operation and maintenance operations performed according to the operation and maintenance operation instructions are determined according to the operation and maintenance personnel. Therefore, in the operation and maintenance method provided by the present application, not only can the operation and maintenance be automated, but also the selection interface is provided for the operation and maintenance personnel to select and trigger the instruction, so that the operation and maintenance personnel are more convenient in system operation and maintenance.
  • the apparatus described in the present application may further include a reminding module.
  • the reminding module is configured to: after the operation and maintenance of the operation and maintenance object to be operated, obtain the information that the BI tool runs abnormally, and send an alarm message.
  • the reminder is performed.
  • the operation and maintenance personnel may need to view the exception and process it.
  • the alarm information is sent to the operation and maintenance personnel, so that the operation and maintenance personnel can process the abnormality in time and perform precise operation and maintenance. .
  • the alarm information can be sent to the operation and maintenance personnel in time when the automatic operation and maintenance cannot be performed, so that the problems in the running process of the BI tool can be solved in time to avoid the system failure affecting the user. usage of.
  • the operation and maintenance device of the BI tool monitors the running state of the BI tool through the monitoring module.
  • the operation and maintenance operation instruction is triggered; and the obtaining module acquires the operation and operation operation instruction instruction.
  • the operation and maintenance object and the hierarchy of the operation and maintenance object; the determination module determines an operable object at the same level as the operation and maintenance object, and/or the operable object whose hierarchy is lower than the hierarchy of the operation and maintenance object is to be operated An operation and maintenance object; the processing module performs operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
  • the operation and maintenance operation instruction is automatically triggered, and when the operation and maintenance object is determined, according to the hierarchy of the operation and maintenance object, the operable object of the operation and maintenance object at the same level is determined, and The operation object that is lower than the hierarchy of the operation and maintenance object is the operation and maintenance object to be operated. Therefore, the operation and maintenance object indicated by the operation and maintenance operation instruction can determine that multiple objects are to be operated and operated, and then The operation object is operated and maintained. No maintenance personnel are required to manually monitor and perform operation and maintenance processing one by one, which greatly improves the efficiency of operation and maintenance.
  • the above-described integrated modules and units implemented in the form of software function modules can be stored in a non-volatile readable storage medium.
  • the software function module described above is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods described in various embodiments of the present application. Part of the steps.
  • FIG. 4 is a schematic structural diagram of a computer apparatus according to a preferred embodiment of the present invention for implementing an operation and maintenance method of a BI tool.
  • the computer device comprises at least one transmitting device 31, at least one memory 32, at least one processor 33, at least one receiving device 34 and at least one communication bus.
  • the communication bus is used to implement connection communication between these components.
  • the computer device is a device capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance, and the hardware thereof includes but is not limited to a microprocessor and an application specific integrated circuit (ASIC). , Field-Programmable Gate Array (FPGA), Digital Signal Processor (DSP), embedded devices, etc.
  • the computer device may also include a network device and/or a user device.
  • the network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud computing-based cloud composed of a large number of hosts or network servers, where the cloud computing is distributed computing.
  • a super virtual computer consisting of a group of loosely coupled computers.
  • the computer device may be, but is not limited to, any electronic product that can interact with a user through a keyboard, a touch pad, or a voice control device.
  • the network in which the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
  • the Internet includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
  • VPN virtual private network
  • the receiving device 34 and the transmitting device 31 may be wired transmission ports, or may be wireless devices, for example, including antenna devices, for performing data communication with other devices.
  • the memory 32 is used to store program code.
  • the memory 32 may be a circuit having a memory function in a physical form, such as a RAM (Random-Access Memory), a FIFO (First In First Out), or the like.
  • the memory 32 may also be a memory having a physical form, such as a memory stick, a TF card (Trans-flash Card), a smart media card, a secure digital card, a flash memory card. Storage devices such as (flash card) and the like.
  • the processor 33 can include one or more microprocessors, digital processors.
  • the processor 33 can call program code stored in the memory 32 to perform related functions.
  • the various units described in FIG. 4 are program code stored in the memory 32 and executed by the processor 33 to implement an operation and maintenance method of the BI tool.
  • the processor 33 also known as a central processing unit (CPU), is a very large-scale integrated circuit, which is a computing core (Core) and a control unit (Control Unit).
  • modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software function modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

An operation and maintenance (O&M) method for a BI tool, comprising: monitoring an operation state of a BI tool, and when the operation state of the BI tool satisfies an O&M condition, triggering an O&M operation instruction (S10); acquiring an O&M object indicated by the O&M operation instruction and the level of the O&M object (S20); determining an operable object at the same level as said O&M object and/or an operable object at a level lower than that of said O&M object as objects to be operated and maintained (S30); performing operation and maintenance on said objects according to the O&M operation indicated by the O&M operation instruction (S40). Further disclosed are an O&M device for a BI tool, a computer device and a non-volatile readable storage medium. The described O&M method, O&M device, computer device and storage medium can improve the O&M efficiency of the BI tool.

Description

BI工具的运维方法、装置、计算机装置及存储介质Operation and maintenance method, device, computer device and storage medium of BI tool
本申请要求于2018年04月23日提交中国专利局,申请号为201810368097.X发明名称为“BI工具的运维方法、装置、计算机装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application entitled "BI Tool Operation and Maintenance Method, Apparatus, Computer Device and Storage Medium" by the Chinese Patent Office on April 23, 2018, the application number is 201810368097. The content is incorporated herein by reference.
技术领域Technical field
本申请涉及数据挖掘软件的运维技术领域,尤其涉及一种BI工具的运维方法、装置、计算机装置及存储介质。The present invention relates to the field of operation and maintenance technologies of data mining software, and in particular, to a method, device, computer device and storage medium for operating and maintenance of a BI tool.
背景技术Background technique
商业智能(Business Intelligence,BI)分析工具也称为BI工具。BI工具是一种将企业中应用的各系统数据进行有效的整合,快速准确地提供报表的工具,可以帮助使用者了解所需的企业信息以及帮助使用者做出经营决策。常见的BI工具(BI系统)有Cognos,Pentaho,Tableau等。Business Intelligence (BI) analysis tools are also known as BI tools. The BI tool is a tool that effectively integrates the system data applied in the enterprise and provides reports quickly and accurately. It can help users understand the required enterprise information and help users make business decisions. Common BI tools (BI systems) are Cognos, Pentaho, Tableau, etc.
目前,针对BI工具的运维方法,通常是运维人员观察运行应用状态,定位可能出问题的位置,再通过控制台来操作BI工具。通常部署好的BI工具的服务器集群所包含的服务器较多,运维时涉及的要处理的节点可能较多。通过现有的运维方法对BI工具进行运维,效率比较低。At present, for the operation and maintenance method of the BI tool, the operation and maintenance personnel usually observe the running application state, locate the position where the problem may occur, and then operate the BI tool through the console. A server cluster that usually deploys BI tools contains more servers, and there may be more nodes involved in operation and maintenance. The operation and maintenance of BI tools through existing operation and maintenance methods is relatively inefficient.
发明内容Summary of the invention
鉴于以上内容,有必要提供一种BI工具的运维方法、装置、计算机装置及存储介质,能提高BI工具的运维效率。In view of the above, it is necessary to provide a BI tool operation and maintenance method, device, computer device and storage medium, which can improve the operation and maintenance efficiency of the BI tool.
本申请提供一种BI工具的运维方法,所述方法包括:The application provides an operation and maintenance method of a BI tool, and the method includes:
监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令;Monitoring the running state of the BI tool, and triggering the operation and maintenance operation instruction when the running state of the BI tool meets the operation and maintenance condition;
获取所述运维操作指令指示的运维对象以及所述运维对象的层级;Obtaining an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object;
确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象;Determining an operable object at the same level as the operation and maintenance object, and/or an operable object having a hierarchy lower than the hierarchy of the operation and maintenance object is an operation and maintenance object to be operated;
根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。Performing operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
在本申请优选实施中,所述运维对象的层级包括子系统层级、逻辑单元层级以及应用节点层级。In a preferred implementation of the present application, the hierarchy of the operation and maintenance object includes a subsystem hierarchy, a logical unit hierarchy, and an application node hierarchy.
在本申请优选实施中,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:In a preferred implementation of the present application, the operating state of the BI tool is monitored, and when the operating state of the BI tool meets the operation and maintenance conditions, the operation and maintenance operation instruction is triggered, including:
获取所述BI工具运行时消耗的系统资源;Obtaining system resources consumed by the BI tool when it runs;
当所述BI工具运行时消耗的系统资源超过预设阈值时,触发运维操作指 令,所述运维操作指令用于对运行中的进程进行调度;And when the system resource consumed by the running of the BI tool exceeds a preset threshold, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to schedule a running process;
则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
控制所述待操作对象之中满足暂停条件的待服务器暂停运行。Controlling the pending server to suspend operation among the objects to be operated.
在本申请优选实施中,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:In a preferred implementation of the present application, the operating state of the BI tool is monitored, and when the operating state of the BI tool meets the operation and maintenance conditions, the operation and maintenance operation instruction is triggered, including:
获取所述BI工具的服务器的缓存信息;Obtaining cache information of a server of the BI tool;
当所述服务器的缓存大小达到预设缓存值时,触发运维操作指令,所述运行操作指令用于对所述服务器的缓存进行清理;And when the cache size of the server reaches a preset cache value, triggering an operation and maintenance operation instruction, where the operation operation instruction is used to clean the cache of the server;
则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
获取所述待操作对象之中未处于刷新状态的服务器;Obtaining a server that is not in a refresh state among the objects to be operated;
对所述待操作对象之中未处于刷新状态的服务器的缓存进行清理。Clearing the cache of the server that is not in the refresh state among the objects to be operated.
在本申请优选实施中,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:In a preferred implementation of the present application, the operating state of the BI tool is monitored, and when the operating state of the BI tool meets the operation and maintenance conditions, the operation and maintenance operation instruction is triggered, including:
获取所述BI工具的服务器的系统时间;Obtaining the system time of the server of the BI tool;
若所述系统时间为预设时间,触发运维操作指令,所述运维操作指令用于对所述BI工具进行数据同步;If the system time is a preset time, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to perform data synchronization on the BI tool;
则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
确定所述待操作对象之中的预设服务器为待同步服务器;Determining that the preset server among the objects to be operated is a server to be synchronized;
对所述待同步服务器进行数据同步。Data synchronization is performed on the server to be synchronized.
在本申请优选实施中,所述方法还包括:In a preferred implementation of the application, the method further includes:
显示运维操作的选取页面,所述选取页面包括运维操作和运维对象;Displaying a selection page of the operation and maintenance operation, where the selection page includes an operation and maintenance operation and an operation and maintenance object;
根据从所述选取页面选取的运维操作和运维对象触发运维操作指令。The operation and maintenance operation instruction is triggered according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
在本申请优选实施例中,所述方法还包括:In a preferred embodiment of the present application, the method further includes:
对所述待操作运维对象进行运维之后,若获取到所述BI工具运行异常的信息,发送报警信息。After the operation and maintenance of the operation and maintenance object to be operated, if the information about the abnormal operation of the BI tool is acquired, the alarm information is sent.
本申请还提供一种BI工具的运维装置,所述装置包括:The application also provides an operation and maintenance device of a BI tool, the device comprising:
监控模块,用于监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令;a monitoring module, configured to monitor an operating state of the BI tool, and trigger an operation and maintenance operation instruction when the running state of the BI tool meets an operation and maintenance condition;
获取模块,用于获取所述运维操作指令指示的运维对象以及所述运维对象的层级;An acquiring module, configured to acquire an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object;
确定模块,用于确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象;a determining module, configured to determine an operable object at the same level as the operation and maintenance object, and/or an operable object whose level is lower than the level of the operation and maintenance object is an operation and maintenance object to be operated;
处理模块,用于根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。The processing module is configured to perform operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
在本申请优选实施例中,所述运维对象的层级包括子系统层级、逻辑单元层级以及应用节点层级。In a preferred embodiment of the present application, the hierarchy of the operation and maintenance object includes a subsystem hierarchy, a logical unit hierarchy, and an application node hierarchy.
在本申请优选实施例中,所述监控模块具体用于:In a preferred embodiment of the present application, the monitoring module is specifically configured to:
获取所述BI工具运行时消耗的系统资源;Obtaining system resources consumed by the BI tool when it runs;
当所述BI工具运行时消耗的系统资源超过预设阈值时,触发运维操作指令,所述运维操作指令用于对运行中的进程进行调度;And when the system resource consumed by the BI tool exceeds a preset threshold, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to schedule a running process;
则所述处理模块具体用于:The processing module is specifically configured to:
控制所述待操作对象之中满足暂停条件的待服务器暂停运行。Controlling the pending server to suspend operation among the objects to be operated.
在本申请优选实施例中,所述监控模块具体用于:In a preferred embodiment of the present application, the monitoring module is specifically configured to:
获取所述BI工具的服务器的缓存信息;Obtaining cache information of a server of the BI tool;
当所述服务器的缓存大小达到预设缓存值时,触发运维操作指令,所述运行操作指令用于对所述服务器的缓存进行清理;And when the cache size of the server reaches a preset cache value, triggering an operation and maintenance operation instruction, where the operation operation instruction is used to clean the cache of the server;
则所述处理模块具体用于:The processing module is specifically configured to:
获取所述待操作对象之中未处于刷新状态的服务器;Obtaining a server that is not in a refresh state among the objects to be operated;
对所述待操作对象之中未处于刷新状态的服务器的缓存进行清理。Clearing the cache of the server that is not in the refresh state among the objects to be operated.
在本申请优选实施例中,所述监控模块具体用于:In a preferred embodiment of the present application, the monitoring module is specifically configured to:
获取所述BI工具的服务器的系统时间;Obtaining the system time of the server of the BI tool;
若所述系统时间为预设时间,触发运维操作指令,所述运维操作指令用于对所述BI工具进行数据同步;If the system time is a preset time, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to perform data synchronization on the BI tool;
则所述处理模块具体用于:The processing module is specifically configured to:
确定所述待操作对象之中的预设服务器为待同步服务器;Determining that the preset server among the objects to be operated is a server to be synchronized;
对所述待同步服务器进行数据同步。Data synchronization is performed on the server to be synchronized.
在本申请优选实施例中,所述装置还包括:In a preferred embodiment of the present application, the apparatus further includes:
显示模块,用于显示运维操作的选取页面,所述选取页面包括运维操作和运维对象;a display module, configured to display a selection page of the operation and maintenance operation, where the selection page includes an operation and maintenance operation and an operation and maintenance object;
触发模块,用于根据从所述选取页面选取的运维操作和运维对象触发运维操作指令。The triggering module is configured to trigger an operation and maintenance operation instruction according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
在本申请优选实施例中,所述装置还包括:In a preferred embodiment of the present application, the apparatus further includes:
提醒模块,用于对所述待操作运维对象进行运维之后,若获取到所述BI工具运行异常的信息,发送报警信息。The reminding module is configured to: after the operation and maintenance of the operation and maintenance object to be operated, obtain the information that the BI tool runs abnormally, and send an alarm message.
本申请还提供一种计算机装置,所述计算机装置包括存储器及处理器,所述存储器用于存储至少一个指令,所述处理器用于执行所述至少一个指令以实现任意实施例中所述的BI工具的运维方法。The application also provides a computer device comprising a memory and a processor, the memory for storing at least one instruction, the processor for executing the at least one instruction to implement the BI described in any embodiment The operation and maintenance method of the tool.
本申请还提供一种非易失性可读存储介质,其特征在于,所述非易失性可读存储介质存储有至少一个指令,所述至少一个指令被处理器执行时实现任意实施例中所述的BI工具的运维方法。The present application also provides a non-volatile readable storage medium, wherein the non-volatile readable storage medium stores at least one instruction, which is implemented in any embodiment when executed by a processor The operation and maintenance method of the BI tool.
由以上技术方案看出,本申请通过监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令;获取所述运维操作指令指示的运维对象以及所述运维对象的层级;确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象;根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。由于监控到BI工具的运行状态满足运维条件时,就自动触发运维操作指令,并且在确定运维对象时根据运维对象的层级,确定与运维对象在同 一层级的可操作对象,和/或层级低于运维对象的层级的可操作对象为待操作运维对象,因此,根据运维操作指令指示的运维对象可以确定多个对象为待操作运维对象,进而针对多个待操作对象进行运维。无需运维人员人工监控并一一进行运维处理,极大的提高了运维的效率。As shown in the above technical solution, the present application triggers an operation and maintenance operation instruction by monitoring an operation state of the BI tool, and when the operation state of the BI tool meets an operation and maintenance condition; acquiring an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object; an operable object that is at the same level as the operation and maintenance object, and/or an operable object whose hierarchy is lower than the hierarchy of the operation and maintenance object is an operation and maintenance object to be operated; The operation and maintenance operation indicated by the operation and maintenance operation instruction performs operation and maintenance on the operation and maintenance object to be operated. When the running state of the BI tool meets the operation and maintenance conditions, the operation and maintenance operation instruction is automatically triggered, and when the operation and maintenance object is determined, the operable object at the same level as the operation and maintenance object is determined according to the hierarchy of the operation and maintenance object, and The operation object that is lower than the hierarchy of the operation and maintenance object is the operation and maintenance object to be operated. Therefore, the operation and maintenance object indicated by the operation and maintenance operation instruction can determine that multiple objects are to be operated and operated, and then The operation object is operated and maintained. No maintenance personnel are required to manually monitor and perform operation and maintenance processing one by one, which greatly improves the efficiency of operation and maintenance.
附图说明DRAWINGS
图1是本申请实施例提供的一种BI工具的运维方法的流程图;1 is a flowchart of an operation and maintenance method of a BI tool according to an embodiment of the present application;
图2是本方面实施例中运维对象的层级的示例图;2 is a diagram showing an example of a hierarchy of an operation and maintenance object in the embodiment of the present invention;
图3是本申请实施例提供的BI工具的运维装置的模块图;3 is a block diagram of an operation and maintenance apparatus of a BI tool according to an embodiment of the present application;
图4是本申请实现BI工具的运维方法的较佳实施例的计算机装置的结构示意图。FIG. 4 is a schematic structural diagram of a computer apparatus according to a preferred embodiment of the present invention for implementing an operation and maintenance method of a BI tool.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。The above described objects, features and advantages of the present application will become more apparent and understood.
如图1所示,图1为本申请实施例提供的一种BI工具的运维方法的流程图。根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。As shown in FIG. 1 , FIG. 1 is a flowchart of an operation and maintenance method of a BI tool according to an embodiment of the present application. The order of the steps in the flowchart may be changed according to different requirements, and some steps may be omitted.
S10,监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令。S10: Monitor an operating state of the BI tool, and trigger an operation and maintenance operation instruction when the running state of the BI tool meets an operation and maintenance condition.
本申请所述的BI工具的运维方法可以对部署了Cognos,Pentaho,Tableau中的任意一种BI工具进行运维,也可以是对部署了Cognos,Pentaho,Tableau中的至少两种BI工具进行运维。The operation and maintenance method of the BI tool described in this application can be used for operation and maintenance of any BI tool deployed in Cognos, Pentaho, Tableau, or at least two BI tools deployed in Cognos, Pentaho, and Tableau. Operation and maintenance.
上述运维指令包括但不限于:重启BI工具指令,启动BI工具指令,暂停BI工具指令,清理缓存指令,清理日志指令,数据同步指令,模型发布指令。The above operation and maintenance instructions include, but are not limited to, restarting BI tool instructions, starting BI tool instructions, suspending BI tool instructions, clearing cache instructions, cleaning log instructions, data synchronization instructions, and model issuing instructions.
其中,重启BI工具的指令用于将BI工具进行重启。Among them, the instruction to restart the BI tool is used to restart the BI tool.
启动BI工具指令用于将BI工具从关闭状态进行启动。The Start BI Tools command is used to launch the BI tool from the shutdown state.
暂停BI工具指令用于将运行中的BI工具进行暂定,清理缓存指令用于清理BI系统中的缓存,例如清理某一Cognos的缓存。The pause BI tool instruction is used to tentatively set the running BI tool, and the cleanup cache instruction is used to clean up the cache in the BI system, such as cleaning up a Cognos cache.
清理日志指令用于将BI系统运行时的日志,例如清理某一Cognos的日志。The cleanup log directive is used to log the BI system runtime, such as cleaning up a Cognos log.
数据同步指令用于将数据在不同的BI系统之间进行同步,例如将当前第一Cognos系统中的指定数据同步至第二Cognos系统中。The data synchronization instructions are used to synchronize data between different BI systems, such as synchronizing the specified data in the current first Cognos system to the second Cognos system.
模型发布指令用于将模型进行发布,在Cognos系统中,模型用于定义数据如何组织,数据的结构是怎样的。模型可以是预先根据需要建立或使用 过程中创建的。The model release directive is used to publish the model. In the Cognos system, the model is used to define how the data is organized and what the structure of the data is. Models can be created in advance as needed or created during use.
上述运维条件可以根据需要设定,针对BI工具运行时服务器的不同参数,可以设置不同的运维条件。The above operation and maintenance conditions can be set according to requirements. Different operation and maintenance conditions can be set for different parameters of the BI tool runtime server.
例如,向BI工具的服务器发送指定命令来检测BI工具的可用性,当返回正常值时确定BI工具的状态为正常,当返回的值为非正常值时,确定BI工具的运行状态满足运维条件,触发相应的运维操作指令。For example, the specified command is sent to the server of the BI tool to detect the availability of the BI tool. When the normal value is returned, the status of the BI tool is determined to be normal. When the returned value is an abnormal value, it is determined that the running state of the BI tool satisfies the operation and maintenance condition. , trigger the corresponding operation and maintenance operation instructions.
可选的,在本申请其他实施例中,所述步骤S10监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令包括:Optionally, in other embodiments of the present application, the step S10 monitors an operation state of the BI tool. When the running state of the BI tool meets an operation and maintenance condition, the triggering the operation and maintenance operation instruction includes:
获取所述BI工具运行时消耗的系统资源;Obtaining system resources consumed by the BI tool when it runs;
当所述BI工具运行时消耗的系统资源超过预设阈值时,触发运维操作指令,所述运维操作指令用于对运行中的进程进行调度。When the system resource consumed by the BI tool exceeds a preset threshold, an operation and maintenance operation instruction is triggered, and the operation and maintenance operation instruction is used to schedule the running process.
其中,上述系统资源包括不限于BI系统的服务器的CPU、内存、共享存储。系统资源是BI系统的服务器的硬件资源。不同的系统资源所对应的预设阈值是不同的。The above system resources include a CPU, a memory, and a shared storage of a server that are not limited to the BI system. System resources are hardware resources of the servers of the BI system. The preset thresholds corresponding to different system resources are different.
例如,监控BI工具运行时的CPU使用率,当CPU的利用率超过90%时,触发运维操作指令。具体的,是触发针对该BI工具的服务器的运维操作指令。该指令,用于对运行中的进程进行调度。例如,将占用资源过多的某一进程暂停,或者是对运行的先后进行调度等。For example, monitoring the CPU usage of the BI tool at runtime, when the CPU utilization exceeds 90%, triggers the operation and maintenance operation instruction. Specifically, it is an operation and maintenance operation instruction that triggers a server for the BI tool. This directive is used to schedule a running process. For example, a process that occupies too much resources is suspended, or a sequence of operations is scheduled.
同时,通常部署好的BI工具有多台服务器,在触发运维操作指令时,具体可以是针对指定的一台或多台服务器发出的运维操作指令。At the same time, the commonly deployed BI tool has multiple servers. When the operation and maintenance operation command is triggered, it may be an operation and maintenance operation instruction issued for one or more specified servers.
在本实施例中,当BI工具运行时的系统资源超过预设阈值,表明可能引起BI工具的性能问题,影响用户的使用。因此,发送针对BI工具的服务器的运维操作指令,使得无需运维人员来查找并发现问题,就可以主动及时的进行运维,提高运维的效率。In this embodiment, when the system resource of the BI tool is running exceeds a preset threshold, it indicates that the performance problem of the BI tool may be caused, which affects the user's use. Therefore, the operation and maintenance operation instructions of the server for the BI tool are sent, so that the operation and maintenance personnel are not required to find and find the problem, and the operation and maintenance can be performed in an active and timely manner to improve the operation and maintenance efficiency.
可选的,在本申请其他实施例中,所述步骤S10监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令包括:Optionally, in other embodiments of the present application, the step S10 monitors an operation state of the BI tool. When the running state of the BI tool meets an operation and maintenance condition, the triggering the operation and maintenance operation instruction includes:
获取所述BI工具的服务器的缓存信息;Obtaining cache information of a server of the BI tool;
当所述服务器的缓存大小达到预设缓存值时,触发运维操作指令,所述运行操作指令用于对所述服务器的缓存进行清理。When the cache size of the server reaches a preset cache value, an operation and operation operation instruction is triggered, where the operation operation instruction is used to clean the cache of the server.
其中,上述预设缓存值具体可以根据需要设定。The preset cache value may be specifically set as needed.
优选的,上述预设缓存值可以根据BI工具的服务器中磁盘剩余空间的大小来确定。例如,预设缓存值为BI工具的服务器中剩余缓存容量大小的70%或80%。Preferably, the preset cache value may be determined according to the size of the remaining space of the disk in the server of the BI tool. For example, the default cache value is 70% or 80% of the size of the remaining cache capacity in the BI tool's server.
在具体实施时,若有多台服务器,若仅有一台几台服务器的缓存达到预设缓存值时,可以仅向该一台或几台服务器发送清理缓存的指令。In a specific implementation, if there are multiple servers, if only one of the servers has a cache that reaches a preset cache value, the command to clear the cache may be sent only to the one or several servers.
在本实施例中,可以及时将服务器中的缓存进行清理,避免缓存来不及清理造成的系统运行效率降低或者运行异常的问题。In this embodiment, the cache in the server can be cleaned in time to avoid the problem that the system running efficiency or abnormal operation caused by the cache is not cleaned up.
可选的,在本申请其他实施例中,所述步骤S10监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令包括:Optionally, in other embodiments of the present application, the step S10 monitors an operation state of the BI tool. When the running state of the BI tool meets an operation and maintenance condition, the triggering the operation and maintenance operation instruction includes:
获取所述BI工具的服务器的系统时间;Obtaining the system time of the server of the BI tool;
若所述系统时间为预设时间,触发运维操作指令,所述运维操作指令用于对所述BI工具进行数据同步。If the system time is a preset time, an operation and maintenance operation instruction is triggered, and the operation and maintenance operation instruction is used to perform data synchronization on the BI tool.
其中,上述BI工具的服务器的系统时间可以是BI工具的服务器的当前的系统时间。具体的预设时间的值可以根据需要设定。The system time of the server of the BI tool may be the current system time of the server of the BI tool. The value of the specific preset time can be set as needed.
上述对BI工具进行数据同步,具体是向某一个或多个Cognos系统发送该运维操作指令,使接收到运维操作指令的Cognos系统的数据与其他Cognos系统之间的数据进行同步。The data synchronization of the BI tool is specifically performed by sending the operation and maintenance operation instruction to one or more Cognos systems, so that the data of the Cognos system that receives the operation and maintenance operation instruction is synchronized with the data between the other Cognos systems.
同时,当预设时间到达时,触发的运维操作指令,还可以是用于进行模型发布的指令,或者是清理日志的指令等。At the same time, when the preset time arrives, the triggered operation and maintenance operation instruction may also be an instruction for performing model release, or an instruction for clearing the log.
在本实施例中,当系统时间达到预设系统时间时,发送针对BI工具的运维操作指令,无需在预设系统时间达到时,运维人员来手工操作,就可以自动触发运维操作指令,进行主动运维,提高运维的效率。In this embodiment, when the system time reaches the preset system time, the operation and maintenance operation instruction for the BI tool is sent, and the operation and maintenance personnel can manually trigger the operation and maintenance operation instruction when the operation and maintenance personnel manually operate when the preset system time is reached. , carry out active operation and maintenance, improve the efficiency of operation and maintenance.
S20,获取所述运维操作指令指示的运维对象以及所述运维对象的层级。S20. Acquire an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object.
上述运维对象可以是指要执行运维操作的对象。例如,运维对象为某一Cognos系统,具体的运维对象可以是某一Cognos系统中的某一台或几台服务器。The above operation and maintenance object may refer to an object to perform an operation and maintenance operation. For example, the operation and maintenance object is a Cognos system, and the specific operation and maintenance object may be one or several servers in a certain Cognos system.
同时,可以预先为运维对象设置不同层级。例如,在已部署的BI系统中,包含3个cognos系统,则将第一Cognos系统、第二Cognos系统以及第三Cognos系统设置为第一层级。将每个Cognos系统所对应的数据库设置为第二层级。At the same time, different levels can be set in advance for the operation and maintenance objects. For example, in a deployed BI system, including three cognos systems, the first Cognos system, the second Cognos system, and the third Cognos system are set to the first level. Set the database corresponding to each Cognos system to the second level.
可选的,在本申请其他实施例中,所述运维对象的层级包括子系统层级、逻辑单元层级以及应用节点层级。Optionally, in other embodiments of the present application, the hierarchy of the operation and maintenance object includes a subsystem level, a logic unit level, and an application node level.
在本实施例中,运维对象的层级分为三个层级,即子系统层级、逻辑单元层级以及应用节点层级。In this embodiment, the hierarchy of the operation and maintenance objects is divided into three levels, that is, a subsystem level, a logical unit level, and an application node level.
其中,子系统层级可以是BI系统,例如子系统层级的运维对象为Cognos子系统。The subsystem level may be a BI system, for example, the operation and maintenance object of the subsystem level is the Cognos subsystem.
逻辑单元层级也可称为LE(logic element)层级。LE层级可以是对子系统的系统架构来进行划分。例如,子系统为Cognos系统,该Cognos子系统为三层体系架构,具体包括:展示层(presentation/web tier),应用层(application tier),数据层(data tier)。则逻辑单元层级的运维对象为展示层的实例对象、应用层的实例对象以及数据层的实例对象。The logical unit level can also be referred to as the LE (logic element) level. The LE level can be divided into system architectures of the subsystems. For example, the subsystem is a Cognos system, and the Cognos subsystem is a three-tier architecture, including: presentation/web tier, application tier, and data tier. The operation and maintenance objects at the logical unit level are instance objects of the presentation layer, instance objects of the application layer, and instance objects of the data layer.
应用节点层级是LE层级下对应的应用节点。例如一个Cognos子系统有10台主机,其中2台为web主机(网络主机),6台为app主机(应用主机),2台为cm主机(内容管理主机),则每台主机就是应用节点层级的运维对象。The application node level is the corresponding application node under the LE level. For example, a Cognos subsystem has 10 hosts, 2 of which are web hosts (network hosts), 6 are app hosts (application hosts), and 2 are cm hosts (content management hosts). Each host is an application node level. Operation and maintenance object.
同时,子系统层级之下为LE层级,LE层级下为应用节点层级。At the same time, under the subsystem level is the LE level, and under the LE level is the application node level.
具体的,请参考图2,图2为运维对象的层级的示例图。在图2中,对于一个子系统层级下可以有多个逻辑单元层级的运维对象,逻辑单元层级下也可以有一个或多个应用节点层级的运维对象。Specifically, please refer to FIG. 2, which is an example diagram of the hierarchy of the operation and maintenance object. In FIG. 2, for an operation and maintenance object having a plurality of logical unit levels under one subsystem level, one or more operation node levels of the application node level may also be operated under the logical unit level.
S30,确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象。S30. Determine an operable object at the same level as the operation and maintenance object, and/or an operable object whose level is lower than the level of the operation and maintenance object is an operation and maintenance object to be operated.
上述可操作对象,是可以对其进行运维操作的对象。The above operable object is an object that can be operated and operated.
例如,一个Cognos子系统包括10台主机,其中2台为web主机(网络主机),6台为app主机(应用主机),2台为cm主机(内容管理主机)。每台主机都为可操作对象。若运维对象为该Cognos子系统,则待操作运维对象可以为10台主机(包含2台web主机,6台app主机以及2台cm主机)。For example, a Cognos subsystem consists of 10 hosts, 2 of which are web hosts (network hosts), 6 are app hosts (application hosts), and 2 are cm hosts (content management hosts). Each host is an operational object. If the operation and maintenance object is the Cognos subsystem, the operation and maintenance object to be operated can be 10 hosts (including 2 web hosts, 6 app hosts, and 2 cm hosts).
若运维对象为LE层级的可操作对象,具体是应用层(application tier)的实例对象,则待操作运维对象可以为6台app主机。If the operation and maintenance object is an operable object of the LE level, specifically an instance object of an application tier, the operation and maintenance object to be operated may be six app hosts.
若运维对象为某一web主机(应用节点层级的实例对象),则待操作运维对象可以为该web主机。If the operation and maintenance object is a web host (an instance object of the application node level), the operation and maintenance object to be operated may be the web host.
S40,根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。S40: Perform operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
在确定待操作运维对象之后,对待操作运维对象执行运维操作。After determining the operation and maintenance object to be operated, the operation and maintenance operation is performed on the operation and maintenance object.
可以理解的是,对于不同的运维对象,可以执行的运维操作可以是不同的。有些运维操作是对于所有的运维对象都有的,有的运维操作是仅对部分运维对象才有的。例如,重启apache是web主机才会有的操作。模型发布是app主机才会有的操作。启动同步、关闭同步、清理队列是cm主机才有的操作。具体运维操作根据运维指令所指示的操作而定。It can be understood that the operation and maintenance operations that can be performed for different operation and maintenance objects can be different. Some operation and maintenance operations are available to all operation and maintenance objects, and some operation and maintenance operations are only available for some operation and maintenance objects. For example, restarting apache is an operation that a web host will have. Model publishing is an operation that the app host will have. Start synchronization, close synchronization, and clean up the queue are operations that are only available to the cm host. The specific operation and maintenance operations depend on the operations indicated by the operation and maintenance instructions.
例如,一个Cognos子系统有10台主机,其中2台为web主机,6台为app主机,2台为cm主机,运维操作为重启操作。若待操作运维对象为10台主机,则10台主机都执行重启操作。若待操作运维对象为6台app主机,则仅6台app主机执行重启操作;若运维对象为IP为10.20.30.40的web主机,则仅该web主机执行重启操作。For example, a Cognos subsystem has 10 hosts, 2 of which are web hosts, 6 are app hosts, 2 are cm hosts, and operation and maintenance operations are restart operations. If the operation and maintenance object to be operated is 10 hosts, all 10 hosts perform a restart operation. If the operation and maintenance object to be operated is 6 app hosts, only 6 app hosts perform a restart operation; if the operation and maintenance object is a web host with IP 10.20.30.40, only the web host performs a restart operation.
可选的,若接收到的运维操作指令为用于对运行中的进程进行调度。所述根据运维操作指令指示的运维操作对所述待操作运维对象进行运维可以包括:Optionally, if the received operation and maintenance operation instruction is used to schedule the running process. The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction may include:
控制所述待操作对象之中满足暂停条件的待服务器暂停运行。Controlling the pending server to suspend operation among the objects to be operated.
其中,上述暂停条件可以根据需要预先设定。例如,某一台或多台服务器执行任务的优先级较低;或者某一台服务器的运行时间为夜晚,此时并没有执行刷新报表服务,而该台服务器处于运行中并且启动了大量的刷新报表有关的服务,此时可以确定将该台服务器进行暂停。The above suspension condition may be set in advance as needed. For example, one or more servers have lower priority for performing tasks; or one server runs at night, and the refresh report service is not executed at this time, and the server is running and starts a large number of refreshes. The service related to the report can be determined to suspend the server at this time.
具体的暂停条件不限于以上提到的,可以根据BI工具在实际中的运行需要来设定。The specific pause condition is not limited to the above, and can be set according to the operational needs of the BI tool in practice.
可选的,若接收到的运维操作指令为用于对所述BI工具的服务器的缓存进行清理的指令,则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:Optionally, if the received operation and maintenance operation instruction is an instruction for cleaning the cache of the server of the BI tool, the operation and maintenance operation indicated by the operation and maintenance operation instruction is performed on the to-be-operated operation. Dimensional objects are operated and maintained, including:
获取所述待操作对象之中未处于刷新状态的服务器;Obtaining a server that is not in a refresh state among the objects to be operated;
对所述待操作对象之中未处于刷新状态的服务器的缓存进行清理。Clearing the cache of the server that is not in the refresh state among the objects to be operated.
例如,待操作运维对象可以是需要进行缓存清理的一台或多台服务器。当需要进行清理的一台或多台服务器没有处于刷新状态时,对其进行缓存清理。For example, the operation and maintenance object to be operated may be one or more servers that need to be cache cleaned. When one or more servers that need to be cleaned are not in a refresh state, they are cache cleaned.
在本实施例中,可以根据运维操作指令进行服务器的缓存清理,并且在清理缓存时,仅清理未处于刷新状态的服务器的缓存。由于当服务器处于刷新状态时,可能需要缓存中的某些文件支持刷新,因此,在本实施例中进行缓存清理时,也可以避免影响BI工具运行。In this embodiment, the cache cleaning of the server may be performed according to the operation and maintenance operation instruction, and when the cache is cleared, only the cache of the server that is not in the refresh state is cleaned. When the server is in the refresh state, some files in the cache may be required to support the refresh. Therefore, when the cache is cleaned in this embodiment, the BI tool may also be prevented from running.
可选的,若接收到的运维操作指令为用于对所述BI工具进行数据同步的指令,则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:Optionally, if the received operation and maintenance operation instruction is an instruction for performing data synchronization on the BI tool, the operation and maintenance operation indicated by the operation and maintenance operation instruction is performed on the operation and maintenance object to be operated. Operation and maintenance, including:
确定所述待操作对象之中的预设服务器为待同步服务器;Determining that the preset server among the objects to be operated is a server to be synchronized;
对所述待同步服务器进行数据同步。Data synchronization is performed on the server to be synchronized.
上述预设服务器可以是能够进行数据同步的服务器,如cm主机(内容管理主机)。The above preset server may be a server capable of data synchronization, such as a cm host (content management host).
具体的,待操作对象之中的预设服务器可能全部为待同步服务器也可能部分为待同步服务器。在从待操作对象之中获取到待同步服务器之后,对待同步服务器进行数据同步。在进行数据同步时,可以是将待操作对象上的数据同步至其他存储区域,也可以是将其他存储区域的数据同步至待操作对象。Specifically, the preset servers among the objects to be operated may all be the server to be synchronized or part of the server to be synchronized. After the server to be synchronized is acquired from the objects to be operated, the data to be synchronized is synchronized with the server to be synchronized. When data synchronization is performed, the data on the object to be operated may be synchronized to other storage areas, or the data of other storage areas may be synchronized to the object to be operated.
例如,若待操作对象为2台cm主机,则将2台cm主机上的数据向其他用于数据备份的存储区域进行数据同步,或者将其他服务器中的数据同步至该2台cm主机。For example, if the object to be operated is two cm hosts, the data on the two cm hosts is synchronized with other storage areas for data backup, or the data in other servers is synchronized to the two cm hosts.
在本申请其他实施例中,当对待操作运维对象执行运维操作之后,可以汇总运维操作的结果。例如记录是否所有的待操作运维对象都成功执行了运维操作,或者指定运维对象的执行时间是否超过预设时间等。同样的,还可以将运维操作的结果发送至运维工作人员,以使运维工作快速的了解BI工具的运行和运维状态。In other embodiments of the present application, after the operation and maintenance operation is performed on the operation and maintenance object to be operated, the result of the operation and maintenance operation may be summarized. For example, whether all the operation and maintenance objects to be operated successfully perform the operation and maintenance operations, or whether the execution time of the operation and maintenance objects exceeds the preset time. Similarly, the results of the operation and maintenance operations can be sent to the operation and maintenance staff, so that the operation and maintenance work can quickly understand the operation and operation and maintenance status of the BI tools.
在本实施例中,可以快速的对多个可操作对象执行运维操作,提高运维的效率。同时,由于在运维对象的层级中包括逻辑单元层级以及应用节点层级,因此可以快速精准的对某一类的主机以及某一个主机进行精准化运维操作。In this embodiment, the operation and maintenance operations can be performed on a plurality of operable objects quickly, thereby improving the efficiency of operation and maintenance. At the same time, since the logical unit level and the application node level are included in the hierarchy of the operation and maintenance object, accurate operation and maintenance operations can be performed on a certain type of host and a certain host quickly and accurately.
可选的,在本申请其他实施例中,本申请所述的方法还可包括:Optionally, in other embodiments of the present application, the method described in the present application may further include:
显示运维操作的选取页面,所述选取页面包括运维操作和运维对象;根据从所述选取页面选取的运维操作和运维对象触发运维操作指令。The selection page of the operation and maintenance operation is displayed, and the selection page includes an operation and maintenance operation and an operation and maintenance object; and an operation and maintenance operation instruction is triggered according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
上述运维操作包括但不限于:重启BI工具,启动BI工具,暂停BI工具,清理缓存,清理日志,数据同步,模型发布。The above operation and maintenance operations include but are not limited to: restart BI tools, start BI tools, suspend BI tools, clean up caches, clean up logs, synchronize data, and publish models.
所述选取页面包括运维操作对象和运维对象,是指选取页面上显示运维操作和运维对象,则用户可以从选取页面上对运维操作和运维对象进行选取。The selection page includes an operation and maintenance operation object and an operation and maintenance object, which means that the operation and maintenance operation and the operation and maintenance object are displayed on the selected page, and the user can select the operation and maintenance operation and the operation and maintenance object from the selection page.
在本实施例中,可以在图形用户界面进行显示选取运维操作的页面,以便运维人员进行查看。同时,由于根据运维操作指令执行的运维操作是根据运维人员的来确定的。因此,在本申请提供的运维方法中不仅可以自动化的进行运维,还提供了选取界面供运维人员进行选取进而触发指令,使运维人员在进行系统运维时更加便捷。In this embodiment, a page for displaying an operation and maintenance operation may be displayed on the graphical user interface for the operation and maintenance personnel to view. At the same time, the operation and maintenance operations performed according to the operation and maintenance operation instructions are determined according to the operation and maintenance personnel. Therefore, in the operation and maintenance method provided by the present application, not only can the operation and maintenance be automated, but also the selection interface is provided for the operation and maintenance personnel to select and trigger the instruction, so that the operation and maintenance personnel are more convenient in system operation and maintenance.
可选的,在本申请另一实施例中,本申请所述的方法还可包括:Optionally, in another embodiment of the present application, the method described in the present application may further include:
当对所述待操作运维对象进行运维之后,若获取到所述BI工具运行异常的信息,发送报警信息。After the operation and maintenance of the operation and maintenance object to be operated, if the information about the abnormal operation of the BI tool is acquired, an alarm message is sent.
具体的,对待操作运维对象进行运维之后的一段时间之内,当获取到BI工具运行异常(例如,BI工具无法正常运行或者缓存空间不足等)的信息时,进行提醒。Specifically, during the period after the operation and maintenance of the operation and maintenance object is performed, when the information of the BI tool running abnormal (for example, the BI tool cannot run normally or the buffer space is insufficient) is obtained, the reminder is performed.
例如,当某一Cognos系统多次重启之后仍然无法启动,可能需要运维人员查看异常并处理,此时向运维人员发送报警信息,使得运维人员能够及时处理异常,进行精准化的运维。For example, when a certain Cognos system fails to start after multiple restarts, the operation and maintenance personnel may need to view the exception and process it. At this time, the alarm information is sent to the operation and maintenance personnel, so that the operation and maintenance personnel can process the abnormality in time and perform precise operation and maintenance. .
通过本实施例,除了可以实现自动运维,也可以在无法自动运维时,及时的将报警信息发送至运维人员,以便BI工具运行过程中的问题得到及时的解决,避免系统故障影响用户的使用。In this embodiment, in addition to automatic operation and maintenance, the alarm information can be sent to the operation and maintenance personnel in time when the automatic operation and maintenance cannot be performed, so that the problems in the running process of the BI tool can be solved in time to avoid the system failure affecting the user. usage of.
本申请提供的BI工具的运维方法监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令;获取所述运维操作指令指示的运维对象以及所述运维对象的层级;确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象;根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。由于监控到BI工具的运行状态满足运维条件时,就自动触发运维操作指令,并且在确定运维对象时根据运维对象的层级,确定于运维对象在同一层级的可操作对象,和/或层级低于运维对象的层级的可操作对象为待操作运维对象,因此,根据运维操作指令指示的运维对象可以确定多个对象为待操作运维对象,进而针对多个待操作对象进行运维。无需运维人员人工监控并一一进行运维处理,极大的提高了运维的效率。The operation and maintenance method of the BI tool provided by the present application monitors the running state of the BI tool, and when the running state of the BI tool meets the operation and maintenance condition, triggers the operation and maintenance operation instruction; acquires the operation and maintenance object indicated by the operation and maintenance operation instruction, and a hierarchy of the operation and maintenance object; an operable object that is at the same level as the operation and maintenance object, and/or an operable object whose hierarchy is lower than the hierarchy of the operation and maintenance object is an operation and maintenance object to be operated; The operation and maintenance operation indicated by the operation and maintenance operation instruction performs operation and maintenance on the operation and maintenance object to be operated. When the running state of the BI tool meets the operation and maintenance conditions, the operation and maintenance operation instruction is automatically triggered, and when the operation and maintenance object is determined, according to the hierarchy of the operation and maintenance object, the operable object of the operation and maintenance object at the same level is determined, and The operation object that is lower than the hierarchy of the operation and maintenance object is the operation and maintenance object to be operated. Therefore, the operation and maintenance object indicated by the operation and maintenance operation instruction can determine that multiple objects are to be operated and operated, and then The operation object is operated and maintained. No maintenance personnel are required to manually monitor and perform operation and maintenance processing one by one, which greatly improves the efficiency of operation and maintenance.
如图3所示,图3为本申请实施例提供的BI工具的运维装置的功能模块图。所述BI工具的运维装置包括监控模块210、获取模块220、确定模块230和处理模块240。本申请所称的模块是指一种能够被计算机装置的处理器所执行并且能够完成固定功能的一系列计算机可读指令段,其存储在计算机装置的存储器中。在本实施例中,关于各模块的功能将在后续的实施例中详述。As shown in FIG. 3, FIG. 3 is a functional block diagram of an operation and maintenance apparatus of a BI tool according to an embodiment of the present application. The operation and maintenance device of the BI tool includes a monitoring module 210, an obtaining module 220, a determining module 230, and a processing module 240. A module as referred to herein refers to a series of computer readable instruction segments that can be executed by a processor of a computer device and that are capable of performing a fixed function, which are stored in a memory of the computer device. In the present embodiment, the functions of the respective modules will be described in detail in the subsequent embodiments.
监控模块210,用于监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令。The monitoring module 210 is configured to monitor an operating state of the BI tool, and trigger an operation and maintenance operation instruction when the running state of the BI tool meets an operation and maintenance condition.
本申请所述的BI工具的运维装置可以对部署了Cognos,Pentaho,Tableau中的任意一种BI工具进行运维,也可以是对部署了Cognos,Pentaho,Tableau中的至少两种BI工具进行运维。The operation and maintenance device of the BI tool described in the present application can perform operation and maintenance on any BI tool deployed in Cognos, Pentaho, Tableau, or at least two BI tools deployed in Cognos, Pentaho, and Tableau. Operation and maintenance.
上述运维指令包括但不限于:重启BI工具指令,启动BI工具指令,暂停BI工具指令,清理缓存指令,清理日志指令,数据同步指令,模型发布指令。The above operation and maintenance instructions include, but are not limited to, restarting BI tool instructions, starting BI tool instructions, suspending BI tool instructions, clearing cache instructions, cleaning log instructions, data synchronization instructions, and model issuing instructions.
其中,重启BI工具的指令用于将BI工具进行重启。Among them, the instruction to restart the BI tool is used to restart the BI tool.
启动BI工具指令用于将BI工具从关闭状态进行启动。The Start BI Tools command is used to launch the BI tool from the shutdown state.
暂停BI工具指令用于将运行中的BI工具进行暂定,清理缓存指令用于清理BI系统中的缓存,例如清理某一Cognos的缓存。The pause BI tool instruction is used to tentatively set the running BI tool, and the cleanup cache instruction is used to clean up the cache in the BI system, such as cleaning up a Cognos cache.
清理日志指令用于将BI系统运行时的日志,例如清理某一Cognos的日志。The cleanup log directive is used to log the BI system runtime, such as cleaning up a Cognos log.
数据同步指令用于将数据在不同的BI系统之间进行同步,例如将当前第一Cognos系统中的指定数据同步至第二Cognos系统中。The data synchronization instructions are used to synchronize data between different BI systems, such as synchronizing the specified data in the current first Cognos system to the second Cognos system.
模型发布指令用于将模型进行发布,在Cognos系统中,模型用于定义数据如何组织,数据的结构是怎样的。模型可以是预先根据需要建立或使用过程中创建的。The model release directive is used to publish the model. In the Cognos system, the model is used to define how the data is organized and what the structure of the data is. Models can be created in advance as needed or created during use.
上述运维条件可以根据需要设定,针对BI工具运行时服务器的不同参数,可以设置不同的运维条件。The above operation and maintenance conditions can be set according to requirements. Different operation and maintenance conditions can be set for different parameters of the BI tool runtime server.
例如,向BI工具的服务器发送指定命令来检测BI工具的可用性,当返回正常值时确定BI工具的状态为正常,当返回的值为非正常值时,确定BI工具的运行状态满足运维条件,触发相应的运维操作指令。For example, the specified command is sent to the server of the BI tool to detect the availability of the BI tool. When the normal value is returned, the status of the BI tool is determined to be normal. When the returned value is an abnormal value, it is determined that the running state of the BI tool satisfies the operation and maintenance condition. , trigger the corresponding operation and maintenance operation instructions.
可选的,在本申请其他实施例中,所述监控模块210具体用于:Optionally, in other embodiments of the present application, the monitoring module 210 is specifically configured to:
获取所述BI工具运行时消耗的系统资源;当所述BI工具运行时消耗的系统资源超过预设阈值时,触发运维操作指令,所述运维操作指令用于对运行中的进程进行调度。Obtaining a system resource consumed by the running of the BI tool; when the system resource consumed by the BI tool exceeds a preset threshold, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to schedule a running process .
其中,上述系统资源包括不限于BI系统的服务器的CPU、内存、共享存储。系统资源是BI系统的服务器的硬件资源。不同的系统资源所对应的预设阈值是不同的。The above system resources include a CPU, a memory, and a shared storage of a server that are not limited to the BI system. System resources are hardware resources of the servers of the BI system. The preset thresholds corresponding to different system resources are different.
例如,监控BI工具运行时的CPU使用率,当CPU的利用率超过90%时,触发运维操作指令。具体的,是触发针对该BI工具的服务器的运维操作指令。该指令,用于对运行中的进程进行调度。例如,将占用资源过多的某一进程暂停,或者是对运行的先后进行调度等。For example, monitoring the CPU usage of the BI tool at runtime, when the CPU utilization exceeds 90%, triggers the operation and maintenance operation instruction. Specifically, it is an operation and maintenance operation instruction that triggers a server for the BI tool. This directive is used to schedule a running process. For example, a process that occupies too much resources is suspended, or a sequence of operations is scheduled.
同时,通常部署好的BI工具有多台服务器,在触发运维操作指令时,具体可以是针对指定的一台或多台服务器发出的运维操作指令。At the same time, the commonly deployed BI tool has multiple servers. When the operation and maintenance operation command is triggered, it may be an operation and maintenance operation instruction issued for one or more specified servers.
在本实施例中,当BI工具运行时的系统资源超过预设阈值,表明可能引起BI工具的性能问题,影响用户的使用。因此,发送针对BI工具的服务器的运维操作指令,使得无需运维人员来查找并发现问题,就可以主动及时的进行运维,提高运维的效率。In this embodiment, when the system resource of the BI tool is running exceeds a preset threshold, it indicates that the performance problem of the BI tool may be caused, which affects the user's use. Therefore, the operation and maintenance operation instructions of the server for the BI tool are sent, so that the operation and maintenance personnel are not required to find and find the problem, and the operation and maintenance can be performed in an active and timely manner to improve the operation and maintenance efficiency.
可选的,在本申请其他实施例中,所述监控模块210具体用于:Optionally, in other embodiments of the present application, the monitoring module 210 is specifically configured to:
获取所述BI工具的服务器的缓存信息;当所述服务器的缓存大小达到预设缓存值时,触发运维操作指令,所述运行操作指令用于对所述服务器的缓存进行清理。Obtaining cache information of the server of the BI tool; when the cache size of the server reaches a preset cache value, triggering an operation and maintenance operation instruction, where the operation operation instruction is used to clean the cache of the server.
其中,上述预设缓存值具体可以根据需要设定。The preset cache value may be specifically set as needed.
优选的,上述预设缓存值可以根据BI工具的服务器中磁盘剩余空间的大小来确定。例如,预设缓存值为BI工具的服务器中剩余缓存容量大小的70%或80%。Preferably, the preset cache value may be determined according to the size of the remaining space of the disk in the server of the BI tool. For example, the default cache value is 70% or 80% of the size of the remaining cache capacity in the BI tool's server.
在具体实施时,若有多台服务器,若仅有一台几台服务器的缓存达到预设缓存值时,可以仅向该一台或几台服务器发送清理缓存的指令。In a specific implementation, if there are multiple servers, if only one of the servers has a cache that reaches a preset cache value, the command to clear the cache may be sent only to the one or several servers.
在本实施例中,可以及时将服务器中的缓存进行清理,避免缓存来不及 清理造成的系统运行效率降低或者运行异常的问题。In this embodiment, the cache in the server can be cleaned in time to avoid the problem that the system running efficiency or abnormal operation caused by the cache is not cleaned up.
可选的,在本申请其他实施例中,所述监控模块210具体用于:Optionally, in other embodiments of the present application, the monitoring module 210 is specifically configured to:
获取所述BI工具的服务器的系统时间;若所述系统时间为预设时间,触发运维操作指令,所述运维操作指令用于对所述BI工具进行数据同步。Obtaining a system time of the server of the BI tool; if the system time is a preset time, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to perform data synchronization on the BI tool.
其中,上述BI工具的服务器的系统时间可以是BI工具的服务器的当前的系统时间。具体的预设时间的值可以根据需要设定。The system time of the server of the BI tool may be the current system time of the server of the BI tool. The value of the specific preset time can be set as needed.
上述对BI工具进行数据同步,具体是向某一个或多个Cognos系统发送该运维操作指令,使接收到运维操作指令的Cognos系统的数据与其他Cognos系统之间的数据进行同步。The data synchronization of the BI tool is specifically performed by sending the operation and maintenance operation instruction to one or more Cognos systems, so that the data of the Cognos system that receives the operation and maintenance operation instruction is synchronized with the data between the other Cognos systems.
同时,当预设时间到达时,触发的运维操作指令,还可以是用于进行模型发布的指令,或者是清理日志的指令等。At the same time, when the preset time arrives, the triggered operation and maintenance operation instruction may also be an instruction for performing model release, or an instruction for clearing the log.
在本实施例中,当系统时间达到预设系统时间时,发送针对BI工具的运维操作指令,无需在预设系统时间达到时,运维人员来手工操作,就可以自动触发运维操作指令,进行主动运维,提高运维的效率。In this embodiment, when the system time reaches the preset system time, the operation and maintenance operation instruction for the BI tool is sent, and the operation and maintenance personnel can manually trigger the operation and maintenance operation instruction when the operation and maintenance personnel manually operate when the preset system time is reached. , carry out active operation and maintenance, improve the efficiency of operation and maintenance.
获取模块220,用于获取所述运维操作指令指示的运维对象以及所述运维对象的层级。The obtaining module 220 is configured to acquire an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object.
上述运维对象可以是指要执行运维操作的对象。例如,运维对象为某一Cognos系统,具体的运维对象可以是某一Cognos系统中的某一台或几台服务器。The above operation and maintenance object may refer to an object to perform an operation and maintenance operation. For example, the operation and maintenance object is a Cognos system, and the specific operation and maintenance object may be one or several servers in a certain Cognos system.
同时,可以预先为运维对象设置不同层级。例如,在已部署的BI系统中,包含3个cognos系统,则将第一Cognos系统、第二Cognos系统以及第三Cognos系统设置为第一层级。将每个Cognos系统所对应的数据库设置为第二层级。At the same time, different levels can be set in advance for the operation and maintenance objects. For example, in a deployed BI system, including three cognos systems, the first Cognos system, the second Cognos system, and the third Cognos system are set to the first level. Set the database corresponding to each Cognos system to the second level.
可选的,在本申请其他实施例中,所述运维对象的层级包括子系统层级、逻辑单元层级以及应用节点层级。Optionally, in other embodiments of the present application, the hierarchy of the operation and maintenance object includes a subsystem level, a logic unit level, and an application node level.
在本实施例中,运维对象的层级分为三个层级,即子系统层级、逻辑单元层级以及应用节点层级。In this embodiment, the hierarchy of the operation and maintenance objects is divided into three levels, that is, a subsystem level, a logical unit level, and an application node level.
其中,子系统层级可以是BI系统,例如子系统层级的运维对象为Cognos子系统。The subsystem level may be a BI system, for example, the operation and maintenance object of the subsystem level is the Cognos subsystem.
逻辑单元层级也可称为LE(logic element)层级。LE层级可以是对子系统的系统架构来进行划分。例如,子系统为Cognos系统,该Cognos子系统为三层体系架构,具体包括:展示层(presentation/web tier),应用层(application tier),数据层(data tier)。则逻辑单元层级的运维对象为展示层的实例对象、应用层的实例对象以及数据层的实例对象。The logical unit level can also be referred to as the LE (logic element) level. The LE level can be divided into system architectures of the subsystems. For example, the subsystem is a Cognos system, and the Cognos subsystem is a three-tier architecture, including: presentation/web tier, application tier, and data tier. The operation and maintenance objects at the logical unit level are instance objects of the presentation layer, instance objects of the application layer, and instance objects of the data layer.
应用节点层级是LE层级下对应的应用节点。例如一个Cognos子系统有10台主机,其中2台为web主机(网络主机),6台为app主机(应用主机),2台为cm主机(内容管理主机),则每台主机就是应用节点层级的运维对象。The application node level is the corresponding application node under the LE level. For example, a Cognos subsystem has 10 hosts, 2 of which are web hosts (network hosts), 6 are app hosts (application hosts), and 2 are cm hosts (content management hosts). Each host is an application node level. Operation and maintenance object.
同时,子系统层级之下为LE层级,LE层级下为应用节点层级。At the same time, under the subsystem level is the LE level, and under the LE level is the application node level.
具体的,请参考图2,图2为运维对象的层级的示例图。在图2中,对于一个子系统层级下可以有多个逻辑单元层级的运维对象,逻辑单元层级下 也可以有一个或多个应用节点层级的运维对象。Specifically, please refer to FIG. 2, which is an example diagram of the hierarchy of the operation and maintenance object. In FIG. 2, for an operation and maintenance object having a plurality of logical unit levels under one subsystem level, one or more operation node levels of the application node level may also be operated under the logical unit level.
确定模块230,用于确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象。The determining module 230 is configured to determine an operable object at the same level as the operation and maintenance object, and/or an operable object whose level is lower than the level of the operation and maintenance object is an operation and maintenance object to be operated.
上述可操作对象,是可以对其进行运维操作的对象。The above operable object is an object that can be operated and operated.
例如,一个Cognos子系统包括10台主机,其中2台为web主机(网络主机),6台为app主机(应用主机),2台为cm主机(内容管理主机)。每台主机都为可操作对象。若运维对象为该Cognos子系统,则待操作运维对象可以为10台主机(包含2台web主机,6台app主机以及2台cm主机)。For example, a Cognos subsystem consists of 10 hosts, 2 of which are web hosts (network hosts), 6 are app hosts (application hosts), and 2 are cm hosts (content management hosts). Each host is an operational object. If the operation and maintenance object is the Cognos subsystem, the operation and maintenance object to be operated can be 10 hosts (including 2 web hosts, 6 app hosts, and 2 cm hosts).
若运维对象为LE层级的可操作对象,具体是应用层(application tier)的实例对象,则待操作运维对象可以为6台app主机。If the operation and maintenance object is an operable object of the LE level, specifically an instance object of an application tier, the operation and maintenance object to be operated may be six app hosts.
若运维对象为某一web主机(应用节点层级的实例对象),则待操作运维对象可以为该web主机。If the operation and maintenance object is a web host (an instance object of the application node level), the operation and maintenance object to be operated may be the web host.
处理模块240,用于根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。The processing module 240 is configured to perform operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
在确定待操作运维对象之后,对待操作运维对象执行运维操作。After determining the operation and maintenance object to be operated, the operation and maintenance operation is performed on the operation and maintenance object.
可以理解的是,对于不同的运维对象,可以执行的运维操作可以是不同的。有些运维操作是对于所有的运维对象都有的,有的运维操作是仅对部分运维对象才有的。例如,重启apache是web主机才会有的操作。模型发布是app主机才会有的操作。启动同步、关闭同步、清理队列是cm主机才有的操作。具体运维操作根据运维指令所指示的操作而定。It can be understood that the operation and maintenance operations that can be performed for different operation and maintenance objects can be different. Some operation and maintenance operations are available to all operation and maintenance objects, and some operation and maintenance operations are only available for some operation and maintenance objects. For example, restarting apache is an operation that a web host will have. Model publishing is an operation that the app host will have. Start synchronization, close synchronization, and clean up the queue are operations that are only available to the cm host. The specific operation and maintenance operations depend on the operations indicated by the operation and maintenance instructions.
例如,一个Cognos子系统有10台主机,其中2台为web主机,6台为app主机,2台为cm主机,运维操作为重启操作。若待操作运维对象为10台主机,则10台主机都执行重启操作。若待操作运维对象为6台app主机,则仅6台app主机执行重启操作;若运维对象为IP为10.20.30.40的web主机,则仅该web主机执行重启操作。For example, a Cognos subsystem has 10 hosts, 2 of which are web hosts, 6 are app hosts, 2 are cm hosts, and operation and maintenance operations are restart operations. If the operation and maintenance object to be operated is 10 hosts, all 10 hosts perform a restart operation. If the operation and maintenance object to be operated is 6 app hosts, only 6 app hosts perform a restart operation; if the operation and maintenance object is a web host with IP 10.20.30.40, only the web host performs a restart operation.
可选的,若接收到的运维操作指令为用于对运行中的进程进行调度。所述处理模块具体用于:Optionally, if the received operation and maintenance operation instruction is used to schedule the running process. The processing module is specifically configured to:
控制所述待操作对象之中满足暂停条件的待服务器暂停运行。Controlling the pending server to suspend operation among the objects to be operated.
其中,上述暂停条件可以根据需要预先设定。例如,某一台或多台服务器执行任务的优先级较低;或者某一台服务器的运行时间为夜晚,此时并没有执行刷新报表服务,而该台服务器处于运行中并且启动了大量的刷新报表有关的服务,此时可以确定将该台服务器进行暂停。The above suspension condition may be set in advance as needed. For example, one or more servers have lower priority for performing tasks; or one server runs at night, and the refresh report service is not executed at this time, and the server is running and starts a large number of refreshes. The service related to the report can be determined to suspend the server at this time.
具体的暂停条件不限于以上提到的,可以根据BI工具在实际中的运行需要来设定。The specific pause condition is not limited to the above, and can be set according to the operational needs of the BI tool in practice.
可选的,若接收到的运维操作指令为用于对所述BI工具的服务器的缓存进行清理的指令,则处理模块具体用于:Optionally, if the received operation and maintenance operation instruction is an instruction for cleaning the cache of the server of the BI tool, the processing module is specifically configured to:
获取所述待操作对象之中未处于刷新状态的服务器;对所述待操作对象之中未处于刷新状态的服务器的缓存进行清理。Obtaining a server that is not in a refresh state among the objects to be operated; and clearing a cache of a server that is not in a refresh state among the objects to be operated.
例如,待操作运维对象可以是需要进行缓存清理的一台或多台服务器。当需要进行清理的一台或多台服务器没有处于刷新状态时,对其进行缓存清 理。For example, the operation and maintenance object to be operated may be one or more servers that need to be cache cleaned. When one or more servers that need to be cleaned are not in a refresh state, they are cached.
在本实施例中,可以根据运维操作指令进行服务器的缓存清理,并且在清理缓存时,仅清理未处于刷新状态的服务器的缓存。由于当服务器处于刷新状态时,可能需要缓存中的某些文件支持刷新,因此,在本实施例中进行缓存清理时,也可以避免影响BI工具运行。In this embodiment, the cache cleaning of the server may be performed according to the operation and maintenance operation instruction, and when the cache is cleared, only the cache of the server that is not in the refresh state is cleaned. When the server is in the refresh state, some files in the cache may be required to support the refresh. Therefore, when the cache is cleaned in this embodiment, the BI tool may also be prevented from running.
可选的,若接收到的运维操作指令为用于对所述BI工具进行数据同步的指令,则处理模块具体用于:Optionally, if the received operation and maintenance operation instruction is an instruction for performing data synchronization on the BI tool, the processing module is specifically configured to:
确定所述待操作对象之中的预设服务器为待同步服务器;对所述待同步服务器进行数据同步。Determining that the preset server among the objects to be operated is a server to be synchronized; and performing data synchronization on the server to be synchronized.
上述预设服务器可以是能够进行数据同步的服务器,如cm主机(内容管理主机)。The above preset server may be a server capable of data synchronization, such as a cm host (content management host).
具体的,待操作对象之中的预设服务器可能全部为待同步服务器也可能部分为待同步服务器。在从待操作对象之中获取到待同步服务器之后,对待同步服务器进行数据同步。在进行数据同步时,可以是将待操作对象上的数据同步至其他存储区域,也可以是将其他存储区域的数据同步至待操作对象。Specifically, the preset servers among the objects to be operated may all be the server to be synchronized or part of the server to be synchronized. After the server to be synchronized is acquired from the objects to be operated, the data to be synchronized is synchronized with the server to be synchronized. When data synchronization is performed, the data on the object to be operated may be synchronized to other storage areas, or the data of other storage areas may be synchronized to the object to be operated.
例如,若待操作对象为2台cm主机,则将2台cm主机上的数据向其他用于数据备份的存储区域进行数据同步,或者将其他服务器中的数据同步至该2台cm主机。For example, if the object to be operated is two cm hosts, the data on the two cm hosts is synchronized with other storage areas for data backup, or the data in other servers is synchronized to the two cm hosts.
在本申请其他实施例中,当对待操作运维对象执行运维操作之后,可以汇总运维操作的结果。例如记录是否所有的待操作运维对象都成功执行了运维操作,或者指定运维对象的执行时间是否超过预设时间等。同样的,还可以将运维操作的结果发送至运维工作人员,以使运维工作快速的了解BI工具的运行和运维状态。In other embodiments of the present application, after the operation and maintenance operation is performed on the operation and maintenance object to be operated, the result of the operation and maintenance operation may be summarized. For example, whether all the operation and maintenance objects to be operated successfully perform the operation and maintenance operations, or whether the execution time of the operation and maintenance objects exceeds the preset time. Similarly, the results of the operation and maintenance operations can be sent to the operation and maintenance staff, so that the operation and maintenance work can quickly understand the operation and operation and maintenance status of the BI tools.
在本实施例中,可以快速的对多个可操作对象执行运维操作,提高运维的效率。同时,由于在运维对象的层级中包括逻辑单元层级以及应用节点层级,因此可以快速精准的对某一类的主机以及某一个主机进行精准化运维操作。In this embodiment, the operation and maintenance operations can be performed on a plurality of operable objects quickly, thereby improving the efficiency of operation and maintenance. At the same time, since the logical unit level and the application node level are included in the hierarchy of the operation and maintenance object, accurate operation and maintenance operations can be performed on a certain type of host and a certain host quickly and accurately.
可选的,在本申请其他实施例中,本申请所述的装置还可包括显示模块和触发模块。Optionally, in other embodiments of the present application, the apparatus described in the present application may further include a display module and a trigger module.
显示模块,用于显示运维操作的选取页面,所述选取页面包括运维操作和运维对象。The display module is configured to display a selection page of the operation and maintenance operation, and the selection page includes an operation and maintenance operation and an operation and maintenance object.
触发模块,用于根据从所述选取页面选取的运维操作和运维对象触发运维操作指令。The triggering module is configured to trigger an operation and maintenance operation instruction according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
上述运维操作包括但不限于:重启BI工具,启动BI工具,暂停BI工具,清理缓存,清理日志,数据同步,模型发布。The above operation and maintenance operations include but are not limited to: restart BI tools, start BI tools, suspend BI tools, clean up caches, clean up logs, synchronize data, and publish models.
所述选取页面包括运维操作对象和运维对象,是指选取页面上显示运维操作和运维对象,则用户可以从选取页面上对运维操作和运维对象进行选取。The selection page includes an operation and maintenance operation object and an operation and maintenance object, which means that the operation and maintenance operation and the operation and maintenance object are displayed on the selected page, and the user can select the operation and maintenance operation and the operation and maintenance object from the selection page.
在本实施例中,可以在图形用户界面进行显示选取运维操作的页面,以便运维人员进行查看。同时,由于根据运维操作指令执行的运维操作是根据运维人员的来确定的。因此,在本申请提供的运维方法中不仅可以自动化的 进行运维,还提供了选取界面供运维人员进行选取进而触发指令,使运维人员在进行系统运维时更加便捷。In this embodiment, a page for displaying an operation and maintenance operation may be displayed on the graphical user interface for the operation and maintenance personnel to view. At the same time, the operation and maintenance operations performed according to the operation and maintenance operation instructions are determined according to the operation and maintenance personnel. Therefore, in the operation and maintenance method provided by the present application, not only can the operation and maintenance be automated, but also the selection interface is provided for the operation and maintenance personnel to select and trigger the instruction, so that the operation and maintenance personnel are more convenient in system operation and maintenance.
可选的,在本申请另一实施例中,本申请所述的装置还可包括提醒模块。Optionally, in another embodiment of the present application, the apparatus described in the present application may further include a reminding module.
提醒模块,用于当对所述待操作运维对象进行运维之后,若获取到所述BI工具运行异常的信息,发送报警信息。The reminding module is configured to: after the operation and maintenance of the operation and maintenance object to be operated, obtain the information that the BI tool runs abnormally, and send an alarm message.
具体的,对待操作运维对象进行运维之后的一段时间之内,当获取到BI工具运行异常(例如,BI工具无法正常运行或者缓存空间不足等)的信息时,进行提醒。Specifically, during the period after the operation and maintenance of the operation and maintenance object is performed, when the information of the BI tool running abnormal (for example, the BI tool cannot run normally or the buffer space is insufficient) is obtained, the reminder is performed.
例如,当某一Cognos系统多次重启之后仍然无法启动,可能需要运维人员查看异常并处理,此时向运维人员发送报警信息,使得运维人员能够及时处理异常,进行精准化的运维。For example, when a certain Cognos system fails to start after multiple restarts, the operation and maintenance personnel may need to view the exception and process it. At this time, the alarm information is sent to the operation and maintenance personnel, so that the operation and maintenance personnel can process the abnormality in time and perform precise operation and maintenance. .
通过本实施例,除了可以实现自动运维,也可以在无法自动运维时,及时的将报警信息发送至运维人员,以便BI工具运行过程中的问题得到及时的解决,避免系统故障影响用户的使用。In this embodiment, in addition to automatic operation and maintenance, the alarm information can be sent to the operation and maintenance personnel in time when the automatic operation and maintenance cannot be performed, so that the problems in the running process of the BI tool can be solved in time to avoid the system failure affecting the user. usage of.
本申请提供的BI工具的运维装置通过监控模块监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令;获取模块获取所述运维操作指令指示的运维对象以及所述运维对象的层级;确定模块确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象;处理模块根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。由于监控到BI工具的运行状态满足运维条件时,就自动触发运维操作指令,并且在确定运维对象时根据运维对象的层级,确定于运维对象在同一层级的可操作对象,和/或层级低于运维对象的层级的可操作对象为待操作运维对象,因此,根据运维操作指令指示的运维对象可以确定多个对象为待操作运维对象,进而针对多个待操作对象进行运维。无需运维人员人工监控并一一进行运维处理,极大的提高了运维的效率。The operation and maintenance device of the BI tool provided by the present application monitors the running state of the BI tool through the monitoring module. When the running state of the BI tool meets the operation and maintenance conditions, the operation and maintenance operation instruction is triggered; and the obtaining module acquires the operation and operation operation instruction instruction. The operation and maintenance object and the hierarchy of the operation and maintenance object; the determination module determines an operable object at the same level as the operation and maintenance object, and/or the operable object whose hierarchy is lower than the hierarchy of the operation and maintenance object is to be operated An operation and maintenance object; the processing module performs operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction. When the running state of the BI tool meets the operation and maintenance conditions, the operation and maintenance operation instruction is automatically triggered, and when the operation and maintenance object is determined, according to the hierarchy of the operation and maintenance object, the operable object of the operation and maintenance object at the same level is determined, and The operation object that is lower than the hierarchy of the operation and maintenance object is the operation and maintenance object to be operated. Therefore, the operation and maintenance object indicated by the operation and maintenance operation instruction can determine that multiple objects are to be operated and operated, and then The operation object is operated and maintained. No maintenance personnel are required to manually monitor and perform operation and maintenance processing one by one, which greatly improves the efficiency of operation and maintenance.
上述以软件功能模块的形式实现的集成的模块和单元,可以存储在一个非易失性可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的部分步骤。The above-described integrated modules and units implemented in the form of software function modules can be stored in a non-volatile readable storage medium. The software function module described above is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods described in various embodiments of the present application. Part of the steps.
如图4所示,图4是本申请实现BI工具的运维方法的较佳实施例的计算机装置的结构示意图。所述计算机装置包括至少一个发送装置31、至少一个存储器32、至少一个处理器33、至少一个接收装置34以及至少一个通信总线。其中,所述通信总线用于实现这些组件之间的连接通信。As shown in FIG. 4, FIG. 4 is a schematic structural diagram of a computer apparatus according to a preferred embodiment of the present invention for implementing an operation and maintenance method of a BI tool. The computer device comprises at least one transmitting device 31, at least one memory 32, at least one processor 33, at least one receiving device 34 and at least one communication bus. Wherein, the communication bus is used to implement connection communication between these components.
所述计算机装置是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field- Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。所述计算机装置还可包括网络设备和/或用户设备。其中,所述网络设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量主机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。The computer device is a device capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance, and the hardware thereof includes but is not limited to a microprocessor and an application specific integrated circuit (ASIC). , Field-Programmable Gate Array (FPGA), Digital Signal Processor (DSP), embedded devices, etc. The computer device may also include a network device and/or a user device. The network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud computing-based cloud composed of a large number of hosts or network servers, where the cloud computing is distributed computing. A super virtual computer consisting of a group of loosely coupled computers.
所述计算机装置可以是,但不限于任何一种可与用户通过键盘、触摸板或声控设备等方式进行人机交互的电子产品。The computer device may be, but is not limited to, any electronic product that can interact with a user through a keyboard, a touch pad, or a voice control device.
所述计算机装置所处的网络包括,但不限于互联网、广域网、城域网、局域网、虚拟专用网络(Virtual Private Network,VPN)等。The network in which the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
其中,所述接收装置34和所述发送装置31可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他设备进行数据通信。The receiving device 34 and the transmitting device 31 may be wired transmission ports, or may be wireless devices, for example, including antenna devices, for performing data communication with other devices.
所述存储器32用于存储程序代码。所述存储器32可以是集成电路中没有实物形式的具有存储功能的电路,如RAM(Random-Access Memory,随机存取存储器)、FIFO(First In First Out,先进先出存储器)等。或者,所述存储器32也可以是具有实物形式的存储器,如内存条、TF卡(Trans-flash Card)、智能媒体卡(smart media card)、安全数字卡(secure digital card)、快闪存储器卡(flash card)等储存设备等等。The memory 32 is used to store program code. The memory 32 may be a circuit having a memory function in a physical form, such as a RAM (Random-Access Memory), a FIFO (First In First Out), or the like. Alternatively, the memory 32 may also be a memory having a physical form, such as a memory stick, a TF card (Trans-flash Card), a smart media card, a secure digital card, a flash memory card. Storage devices such as (flash card) and the like.
所述处理器33可以包括一个或者多个微处理器、数字处理器。所述处理器33可调用存储器32中存储的程序代码以执行相关的功能。例如,图4中所述的各个单元是存储在所述存储器32中的程序代码,并由所述处理器33所执行,以实现一种BI工具的运维方法。所述处理器33又称中央处理器(CPU,Central Processing Unit),是一块超大规模的集成电路,是运算核心(Core)和控制核心(Control Unit)。The processor 33 can include one or more microprocessors, digital processors. The processor 33 can call program code stored in the memory 32 to perform related functions. For example, the various units described in FIG. 4 are program code stored in the memory 32 and executed by the processor 33 to implement an operation and maintenance method of the BI tool. The processor 33, also known as a central processing unit (CPU), is a very large-scale integrated circuit, which is a computing core (Core) and a control unit (Control Unit).
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and the actual implementation may have another division manner.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software function modules.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨 在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。It is obvious to those skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the appended claims instead All changes in the meaning and scope of equivalent elements are included in this application. Any accompanying drawings in the claims should not be construed as limiting the claim. In addition, it is to be understood that the word "comprising" does not exclude other elements or steps. A plurality of units or devices recited in the system claims can also be implemented by a unit or device by software or hardware. The second word is used to denote the name and does not denote any particular order.
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。It should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto. Although the present application is described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be applied. Modifications or equivalents are made without departing from the spirit and scope of the technical solutions of the present application.

Claims (20)

  1. 一种BI工具的运维方法,其特征在于,所述方法包括:An operation and maintenance method of a BI tool, characterized in that the method comprises:
    监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令;Monitoring the running state of the BI tool, and triggering the operation and maintenance operation instruction when the running state of the BI tool meets the operation and maintenance condition;
    获取所述运维操作指令指示的运维对象以及所述运维对象的层级;Obtaining an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object;
    确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象;Determining an operable object at the same level as the operation and maintenance object, and/or an operable object having a hierarchy lower than the hierarchy of the operation and maintenance object is an operation and maintenance object to be operated;
    根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。Performing operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
  2. 如权利要求1所述的方法,其特征在于,所述运维对象的层级包括子系统层级、逻辑单元层级以及应用节点层级。The method of claim 1 wherein the hierarchy of operation and maintenance objects comprises a subsystem hierarchy, a logical unit hierarchy, and an application node hierarchy.
  3. 如权利要求1或2所述的方法,其特征在于,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:The method according to claim 1 or 2, wherein the monitoring of the operating state of the BI tool, when the operating state of the BI tool meets the operation and maintenance conditions, triggers an operation and maintenance operation instruction, including:
    获取所述BI工具运行时消耗的系统资源;Obtaining system resources consumed by the BI tool when it runs;
    当所述BI工具运行时消耗的系统资源超过预设阈值时,触发运维操作指令,所述运维操作指令用于对运行中的进程进行调度;And when the system resource consumed by the BI tool exceeds a preset threshold, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to schedule a running process;
    则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
    控制所述待操作对象之中满足暂停条件的待服务器暂停运行。Controlling the pending server to suspend operation among the objects to be operated.
  4. 如权利要求1或2所述的方法,其特征在于,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:The method according to claim 1 or 2, wherein the monitoring of the operating state of the BI tool, when the operating state of the BI tool meets the operation and maintenance conditions, triggers an operation and maintenance operation instruction, including:
    获取所述BI工具的服务器的缓存信息;Obtaining cache information of a server of the BI tool;
    当所述服务器的缓存大小达到预设缓存值时,触发运维操作指令,所述运行操作指令用于对所述服务器的缓存进行清理;And when the cache size of the server reaches a preset cache value, triggering an operation and maintenance operation instruction, where the operation operation instruction is used to clean the cache of the server;
    则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
    获取所述待操作对象之中未处于刷新状态的服务器;Obtaining a server that is not in a refresh state among the objects to be operated;
    对所述待操作对象之中未处于刷新状态的服务器的缓存进行清理。Clearing the cache of the server that is not in the refresh state among the objects to be operated.
  5. 如权利要求1或2所述的方法,其特征在于,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:The method according to claim 1 or 2, wherein the monitoring of the operating state of the BI tool, when the operating state of the BI tool meets the operation and maintenance conditions, triggers an operation and maintenance operation instruction, including:
    获取所述BI工具的服务器的系统时间;Obtaining the system time of the server of the BI tool;
    若所述系统时间为预设时间,触发运维操作指令,所述运维操作指令用于对所述BI工具进行数据同步;If the system time is a preset time, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to perform data synchronization on the BI tool;
    则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进 行运维,包括:And performing operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction, including:
    确定所述待操作对象之中的预设服务器为待同步服务器;Determining that the preset server among the objects to be operated is a server to be synchronized;
    对所述待同步服务器进行数据同步。Data synchronization is performed on the server to be synchronized.
  6. 如权利要求1或2所述的方法,其特征在于,所述方法还包括:The method of claim 1 or 2, wherein the method further comprises:
    显示运维操作的选取页面,所述选取页面包括运维操作和运维对象;Displaying a selection page of the operation and maintenance operation, where the selection page includes an operation and maintenance operation and an operation and maintenance object;
    根据从所述选取页面选取的运维操作和运维对象触发运维操作指令。The operation and maintenance operation instruction is triggered according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
  7. 如权利要求1或2所述的方法,其特征在于,所述方法还包括:The method of claim 1 or 2, wherein the method further comprises:
    对所述待操作运维对象进行运维之后,若获取到所述BI工具运行异常的信息,发送报警信息。After the operation and maintenance of the operation and maintenance object to be operated, if the information about the abnormal operation of the BI tool is acquired, the alarm information is sent.
  8. 一种BI工具的运维装置,其特征在于,所述装置包括:An operation and maintenance device for a BI tool, characterized in that the device comprises:
    监控模块,用于监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令;a monitoring module, configured to monitor an operating state of the BI tool, and trigger an operation and maintenance operation instruction when the running state of the BI tool meets an operation and maintenance condition;
    获取模块,用于获取所述运维操作指令指示的运维对象以及所述运维对象的层级;An acquiring module, configured to acquire an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object;
    确定模块,用于确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象;a determining module, configured to determine an operable object at the same level as the operation and maintenance object, and/or an operable object whose level is lower than the level of the operation and maintenance object is an operation and maintenance object to be operated;
    处理模块,用于根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。The processing module is configured to perform operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
  9. 一种计算机装置,其特征在于,所述计算机装置包括存储器及处理器,所述存储器用于存储至少一个指令,所述处理器用于执行所述至少一个指令以实现以下步骤:A computer apparatus, comprising: a memory for storing at least one instruction, and a processor for executing the at least one instruction to implement the following steps:
    监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令;Monitoring the running state of the BI tool, and triggering the operation and maintenance operation instruction when the running state of the BI tool meets the operation and maintenance condition;
    获取所述运维操作指令指示的运维对象以及所述运维对象的层级;Obtaining an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object;
    确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象;Determining an operable object at the same level as the operation and maintenance object, and/or an operable object having a hierarchy lower than the hierarchy of the operation and maintenance object is an operation and maintenance object to be operated;
    根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。Performing operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
  10. 如权利要求9所述的计算机装置,其特征在于,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:The computer apparatus according to claim 9, wherein the monitoring the running state of the BI tool, when the operating state of the BI tool meets the operation and maintenance condition, triggering the operation and maintenance operation instruction, including:
    获取所述BI工具运行时消耗的系统资源;Obtaining system resources consumed by the BI tool when it runs;
    当所述BI工具运行时消耗的系统资源超过预设阈值时,触发运维操作指令,所述运维操作指令用于对运行中的进程进行调度;And when the system resource consumed by the BI tool exceeds a preset threshold, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to schedule a running process;
    则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
    控制所述待操作对象之中满足暂停条件的待服务器暂停运行。Controlling the pending server to suspend operation among the objects to be operated.
  11. 如权利要求9所述的计算机装置,其特征在于,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令, 包括:The computer apparatus according to claim 9, wherein the monitoring the running state of the BI tool, when the operating state of the BI tool meets the operation and maintenance condition, triggering the operation and maintenance operation instruction, including:
    获取所述BI工具的服务器的缓存信息;Obtaining cache information of a server of the BI tool;
    当所述服务器的缓存大小达到预设缓存值时,触发运维操作指令,所述运行操作指令用于对所述服务器的缓存进行清理;And when the cache size of the server reaches a preset cache value, triggering an operation and maintenance operation instruction, where the operation operation instruction is used to clean the cache of the server;
    则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
    获取所述待操作对象之中未处于刷新状态的服务器;Obtaining a server that is not in a refresh state among the objects to be operated;
    对所述待操作对象之中未处于刷新状态的服务器的缓存进行清理。Clearing the cache of the server that is not in the refresh state among the objects to be operated.
  12. 如权利要求9所述的计算机装置,其特征在于,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:The computer apparatus according to claim 9, wherein the monitoring the running state of the BI tool, when the operating state of the BI tool meets the operation and maintenance condition, triggering the operation and maintenance operation instruction, including:
    获取所述BI工具的服务器的系统时间;Obtaining the system time of the server of the BI tool;
    若所述系统时间为预设时间,触发运维操作指令,所述运维操作指令用于对所述BI工具进行数据同步;If the system time is a preset time, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to perform data synchronization on the BI tool;
    则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
    确定所述待操作对象之中的预设服务器为待同步服务器;Determining that the preset server among the objects to be operated is a server to be synchronized;
    对所述待同步服务器进行数据同步。Data synchronization is performed on the server to be synchronized.
  13. 如权利要求9所述的计算机装置,其特征在于,所述处理器还用于执行所述至少一个指令以实现以下步骤:The computer apparatus of claim 9, wherein the processor is further configured to execute the at least one instruction to implement the following steps:
    显示运维操作的选取页面,所述选取页面包括运维操作和运维对象;Displaying a selection page of the operation and maintenance operation, where the selection page includes an operation and maintenance operation and an operation and maintenance object;
    根据从所述选取页面选取的运维操作和运维对象触发运维操作指令。The operation and maintenance operation instruction is triggered according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
  14. 如权利要求9所述的计算机装置,其特征在于,所述处理器用于执行所述至少一个指令以实现以下步骤:The computer apparatus according to claim 9, wherein said processor is operative to execute said at least one instruction to implement the following steps:
    对所述待操作运维对象进行运维之后,若获取到所述BI工具运行异常的信息,发送报警信息。After the operation and maintenance of the operation and maintenance object to be operated, if the information about the abnormal operation of the BI tool is acquired, the alarm information is sent.
  15. 一种非易失性可读存储介质,其上存储有计算机指令,其特征在于,所述计算机指令被处理器执行时实现以下步骤:A non-volatile readable storage medium having stored thereon computer instructions, wherein the computer instructions are executed by a processor to implement the following steps:
    监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令;Monitoring the running state of the BI tool, and triggering the operation and maintenance operation instruction when the running state of the BI tool meets the operation and maintenance condition;
    获取所述运维操作指令指示的运维对象以及所述运维对象的层级;Obtaining an operation and maintenance object indicated by the operation and maintenance operation instruction and a hierarchy of the operation and maintenance object;
    确定与所述运维对象在同一层级的可操作对象,和/或层级低于所述运维对象的层级的可操作对象为待操作运维对象;Determining an operable object at the same level as the operation and maintenance object, and/or an operable object having a hierarchy lower than the hierarchy of the operation and maintenance object is an operation and maintenance object to be operated;
    根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维。Performing operation and maintenance on the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction.
  16. 如权利要求15所述的存储介质,其特征在于,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:The storage medium of claim 15, wherein the operating state of the BI tool is monitored, and when the operating state of the BI tool meets the operation and maintenance condition, the operation and maintenance operation instruction is triggered, including:
    获取所述BI工具运行时消耗的系统资源;Obtaining system resources consumed by the BI tool when it runs;
    当所述BI工具运行时消耗的系统资源超过预设阈值时,触发运维操作指令,所述运维操作指令用于对运行中的进程进行调度;And when the system resource consumed by the BI tool exceeds a preset threshold, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to schedule a running process;
    则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
    控制所述待操作对象之中满足暂停条件的待服务器暂停运行。Controlling the pending server to suspend operation among the objects to be operated.
  17. 如权利要求15所述的存储介质,其特征在于,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:The storage medium of claim 15, wherein the operating state of the BI tool is monitored, and when the operating state of the BI tool meets the operation and maintenance condition, the operation and maintenance operation instruction is triggered, including:
    获取所述BI工具的服务器的缓存信息;Obtaining cache information of a server of the BI tool;
    当所述服务器的缓存大小达到预设缓存值时,触发运维操作指令,所述运行操作指令用于对所述服务器的缓存进行清理;And when the cache size of the server reaches a preset cache value, triggering an operation and maintenance operation instruction, where the operation operation instruction is used to clean the cache of the server;
    则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
    获取所述待操作对象之中未处于刷新状态的服务器;Obtaining a server that is not in a refresh state among the objects to be operated;
    对所述待操作对象之中未处于刷新状态的服务器的缓存进行清理。Clearing the cache of the server that is not in the refresh state among the objects to be operated.
  18. 如权利要求15所述的存储介质,其特征在于,所述监控BI工具的运行状态,当所述BI工具的运行状态满足运维条件时,触发运维操作指令,包括:The storage medium of claim 15, wherein the operating state of the BI tool is monitored, and when the operating state of the BI tool meets the operation and maintenance condition, the operation and maintenance operation instruction is triggered, including:
    获取所述BI工具的服务器的系统时间;Obtaining the system time of the server of the BI tool;
    若所述系统时间为预设时间,触发运维操作指令,所述运维操作指令用于对所述BI工具进行数据同步;If the system time is a preset time, triggering an operation and maintenance operation instruction, where the operation and maintenance operation instruction is used to perform data synchronization on the BI tool;
    则所述根据所述运维操作指令指示的运维操作对所述待操作运维对象进行运维,包括:The operation and maintenance operation of the operation and maintenance object to be operated according to the operation and maintenance operation indicated by the operation and maintenance operation instruction includes:
    确定所述待操作对象之中的预设服务器为待同步服务器;Determining that the preset server among the objects to be operated is a server to be synchronized;
    对所述待同步服务器进行数据同步。Data synchronization is performed on the server to be synchronized.
  19. 如权利要求15所述的存储介质,其特征在于,所述计算机指令被处理器执行时还实现以下步骤:The storage medium of claim 15 wherein said computer instructions are further executed by said processor to:
    显示运维操作的选取页面,所述选取页面包括运维操作和运维对象;Displaying a selection page of the operation and maintenance operation, where the selection page includes an operation and maintenance operation and an operation and maintenance object;
    根据从所述选取页面选取的运维操作和运维对象触发运维操作指令。The operation and maintenance operation instruction is triggered according to the operation and maintenance operation and the operation and maintenance object selected from the selection page.
  20. 如权利要求15所述的存储介质,其特征在于,所述计算机指令被处理器执行时实现以下步骤:The storage medium of claim 15 wherein said computer instructions are executed by a processor to implement the following steps:
    对所述待操作运维对象进行运维之后,若获取到所述BI工具运行异常的信息,发送报警信息。After the operation and maintenance of the operation and maintenance object to be operated, if the information about the abnormal operation of the BI tool is acquired, the alarm information is sent.
PCT/CN2018/099777 2018-04-23 2018-08-10 Operation and maintenance method and device for bi tool, computer device, and storage medium WO2019205346A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810368097.X 2018-04-23
CN201810368097.XA CN108595625B (en) 2018-04-23 2018-04-23 Operation and maintenance method and device of BI tool, computer device and storage medium

Publications (1)

Publication Number Publication Date
WO2019205346A1 true WO2019205346A1 (en) 2019-10-31

Family

ID=63614036

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/099777 WO2019205346A1 (en) 2018-04-23 2018-08-10 Operation and maintenance method and device for bi tool, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN108595625B (en)
WO (1) WO2019205346A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262678A (en) * 2011-08-16 2011-11-30 郑毅 System for sampling mass data and managing sampled data
CN102576363A (en) * 2009-09-29 2012-07-11 渣普控股有限公司 A content based approach to extending the form and function of a business intelligence system
CN103164476A (en) * 2011-12-16 2013-06-19 中国移动通信集团公司 Execution method and execution device of applying metadata to describe files in business intelligence (BI)
CN107657046A (en) * 2017-09-30 2018-02-02 广东美的制冷设备有限公司 The generation method and storage medium of air conditioner BI reporting systems, air conditioner BI forms

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1794605B1 (en) * 2004-09-14 2015-04-29 Genband US LLC Object-based operation and maintenance (OAM) systems and related methods and computer program products
CN103840955B (en) * 2012-11-22 2017-10-03 中国银联股份有限公司 The operation maintenance system and operation maintenance management method of distributed IT system
CN103532780B (en) * 2013-10-11 2017-09-22 北京有度致远信息科技股份有限公司 O&M for IT field monitors integral system and integrated monitoring method
CN105515817A (en) * 2015-01-21 2016-04-20 上海北塔软件股份有限公司 Method and system for hierarchical operation and maintenance of management objects
CN105512788A (en) * 2015-05-04 2016-04-20 上海北塔软件股份有限公司 Intelligent operation and maintenance management method and system
CN105224435B (en) * 2015-10-16 2018-02-23 北京锐安科技有限公司 Data O&M monitoring method and device
CN106341444B (en) * 2016-03-16 2018-02-13 百度在线网络技术(北京)有限公司 Data access method and device
CN106201513B (en) * 2016-07-08 2019-05-03 深圳前海微众银行股份有限公司 Method and device for creating service number in operation and maintenance platform
CN106295698B (en) * 2016-08-11 2019-04-16 南京国电南自电网自动化有限公司 A kind of intelligent photovoltaic Accident Diagnosis of Power Plant method based on layering KPI similarity
CN106292499B (en) * 2016-09-27 2020-01-17 许继电气股份有限公司 Safety error prevention method and device for operation and maintenance operation object of secondary equipment of intelligent substation
CN106547538A (en) * 2016-10-09 2017-03-29 广州市佳众联科技有限公司 A kind of intelligent operation management system based on Django
CN106506215A (en) * 2016-11-11 2017-03-15 郑州云海信息技术有限公司 A kind of automation operational system based on CMDB
CN107291601B (en) * 2017-06-12 2021-01-22 北京奇艺世纪科技有限公司 Safe operation and maintenance method and system
CN107885641A (en) * 2017-11-25 2018-04-06 山东浪潮云服务信息科技有限公司 A kind of operation management method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102576363A (en) * 2009-09-29 2012-07-11 渣普控股有限公司 A content based approach to extending the form and function of a business intelligence system
CN102262678A (en) * 2011-08-16 2011-11-30 郑毅 System for sampling mass data and managing sampled data
CN103164476A (en) * 2011-12-16 2013-06-19 中国移动通信集团公司 Execution method and execution device of applying metadata to describe files in business intelligence (BI)
CN107657046A (en) * 2017-09-30 2018-02-02 广东美的制冷设备有限公司 The generation method and storage medium of air conditioner BI reporting systems, air conditioner BI forms

Also Published As

Publication number Publication date
CN108595625A (en) 2018-09-28
CN108595625B (en) 2022-09-09

Similar Documents

Publication Publication Date Title
US9652281B2 (en) System and method for virtualization aware server maintenance mode
CN107734035B (en) Virtual cluster automatic scaling method in cloud computing environment
US11321197B2 (en) File service auto-remediation in storage systems
US9841986B2 (en) Policy based application monitoring in virtualized environment
JP4920391B2 (en) Computer system management method, management server, computer system and program
JP5140633B2 (en) Method for analyzing failure occurring in virtual environment, management server, and program
US9335998B2 (en) Multi-core processor system, monitoring control method, and computer product
US9483314B2 (en) Systems and methods for fault tolerant batch processing in a virtual environment
JP2004030363A (en) Logical computer system, and method and program for controlling configuration of logical computer system
EP3330855A1 (en) Managing hardware resources
JP2014186652A (en) Data transfer device, data transfer system, data transfer method and program
US9690576B2 (en) Selective data collection using a management system
US10075326B2 (en) Monitoring file system operations between a client computer and a file server
CN111343219B (en) Computing service cloud platform
US20190235902A1 (en) Bully vm detection in a hyperconverged system
CN110727508A (en) Task scheduling system and scheduling method
US10122602B1 (en) Distributed system infrastructure testing
CN106775920B (en) Identification and removal of zombie virtual machines
KR20190061247A (en) Real time resource usage ratio monitoring system of big data processing platform
US8977752B2 (en) Event-based dynamic resource provisioning
CN109586989A (en) A kind of state detection method, device and group system
CN113157426B (en) Task scheduling method, system, equipment and storage medium
CN103902401A (en) Virtual machine fault tolerance method and device based on monitoring
CN111897626A (en) Cloud computing scene-oriented virtual machine high-reliability system and implementation method
WO2019205346A1 (en) Operation and maintenance method and device for bi tool, computer device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18916285

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18916285

Country of ref document: EP

Kind code of ref document: A1