CN111045616A - Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium - Google Patents

Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium Download PDF

Info

Publication number
CN111045616A
CN111045616A CN201911345008.0A CN201911345008A CN111045616A CN 111045616 A CN111045616 A CN 111045616A CN 201911345008 A CN201911345008 A CN 201911345008A CN 111045616 A CN111045616 A CN 111045616A
Authority
CN
China
Prior art keywords
time
consuming
printing
consuming printing
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911345008.0A
Other languages
Chinese (zh)
Inventor
吴伟兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN201911345008.0A priority Critical patent/CN111045616A/en
Publication of CN111045616A publication Critical patent/CN111045616A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1218Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
    • G06F3/1221Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources with regard to power consumption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1254Automatic configuration, e.g. by driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The embodiment of the invention discloses a time-consuming printing method, a time-consuming printing device, time-consuming printing equipment and a storage medium. The method is applied to a server and specifically comprises the following steps: monitoring a time-consuming printing switch signal sent by a server unified configuration center through a time-consuming control component; and executing time-consuming printing starting operation or time-consuming printing closing operation according to the time-consuming printing switching signal through the time-consuming control assembly. According to the technical scheme, automatic unified control over time-consuming printing of the servers is achieved, labor cost can be greatly saved under the condition that the application service needing time-consuming analysis is deployed in a plurality of servers, modification permission of each server does not need to be independently applied, the application service needing time-consuming analysis in the process does not need to be restarted, and normal business functions of the application service cannot be influenced.

Description

Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a time-consuming printing method, a time-consuming printing device, time-consuming printing equipment and a storage medium.
Background
Under the conditions of more and more application services, finer and finer division dimensions and larger user quantity, in order to improve the load capacity of the application, a cluster deployment mode is adopted for more services, and the number of machines to be deployed for each application service is increased.
When the time consumption of an application service or method needs to be analyzed, the existing method is to modify the log configuration file of each machine deploying the application service or method. Specifically, when the log configuration file of one of the machines is modified, the modification authority of the machine needs to be applied first, usually, a developer does not have the modification authority, and a special operation and maintenance person is needed to operate the machine, and then the corresponding application service is restarted, and the application service is interrupted in the restarting process. When the number of the application service or method deployment machines is large, manual modification is time-consuming and labor-consuming, and modification does not support hot updating, which is very inconvenient.
Disclosure of Invention
The embodiment of the invention provides a time-consuming printing method, a time-consuming printing device, time-consuming printing equipment and a storage medium, so that automation of time-consuming printing of application services is realized, labor cost is saved, and normal business functions of the application services are prevented from being influenced.
In a first aspect, an embodiment of the present invention provides a time-consuming printing method, applied to a server, including:
monitoring a time-consuming printing switch signal sent by a server unified configuration center through a time-consuming control component;
and executing time-consuming printing starting operation or time-consuming printing closing operation according to the time-consuming printing switching signal through the time-consuming control assembly.
In a second aspect, an embodiment of the present invention further provides a time-consuming printing method, applied to a server unified configuration center, including:
and sending a time-consuming printing switch signal to a target server so that the target server executes time-consuming printing opening operation or time-consuming printing closing operation according to the time-consuming printing switch signal through a time-consuming control component.
In a third aspect, an embodiment of the present invention further provides a time-consuming printing apparatus, applied to a server, including:
the time-consuming printing switch signal monitoring module is used for monitoring time-consuming printing switch signals sent by the server unified configuration center through the time-consuming control component;
and the time-consuming printing module is used for executing time-consuming printing starting operation or time-consuming printing closing operation according to the time-consuming printing switching signal through the time-consuming control component.
In a fourth aspect, an embodiment of the present invention further provides a time-consuming printing apparatus, which is applied to a server unified configuration center, and includes:
and the time-consuming printing switch signal sending module is used for sending a time-consuming printing switch signal to the target server so that the target server executes time-consuming printing starting operation or time-consuming printing closing operation according to the time-consuming printing switch signal through the time-consuming control component.
In a fifth aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the time-consuming printing method applied to a server as provided in any embodiment of the present invention.
In a sixth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the time-consuming printing method applied to a server as provided in any embodiment of the present invention.
In a seventh aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the time-consuming printing method applied to the server unified configuration center as provided in any embodiment of the present invention.
In an eighth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the time-consuming printing method applied to a server unified configuration center as provided in any embodiment of the present invention.
In the technical scheme provided by the embodiment of the invention, the server unified configuration center sends the time-consuming printing switch signal to the server, and the time-consuming control component pre-embedded in the server correspondingly executes the time-consuming printing starting operation or the time-consuming printing closing operation according to the time-consuming printing switch signal after monitoring the time-consuming printing switch signal, so that the automatic unified control of the time-consuming printing of the server is realized.
Drawings
FIG. 1 is a flow chart of a time-consuming printing method according to one embodiment of the present invention;
FIG. 2 is a schematic diagram of a system architecture for a time-consuming printing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a time-consuming printing method according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of a time-consuming printing apparatus according to a third embodiment of the present invention;
FIG. 5 is a schematic diagram of a time-consuming printing apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic hardware structure diagram of a computer device in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a time-consuming printing method according to an embodiment of the present invention, which is applicable to time-consuming printing of application services deployed on multiple servers, and the method may be performed by a time-consuming printing apparatus applied to a server according to an embodiment of the present invention, where the apparatus may be implemented in software and/or hardware, and may be generally integrated in a computer device, for example, a server.
As shown in fig. 1, the method of this embodiment, applied to a server, specifically includes:
and S110, monitoring a time-consuming printing switch signal sent by the server unified configuration center through the time-consuming control component.
The types of the system application services are different due to different ranges of hunting of company businesses, and can be order services, bill services, recommendation services and the like. As the number of users facing services increases, more machines (i.e. servers) are deployed for each system application service, for example, order services are deployed on 100 different machines respectively. Different types of services may be deployed on the same machine or on different machines, such as billing services and recommendation services, respectively.
The server uniform configuration center is computer equipment which is newly added on the basis of the existing server cluster, is connected with the servers through a computer network, is used for realizing uniform switch configuration on time-consuming analysis of application services deployed on different servers, and has the authority of configuring each server in the server cluster.
Fig. 2 shows a schematic diagram of a system architecture to which the technical solution of the present embodiment is applied, and fig. 2 illustrates 3 servers as an example. As shown in fig. 2, when a developer needs to perform time-consuming analysis on an application service deployed on at least one server, a log configuration file is modified on a server unified configuration center, and after receiving log configuration file modification configuration information, the server unified configuration center sends a time-consuming print switching signal to the server according to the log configuration file modification configuration information.
And the time-consuming control component is a component pre-embedded in the server and is used for monitoring a time-consuming printing switching signal sent by the server unified configuration center in real time and realizing the time-consuming printing starting operation and the time-consuming printing closing operation of the target application service after being triggered by the time-consuming printing switching signal.
And after the server unified configuration center receives the log configuration file modification configuration information, generating a time-consuming printing switch signal according to the log configuration file modification configuration information, and automatically triggering a time-consuming control component in the server. The time-consuming printing switch signal may be a time-consuming printing on signal or a time-consuming printing off signal. Further, the time-consuming print switch signal may also carry an identifier of an application service that needs time-consuming analysis, or the time-consuming print switch signal may also carry a physical address or an IP address of a server where the application service that needs time-consuming analysis is located.
And S120, executing time-consuming printing starting operation or time-consuming printing closing operation according to the time-consuming printing switching signal through the time-consuming control assembly.
And if the time-consuming control component in the server monitors the time-consuming printing switching signal, analyzing whether the time-consuming printing switching signal is a time-consuming printing opening signal or a time-consuming printing closing signal, and executing time-consuming printing opening operation or time-consuming printing closing operation on the application service according to an analysis result.
In an example, when at least two different application services are deployed in a server, if it is determined that a monitored time-consuming printing switch signal is a time-consuming printing start signal, a time-consuming printing start operation is performed on a matched application service according to an identifier of the application service carried in the time-consuming printing switch signal by a time-consuming control component; and if the monitored time-consuming printing switch signal is determined to be a time-consuming printing closing signal, executing time-consuming printing closing operation on the matched application service according to the identifier of the application service carried in the time-consuming printing switch signal.
In a specific embodiment, the time-consuming printing on or off operation may be executed by the time-consuming control component according to the time-consuming printing switching signal, specifically:
matching the IP address carried by the time-consuming printing switch signal with the IP address of the local machine through the time-consuming control component; and if the matching is confirmed to be successful through the time-consuming control component, executing time-consuming printing starting or closing operation according to the time-consuming printing switching signal.
Under the condition that different application services are deployed in different servers, a server unified configuration center sends time-consuming printing switch signals to all the servers, wherein the time-consuming printing switch signals carry IP addresses, and the carried IP addresses are the IP addresses of the servers needing time-consuming printing. And after monitoring a time-consuming printing switch signal sent by the server unified configuration center, the time-consuming control component of each server matches the IP address carried by the time-consuming printing switch signal with the IP address of the local machine, and if the matching is successful, the local machine is determined to be the server matched with the time-consuming printing switch signal. If the monitored time-consuming printing switch signal is determined to be a time-consuming printing starting signal, executing time-consuming printing starting operation on the matched application service; and if the monitored time-consuming printing switch signal is determined to be a time-consuming printing closing signal, executing time-consuming printing closing operation on the matched application service.
Specifically, the time-consuming printing starting operation is executed by the time-consuming control component, and the time-consuming printing starting operation comprises the following steps:
starting a time-consuming printing switch through the time-consuming control assembly, modifying the log level from an initial level to a target level, and starting to execute time-consuming printing operation;
correspondingly, the time-consuming printing closing operation is executed through the time-consuming control component, and the time-consuming printing closing operation comprises the following steps:
and closing a switch of time-consuming printing through the time-consuming control component, modifying the log level from the target level to the initial level, and stopping executing the time-consuming printing operation.
The target level is a new log level added on the basis of the existing log level and is used for indicating that only log information related to time-consuming analysis is printed, specifically, the target level may be named as a COST level, and the priority may be set to be highest. And after the journal level is modified to be the COST level, starting time-consuming printing, and only printing the journal information related to time-consuming analysis at the moment, so that other invalid journal information can be prevented from being printed.
The initial level is one of the existing log levels, and may be an ERROR level, a WARN level, an INFO level, a DEBUG level, and the like, which is not specifically limited in this embodiment.
Taking the initial level as the WARN level as an example, executing the time-consuming printing start operation by the time-consuming control component may specifically be: starting a time-consuming printing switch through the time-consuming control component, changing the journal level from the WARN level to the COST level, and starting to execute time-consuming printing operation; executing the time-consuming printing closing operation through the time-consuming control component may specifically be: and closing a switch for time-consuming printing through the time-consuming control component, modifying the journal level from the COST level to the WARN level, and stopping executing the time-consuming printing operation.
In the technical scheme provided by the embodiment of the invention, the server unified configuration center sends the time-consuming printing switch signal to the server, and the time-consuming control component pre-embedded in the server correspondingly executes the time-consuming printing starting operation or the time-consuming printing closing operation according to the time-consuming printing switch signal after monitoring the time-consuming printing switch signal, so that the automatic unified control of the time-consuming printing of the server is realized.
Example two
Fig. 3 is a flowchart of a time-consuming printing method according to a second embodiment of the present invention, which is applicable to time-consuming printing of application services deployed on multiple servers, and the method can be executed by the time-consuming printing apparatus applied to a server unified configuration center according to the second embodiment of the present invention, where the apparatus can be implemented in software and/or hardware, and can be generally integrated in a computer device, for example, the server unified configuration center.
As shown in fig. 3, the method of this embodiment is applied to a server unified configuration center, and specifically includes:
s310, sending a time-consuming printing switch signal to a target server, so that the target server executes time-consuming printing starting operation or time-consuming printing closing operation according to the time-consuming printing switch signal through a time-consuming control component.
Specifically, sending a time-consuming print switch signal to the target server includes: and receiving log configuration file modification configuration information, and sending a time-consuming printing switch signal to a target server according to the log configuration file modification configuration information.
When time consumption analysis needs to be carried out on application services deployed on at least one server by a developer, a log configuration file is modified on a server unified configuration center, after the server unified configuration center receives log configuration file modification configuration information, a time-consuming printing switching signal is sent to the server according to the log configuration file modification configuration information, and the time-consuming printing switching signal can automatically trigger a time-consuming control component in the server.
And if the time-consuming control component in the server monitors the time-consuming printing switching signal, analyzing whether the time-consuming printing switching signal is a time-consuming printing opening signal or a time-consuming printing closing signal, and executing time-consuming printing opening operation or time-consuming printing closing operation on the application service according to an analysis result.
In an example, the sending of the time-consuming print switch signal to the target server may specifically be:
and sending a time-consuming printing switch signal carrying the IP address of the target server to each server, so that the target server executes time-consuming printing opening or closing operation according to the time-consuming printing switch signal after confirming that the IP address carried by the time-consuming printing switch signal is matched with the IP address of the local server through the time-consuming control component.
Under the condition that different application services are deployed in different servers, a server unified configuration center sends time-consuming printing switch signals to all the servers, wherein the time-consuming printing switch signals carry IP addresses, and the carried IP addresses are the IP addresses of the servers needing time-consuming printing. And after monitoring a time-consuming printing switch signal sent by the server unified configuration center, the time-consuming control component of each server matches the IP address carried by the time-consuming printing switch signal with the IP address of the local machine, and if the matching is successful, the local machine is determined to be the server matched with the time-consuming printing switch signal. If the monitored time-consuming printing switch signal is determined to be a time-consuming printing starting signal, executing time-consuming printing starting operation on the matched application service; and if the monitored time-consuming printing switch signal is determined to be a time-consuming printing closing signal, executing time-consuming printing closing operation on the matched application service.
Specifically, when the time-consuming control component in the server executes time-consuming printing starting operation on the matched application service, a time-consuming printing switch is started, the log level is modified from the initial level to the target level, and the time-consuming printing operation is started to be executed; and when the time-consuming control component in the server executes time-consuming printing closing operation on the matched application service, closing a time-consuming printing switch through the time-consuming control component, modifying the log level from the target level to the initial level, and stopping executing the time-consuming printing operation.
The target level is a new log level added on the basis of the existing log level and is used for indicating that only log information related to time-consuming analysis is printed, specifically, the target level may be named as a COST level, and the priority may be set to be highest. And after the journal level is modified to be the COST level, starting time-consuming printing, and only printing the journal information related to time-consuming analysis to avoid printing other invalid journal information. The initial level is one of the existing log levels, and may be an ERROR level, a WARN level, an INFO level, a DEBUG level, and the like, which is not specifically limited in this embodiment.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
In the technical scheme provided by the embodiment of the invention, the server unified configuration center sends the time-consuming printing switch signal to the server, and the time-consuming control component pre-embedded in the server correspondingly executes the time-consuming printing starting operation or the time-consuming printing closing operation according to the time-consuming printing switch signal after monitoring the time-consuming printing switch signal, so that the automatic unified control of the time-consuming printing of the server is realized.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a time-consuming printing apparatus according to a third embodiment of the present invention, which is applicable to time-consuming printing of application services deployed on multiple servers, and the apparatus may be implemented in software and/or hardware, and may be generally integrated in a computer device, for example, a server.
As shown in fig. 4, the time-consuming printing apparatus applied to a server specifically includes: a time-consuming print switch signal listening module 410 and a time-consuming print module 420. Wherein the content of the first and second substances,
a time-consuming printing switch signal monitoring module 410, configured to monitor, by using a time-consuming control component, a time-consuming printing switch signal sent by a server unified configuration center;
and a time-consuming printing module 420, configured to execute a time-consuming printing start operation or a time-consuming printing stop operation according to the time-consuming printing switch signal through the time-consuming control component.
In the technical scheme provided by the embodiment of the invention, the server unified configuration center sends the time-consuming printing switch signal to the server, and the time-consuming control component pre-embedded in the server correspondingly executes the time-consuming printing starting operation or the time-consuming printing closing operation according to the time-consuming printing switch signal after monitoring the time-consuming printing switch signal, so that the automatic unified control of the time-consuming printing of the server is realized.
Further, the time-consuming printing module 420 is specifically configured to match, by the time-consuming control component, the IP address carried by the time-consuming printing switch signal with the local IP address; and if the matching is confirmed to be successful through the time-consuming control component, executing time-consuming printing starting or closing operation according to the time-consuming printing switching signal.
Further, the time-consuming printing module 420 is specifically configured to turn on a time-consuming printing switch according to the time-consuming printing switch signal through the time-consuming control component, modify the log level from the initial level to the target level, and start to perform a time-consuming printing operation; or closing a switch of the time-consuming printing, modifying the log level from the target level to the initial level, and stopping executing the time-consuming printing operation. Wherein the target level is to indicate that only log information related to the time-consuming analysis is printed;
the time-consuming printing device can execute the time-consuming printing method applied to the server provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the time-consuming printing method.
Example four
Fig. 5 is a schematic structural diagram of a time-consuming printing apparatus according to a fourth embodiment of the present invention, which is applicable to time-consuming printing of application services deployed on multiple servers, and the apparatus may be implemented in software and/or hardware, and may be generally integrated in a computer device, for example, a server unified configuration center.
As shown in fig. 5, the time-consuming printing apparatus, applied to a server unified configuration center, specifically includes:
a time-consuming printing switch signal sending module 510, configured to send a time-consuming printing switch signal to a target server, so that the target server executes a time-consuming printing start operation or a time-consuming printing stop operation according to the time-consuming printing switch signal through a time-consuming control component.
In the technical scheme provided by the embodiment of the invention, the server unified configuration center sends the time-consuming printing switch signal to the server, and the time-consuming control component pre-embedded in the server correspondingly executes the time-consuming printing starting operation or the time-consuming printing closing operation according to the time-consuming printing switch signal after monitoring the time-consuming printing switch signal, so that the automatic unified control of the time-consuming printing of the server is realized.
Further, the time-consuming printing switch signal sending module 510 is specifically configured to send a time-consuming printing switch signal carrying an IP address of a target server to each server, so that the target server executes time-consuming printing on or off operation according to the time-consuming printing switch signal after confirming, by the time-consuming control component, that the IP address carried by the time-consuming printing switch signal matches with the local IP address.
Optionally, the time-consuming printing switch signal sending module 510 is specifically configured to receive the log configuration file modification configuration information, and send a time-consuming printing switch signal to the target server according to the log configuration file modification configuration information.
The time-consuming printing device can execute the time-consuming printing method applied to the server unified configuration center provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the time-consuming printing method.
EXAMPLE five
Fig. 6 is a schematic diagram of a hardware structure of a computer device according to a fifth embodiment of the present invention. As shown in fig. 6, the computer apparatus includes:
one or more processors 610, one processor 610 being exemplified in fig. 6;
a memory 620;
the apparatus may further include: an input device 630 and an output device 640.
The processor 610, the memory 620, the input device 630 and the output device 640 of the apparatus may be connected by a bus or other means, and fig. 6 illustrates the example of connection by a bus.
The memory 620 is used as a non-transitory computer readable storage medium for storing software programs, computer executable programs, and modules, such as program instructions/modules corresponding to a time-consuming printing method applied to a server in the embodiment of the present invention (for example, the time-consuming printing switch signal listening module 410 and the time-consuming printing module 420 in the time-consuming printing apparatus shown in fig. 4), and program instructions/modules corresponding to a time-consuming printing method applied to a server unified configuration center in the embodiment of the present invention (for example, the time-consuming printing switch signal sending module 510 in the time-consuming printing apparatus shown in fig. 5). The processor 610 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 620, that is, a time-consuming printing method applied to the server implementing the above method embodiments or a time-consuming printing method applied to the server unified configuration center implementing the above method embodiments.
The memory 620 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 620 optionally includes memory located remotely from processor 610, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus. The output device 640 may include a display device such as a display screen.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a time-consuming printing method applied to a server, the method including:
monitoring a time-consuming printing switch signal sent by a server unified configuration center through a time-consuming control component;
and executing time-consuming printing starting operation or time-consuming printing closing operation according to the time-consuming printing switching signal through the time-consuming control assembly.
The computer executable instructions, when executed by a computer processor, may also be for performing a time consuming printing method applied to a server unified configuration center, the method comprising:
and sending a time-consuming printing switch signal to a target server so that the target server executes time-consuming printing opening operation or time-consuming printing closing operation according to the time-consuming printing switch signal through a time-consuming control component.
Optionally, the computer executable instructions, when executed by the computer processor, may be further configured to implement a technical solution of a time-consuming printing method applied to a server, or a technical solution of a time-consuming printing method applied to a server unified configuration center, according to any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the time-consuming printing apparatus applied to the server or the time-consuming printing apparatus applied to the server unified configuration center, the included units and modules are only divided according to the functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A time-consuming printing method is applied to a server and comprises the following steps:
monitoring a time-consuming printing switch signal sent by a server unified configuration center through a time-consuming control component;
and executing time-consuming printing starting operation or time-consuming printing closing operation according to the time-consuming printing switching signal through the time-consuming control assembly.
2. The method of claim 1, wherein performing a time-consuming print on or off operation by the time-consuming control component in accordance with the time-consuming print switch signal comprises:
matching the IP address carried by the time-consuming printing switch signal with the IP address of the local machine through the time-consuming control component;
and if the matching is confirmed to be successful through the time-consuming control component, executing time-consuming printing starting or closing operation according to the time-consuming printing switching signal.
3. The method of claim 1 or 2, wherein performing a time-consuming print start operation by the time-consuming control component comprises:
starting a time-consuming printing switch through the time-consuming control assembly, modifying the log level from an initial level to a target level, and starting to execute time-consuming printing operation; wherein the target level is to indicate that only log information related to the time-consuming analysis is printed;
performing a time-consuming print shutdown operation by the time-consuming control component, comprising:
and closing a switch of time-consuming printing through the time-consuming control component, modifying the log level from the target level to the initial level, and stopping executing the time-consuming printing operation.
4. A time-consuming printing method is applied to a server unified configuration center and comprises the following steps:
and sending a time-consuming printing switch signal to a target server so that the target server executes time-consuming printing opening operation or time-consuming printing closing operation according to the time-consuming printing switch signal through a time-consuming control component.
5. The method of claim 4, wherein sending a time-consuming print switch signal to the target server comprises:
and sending a time-consuming printing switch signal carrying the IP address of the target server to each server, so that the target server executes time-consuming printing opening or closing operation according to the time-consuming printing switch signal after confirming that the IP address carried by the time-consuming printing switch signal is matched with the IP address of the local server through the time-consuming control component.
6. The method of claim 4, wherein sending a time-consuming print switch signal to the target server comprises:
and receiving log configuration file modification configuration information, and sending a time-consuming printing switch signal to a target server according to the log configuration file modification configuration information.
7. A time-consuming printing device, for use with a server, comprising:
the time-consuming printing switch signal monitoring module is used for monitoring time-consuming printing switch signals sent by the server unified configuration center through the time-consuming control component;
and the time-consuming printing module is used for executing time-consuming printing starting operation or time-consuming printing closing operation according to the time-consuming printing switching signal through the time-consuming control component.
8. A time-consuming printing device applied to a server unified configuration center comprises:
and the time-consuming printing switch signal sending module is used for sending a time-consuming printing switch signal to the target server so that the target server executes time-consuming printing starting operation or time-consuming printing closing operation according to the time-consuming printing switch signal through the time-consuming control component.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-3 or implements the method according to any of claims 4-6 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 3, or carries out the method of any one of claims 4 to 6.
CN201911345008.0A 2019-12-24 2019-12-24 Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium Pending CN111045616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911345008.0A CN111045616A (en) 2019-12-24 2019-12-24 Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911345008.0A CN111045616A (en) 2019-12-24 2019-12-24 Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111045616A true CN111045616A (en) 2020-04-21

Family

ID=70238768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911345008.0A Pending CN111045616A (en) 2019-12-24 2019-12-24 Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111045616A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625302A (en) * 2020-05-29 2020-09-04 北京字节跳动网络技术有限公司 Function time consumption tracking method, device and storage medium
CN113885814A (en) * 2021-08-31 2022-01-04 珠海读书郎软件科技有限公司 Method for remotely grabbing and printing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804279A (en) * 2018-03-30 2018-11-13 阿里巴巴集团控股有限公司 Change the method and application apparatus of daily record printing grade
CN110134658A (en) * 2019-04-09 2019-08-16 平安科技(深圳)有限公司 Log monitoring method, device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804279A (en) * 2018-03-30 2018-11-13 阿里巴巴集团控股有限公司 Change the method and application apparatus of daily record printing grade
CN110134658A (en) * 2019-04-09 2019-08-16 平安科技(深圳)有限公司 Log monitoring method, device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625302A (en) * 2020-05-29 2020-09-04 北京字节跳动网络技术有限公司 Function time consumption tracking method, device and storage medium
CN113885814A (en) * 2021-08-31 2022-01-04 珠海读书郎软件科技有限公司 Method for remotely grabbing and printing

Similar Documents

Publication Publication Date Title
CN111431740B (en) Data transmission method, device, equipment and computer readable storage medium
US10798218B2 (en) Environment isolation method and device
CN108628716B (en) Information receiving and managing system, method and device
CN108363653B (en) Deployment method and device of monitoring system, computer equipment and storage medium
CN104468283A (en) Multi-host management system monitoring method, device and system
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
CN113645314B (en) Private cloud deployment method and server
CN110943862B (en) Mutual exclusion service judgment method and device, electronic equipment and storage medium
CN113347037B (en) Data center access method and device
CN113055252B (en) Method, device, equipment and storage medium for detecting newly added service host
US11928449B2 (en) Information processing method, device, apparatus and system, medium, andprogram
CN109697078B (en) Repairing method of non-high-availability component, big data cluster and container service platform
CN111045616A (en) Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium
CN104503861A (en) Abnormality handling method and system, agency device and control device
CN110780918B (en) Middleware container processing method and device, electronic equipment and storage medium
CN113923008B (en) Malicious website interception method, device, equipment and storage medium
CN108733466A (en) Restart the method, apparatus and equipment of the application system example in distributed system
CN108595195B (en) Application program updating method, device, terminal and storage medium
WO2024119843A1 (en) Data acquisition method and apparatus and computer device
CN105763365B (en) Exception handling method and device
CN112306871A (en) Data processing method, device, equipment and storage medium
CN106060124A (en) Application program downloading method and mobile terminal
CN115665035A (en) Information processing method and device, first node and storage medium
CN113904932A (en) Modularized server upgrading method and device, electronic equipment and medium
CN115309457A (en) Application instance restarting method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination