CN111416844A - Service start-stop method, system, device and storage medium - Google Patents

Service start-stop method, system, device and storage medium Download PDF

Info

Publication number
CN111416844A
CN111416844A CN202010169832.1A CN202010169832A CN111416844A CN 111416844 A CN111416844 A CN 111416844A CN 202010169832 A CN202010169832 A CN 202010169832A CN 111416844 A CN111416844 A CN 111416844A
Authority
CN
China
Prior art keywords
domain name
cdn
stop
service
edge 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.)
Granted
Application number
CN202010169832.1A
Other languages
Chinese (zh)
Other versions
CN111416844B (en
Inventor
冯权成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202010169832.1A priority Critical patent/CN111416844B/en
Publication of CN111416844A publication Critical patent/CN111416844A/en
Application granted granted Critical
Publication of CN111416844B publication Critical patent/CN111416844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Abstract

The embodiment of the invention provides a method, a system, a device and a storage medium for starting and stopping a service, relates to the technical field of content distribution, and can improve the timeliness of stopping the service. The technical scheme of the embodiment of the invention comprises the following steps: receiving an operation command sent by a terminal, wherein the operation command is a command generated when the terminal detects that a user performs a start or stop operation on a domain name, and the operation command is used for indicating the start or stop of a service corresponding to the domain name. And then extracting and storing domain name information from the operation command, wherein the domain name information comprises a domain name and a start-stop identifier, and the start-stop identifier is used for indicating to start or stop the service corresponding to the domain name. And sending domain name information to a CDN edge server of the content delivery network so that the CDN edge server starts or stops service corresponding to the domain name according to the start-stop identifier.

Description

Service start-stop method, system, device and storage medium
Technical Field
The present invention relates to the field of content distribution technologies, and in particular, to a method, a system, an apparatus, and a storage medium for starting and stopping a service.
Background
A Content Delivery Network (CDN) server in a CDN system may provide a service for a user equipment, and the CDN server in the system is deployed in multiple layers, so that the user equipment may obtain a desired Content from a CDN server that is close to the CDN server. The service provider provides internet content services, such as file downloading, live video acquisition and the like, for the user through the domain name. When the user equipment needs to use the service, a service request carrying a Domain Name is sent to a CDN scheduling server, the CDN scheduling server obtains a CDN server corresponding to the Domain Name through Domain Name System (DNS) resolution, and routes the service request to the CDN server, and the CDN server provides the service corresponding to the Domain Name for the user equipment.
In practical applications, it is often necessary to stop or start a service in a CDN server, for example, in the case of a violation of service content, an expiration of a contract for the service, or a suspension of a request from a provider of the service.
At present, when a service corresponding to a domain name is stopped, a service operator needs to modify an analysis result of the domain name to be a 403 error, so that when a CDN scheduling server receives a user request, an analysis result obtained by analyzing the domain name is a 403 error, and the analysis result is sent to a user equipment. However, a service operator generally sets a certain DNS cache, and even if the resolution result is modified, a certain resolution result before modification still exists, so that when the CDN scheduling server performs DNS resolution, the CDN scheduling server may still obtain the DNS resolution result cached before modification, so that the CDN scheduling server routes the service request to the CDN server originally corresponding to the domain name, and the effect of stopping service is not achieved. It can be seen that the time for the modified parsing result to take effect is not controllable, so that the timeliness for stopping the service by adopting the method is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a system, a device and a storage medium for starting and stopping a service, so as to improve the timeliness of stopping the service. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for starting and stopping a service, which is applied to a management server, and the method includes:
receiving an operation command sent by a terminal, wherein the operation command is a command generated when the terminal detects that a user performs starting or stopping operation on a domain name, and the operation command is used for indicating to start or stop a service corresponding to the domain name;
extracting and storing domain name information from the operation command, wherein the domain name information comprises the domain name and a start-stop identifier, and the start-stop identifier is used for indicating to start or stop a service corresponding to the domain name;
and sending the domain name information to a CDN edge server of a content delivery network so that the CDN edge server starts or stops the service corresponding to the domain name according to the start-stop identifier.
Optionally, the domain name information further includes a timestamp, and before the sending the domain name information to the CDN edge server, the method further includes:
receiving an acquisition request for a domain name list sent by the CDN edge server, wherein the domain name list comprises specified domain name information received by the management server, and a timestamp included in the specified domain name information belongs to a specified time period;
the sending the domain name information to a Content Delivery Network (CDN) edge server includes:
and responding to the acquisition request, and sending the domain name list to the CDN edge server.
Optionally, the method further includes:
receiving callback information sent by the CDN edge server, wherein the callback information is used for indicating that the CDN edge server successfully sets the state of the service corresponding to the domain name as starting or stopping;
and sending the callback information to the terminal so that the terminal displays the state of the service corresponding to the domain name based on the callback information.
In a second aspect, an embodiment of the present invention provides a system for starting and stopping a service, where the system includes: the terminal, the management server and the CDN edge server; the terminal is connected to the management server, and the management server is connected to the CDN edge server; wherein:
the terminal is used for generating an operation command and sending the operation command to a management server when detecting that a user executes start or stop operation on a domain name, wherein the operation command is used for indicating the start or stop of a service corresponding to the domain name;
the management server is configured to receive the operation command sent by the terminal, extract and store domain name information from the operation command, where the domain name information includes the domain name and a start-stop identifier, and the start-stop identifier is used to indicate that a service corresponding to the domain name is started or stopped;
and the CDN edge server is used for receiving the domain name information sent by the management server and starting or stopping the service corresponding to the domain name according to the start-stop identifier.
Optionally, the management server includes: the central control module and the CDN domain name management module;
the central control module is configured to receive the operation command sent by the terminal, extract the domain name information from the operation command, and send the domain name information to the CDN domain name management module;
the CDN domain name management module is used for receiving and storing the domain name information in a domain name list, the domain name list comprises the specified domain name information received by the CDN domain name management module, and a timestamp included in the specified domain name information belongs to a specified time period.
Optionally, the CDN edge server is further configured to send, before receiving the domain name information sent by the management server, an acquisition request for the domain name list to the CDN domain name management module when starting up;
the management server is specifically configured to send the domain name list to the CDN edge server in response to the acquisition request.
Optionally, the CDN domain name management module is further configured to receive callback information sent by the CDN edge server, and send the callback information to the central control module, where the callback information is used to indicate that the CDN edge server successfully sets a state of a service corresponding to the domain name as start or stop;
and the central control module is used for receiving the callback information and sending the callback information to the terminal, so that the terminal displays the state of the service corresponding to the domain name based on the callback information.
Optionally, the CDN edge server is further configured to:
when a service request sent by user equipment is received, determining the state of a service corresponding to a domain name carried by the service request;
and when the service state corresponding to the domain name carried by the service request is stop, sending a message indicating that the service is stopped to the user equipment.
In a third aspect, an embodiment of the present invention provides a device for starting and stopping a service, where the device is applied to a management server, and the device includes:
a receiving module, configured to receive an operation command sent by a terminal, where the operation command is a command generated when the terminal detects that a user performs a start or stop operation on a domain name, and the operation command is used to instruct to start or stop a service corresponding to the domain name;
a storage module, configured to extract and store domain name information from the operation command received by the receiving module, where the domain name information includes the domain name and a start-stop identifier, and the start-stop identifier is used to indicate to start or stop a service corresponding to the domain name;
and the sending module is used for sending the domain name information stored by the storage module to a Content Delivery Network (CDN) edge server so that the CDN edge server starts or stops the service corresponding to the domain name according to the start-stop identifier.
Optionally, the domain name information further includes a timestamp, and the receiving module is further configured to receive an acquisition request for a domain name list sent by a CDN edge server before sending the domain name information to the CDN edge server, where the domain name list includes specified domain name information received by the management server, and a timestamp included in the specified domain name information belongs to a specified time period;
the sending module is specifically configured to: and sending the domain name list to the CDN edge server in response to the acquisition request received by the receiving module.
Optionally, the receiving module is further configured to receive callback information sent by the CDN edge server, where the callback information is used to indicate that the CDN edge server successfully sets the state of the service corresponding to the domain name as start or stop;
the sending module is further configured to send the callback information received by the receiving module to the terminal, so that the terminal displays a state of the service corresponding to the domain name based on the callback information.
In a fourth aspect, an embodiment of the present invention provides a server, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the start-stop method of any service when executing the program stored in the memory.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the start-stop method for any one of the above services.
In a sixth aspect, embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute a start-stop method for any one of the above services.
The technical scheme of the embodiment of the invention can at least bring the following beneficial effects: the CDN edge server can directly receive the domain name to be started or stopped and the start-stop identifier, and start or stop the service corresponding to the domain name according to the start-stop identifier. Thus, for a stopped service, even if the CDN scheduling server routes the user request to the CDN edge server, the CDN edge server will not provide the stopped service to the user because it stopped the service. It can be seen that the method provided by the invention does not depend on DNS cache of a service operator, and improves the timeliness of stopping service.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a service start-stop system according to an embodiment of the present invention;
fig. 2 is a flowchart of a service start-stop method according to an embodiment of the present invention;
fig. 3 is a flowchart of another service start-stop method provided in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a start-stop system of another service according to an embodiment of the present invention;
fig. 5 is an exemplary schematic diagram of a terminal display interface provided in an embodiment of the present invention;
FIG. 6 is an exemplary diagram of another terminal display interface provided by an embodiment of the invention;
FIG. 7 is an exemplary diagram of another terminal display interface provided by an embodiment of the invention;
fig. 8 is a schematic structural diagram of a service start/stop device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to improve timeliness of stopping a service, as shown in fig. 1, an embodiment of the present invention provides a system for starting and stopping a service, where the system includes: a terminal 101, a control server 102, and a Content Delivery Network (CDN) edge server 103. Wherein:
and the terminal 101 is used for triggering the starting or stopping of the service.
And the control server 102 is used for managing the starting and stopping of the service provided by the CDN edge server.
And the CDN edge server 103 is configured to provide a service for the user terminal. It is understood that, in order to implement hierarchical control, the CDN servers in the CDN system may be composed of a CDN upper server, a CDN middle server, and a CDN edge server.
The terminal 101 is in communication connection with the control server 102, and the control server 102 is in communication connection with the CDN edge server 103. Fig. 1 is an example provided by an embodiment of the present invention, and the number of each device included in a service start-stop system is not specifically limited by the embodiment of the present invention.
An embodiment of the present invention provides a service start-stop method, which is applied to a management server in a service start-stop system, and as shown in fig. 2, the method includes the following steps.
Step 201, receiving an operation command sent by a terminal.
The operation instruction is a command generated when the terminal detects that a user performs starting or stopping operation on the domain name, and the operation command is used for indicating starting or stopping of a service corresponding to the domain name.
It is understood that the domain name is a domain name for which a start operation or a stop operation performed by a user is directed, and may be any domain name for which the terminal has a management authority.
Step 202, extracting and storing domain name information from the operation command.
The domain name information comprises a domain name and a start-stop identifier, and the start-stop identifier is used for indicating that the service corresponding to the domain name is started or stopped.
Step 203, sending domain name information to the CDN edge server, so that the CDN edge server starts or stops a service corresponding to the domain name according to the start-stop identifier.
The technical scheme of the embodiment of the invention can at least bring the following beneficial effects: the CDN edge server may directly receive the domain name and the start-stop identifier that need to be started or stopped, and start or stop the service corresponding to the domain name according to the start-stop identifier. Thus, for a stopped service, even if the CDN scheduling server routes the user request to the CDN edge server, the CDN edge server will not provide the stopped service to the user because it stopped the service. It can be seen that the method provided by the invention does not depend on Domain Name System (DNS) cache of a service operator, and improves the timeliness of stopping service.
In addition, for the service instructed to be started by the terminal, if the service starting method of the related art is adopted, since the validation time of the modified analysis result is not controllable, and the state of the service before the terminal instructs to be stopped before starting, the CDN scheduling server may still send a "403 error" to the user terminal.
In the embodiment of the present invention, the control server may send the domain name information to the CDN edge server, and the CDN edge server may start the service corresponding to the domain name in the domain name information in time, so that the CDN edge server may provide the service to the user in time when receiving the service request, thereby improving timeliness of starting the service.
Optionally, after storing the domain name information, the management server may actively send the domain name information to the CDN edge server, and the management server may also passively provide the domain name information to the CDN edge server. The method for providing domain name information to the CDN edge server includes: before sending domain name information to the CDN edge server, receiving an acquisition request for a domain name list sent by the CDN edge server. The domain name list comprises specified domain name information received by the management server, and a timestamp included in the specified domain name information belongs to a specified time period. The CDN edge server may send an acquisition request to the management server at startup.
It can be understood that the domain name information may further include a timestamp, for example, the timestamp may be a time when the user performs a start operation or a stop operation on the domain name, and may also be a time when the terminal sends an operation command, and the time represented by the timestamp is not specifically limited in the embodiment of the present invention.
Optionally, after receiving the obtaining request, the manner of sending the domain name information to the CDN edge server in step 203 includes: and responding to the acquisition request, and sending a domain name list to the CDN edge server.
The technical scheme of the embodiment of the invention can also bring the following beneficial effects: the management server can actively send the domain name information to the CDN server and also can passively provide the domain name information to the CDN server, so that the timeliness of stopping or starting the service is improved.
Optionally, in the embodiment of the present invention, after receiving the domain name information, the CDN edge server may send callback information to the terminal through the management server, as shown in fig. 3, where the manner in which the management server transmits the callback information includes the following steps.
Step 301, receiving callback information sent by the CDN edge server.
The callback information is used for indicating that the CDN edge server successfully sets the state of the service corresponding to the domain name to start or stop.
Step 302, sending callback information to the terminal, so that the terminal displays the state of the service corresponding to the domain name based on the callback information.
It can be understood that the callback information may include a domain name and a start-stop identifier, and the terminal may display the state of the domain name as being in operation or stopped according to the start-stop identifier.
For example, the start-stop flag may be start (run) or stop (stop).
The technical scheme of the embodiment of the invention can also bring the following beneficial effects: the CDN edge server can send the callback information to the terminal through the management server, so that the terminal can obtain and display a result of changing the service state of the CDN edge server in time.
Corresponding to the above method embodiment, as shown in fig. 4, an embodiment of the present invention further provides a service start-stop system, where the system includes: a terminal 401, a management server 402 and a CDN edge server 403; the terminal 401 is connected to the management server 402, and the management server 402 is connected to the CDN edge server 403; wherein:
the terminal 401 is configured to generate an operation command and send the operation command to the management server 402 when detecting that the user performs an operation of starting or stopping on the domain name. The operation command is used for indicating to start or stop the service corresponding to the domain name.
And a management server 402 for receiving the operation command sent by the terminal 401, and extracting and storing domain name information from the operation command. The domain name information comprises a domain name and a start-stop identifier, and the start-stop identifier is used for indicating that the service corresponding to the domain name is started or stopped.
The CDN edge server 403 is configured to receive the domain name information sent by the management server 402, and start or stop a service corresponding to the domain name according to the start-stop identifier.
The technical scheme of the embodiment of the invention can at least bring the following beneficial effects: the CDN edge server can directly receive the domain name to be started or stopped and the start-stop identifier, and start or stop the service corresponding to the domain name according to the start-stop identifier. Thus, for a stopped service, even if the CDN scheduling server routes the user request to the CDN edge server, the CDN edge server will not provide the stopped service to the user because it stopped the service. It can be seen that the method provided by the invention does not depend on DNS cache of a service operator, and improves the timeliness of stopping service.
In addition, for the service instructed to be started by the terminal, if the service starting method of the related art is adopted, since the validation time of the modified analysis result is not controllable, and the state of the service before the terminal instructs to be stopped before starting, the CDN scheduling server may still send a "403 error" to the user terminal.
In the embodiment of the present invention, the control server may send the domain name information to the CDN edge server, and the CDN edge server may start the service corresponding to the domain name in the domain name information in time, so that the CDN edge server may provide the service to the user in time when receiving the service request, thereby improving timeliness of starting the service.
Optionally, an open Application programming interface (OpenAPI) or a console is provided in the terminal, and a user may perform a start operation or a stop operation on the domain name through the OpenAPI or the console.
For example, as shown in fig. 5, the user may select or input a pull domain name, a mapping record (CNAME), a pull address, a pull type, and a domain Identity identification number (ID) in a display interface of the terminal. After the user input or selection is completed, the terminal displays "confirm stop XX domain name? ". Or when the user is detected to click the 'start' button, the prompt message of 'confirm start XX domain name' is displayed in the interface as shown in fig. 7, and after the user is detected to click the 'confirm' button, an operation instruction is generated. Where "XX" denotes a domain name for which an operation is started or stopped.
Optionally, the method for generating the operation instruction by the terminal includes: and acquiring a domain name, a start-stop identifier and a timestamp corresponding to the start operation or the stop operation, and generating an operation command carrying the domain name, the start-stop identifier and the timestamp.
Alternatively, referring to fig. 4, the management server 402 may include: a central control module 4021 and a CDN domain name management module 4022.
The central control module 4021 is configured to receive an operation command sent by the terminal 401, extract domain name information from the operation command, and send the domain name information to the CDN domain name management module 4022.
Optionally, the central control module 4021 may transmit the domain name, the start-stop identifier, and the timestamp to the CDN domain name management module 4022 in the form of an API.
The CDN domain name management module 4022 is configured to receive and store domain name information in a domain name list, where the domain name list includes specified domain name information received by the CDN domain name management module 4022, and a timestamp included in the specified domain name information belongs to a specified time period.
Optionally, the CDN domain name management module 4022 may store and maintain a domain name list in the form of a database, and may store domain name information whose timestamp belongs to a specified time period in the domain name list. For example, the specified time period may be a time period between the current time and a time 1 hour before the current time.
Optionally, after storing the domain name information, the management server may actively send the domain name information to the CDN edge server, and the management server may also passively provide the domain name information to the CDN edge server.
Based on this, the CDN edge server may be further configured to send, before receiving the domain name information sent by the management server, an acquisition request for the domain name list to the CDN domain name management module when starting up.
Correspondingly, the management server is specifically configured to send a domain name list to the CDN edge server in response to the acquisition request.
The technical scheme of the embodiment of the invention can also bring the following beneficial effects: the management server can actively send the domain name information to the CDN server and also can passively provide the domain name information to the CDN server, so that the timeliness of stopping or starting the service is improved.
Optionally, the CDN server may also feed back callback information to the terminal through the management server.
Based on this, the CDN domain name management module may be further configured to receive callback information sent by the CDN edge server, and send the callback information to the central control module. The callback information is used for indicating that the CDN edge server successfully sets the state of the service corresponding to the domain name to start or stop.
And the central control module is used for receiving the callback information and sending the callback information to the terminal so that the terminal can display the state of the service corresponding to the domain name based on the callback information.
As shown in fig. 5, the terminal may further display the state of the service corresponding to the domain name in the display interface. For example, if the domain name indicated by the callback information is successfully stopped, "stopped" is displayed in the status bar; if the domain name represented by the callback information is successfully started, displaying 'running' in the status bar.
The technical scheme of the embodiment of the invention can also bring the following beneficial effects: the CDN edge server can send the callback information to the terminal through the management server, so that the terminal can obtain and display a result of changing the service state of the CDN edge server in time.
Optionally, the CDN edge server may also provide the running service for the user.
Based on this, the CDN edge server is further configured to determine, when receiving a service request sent by the user equipment, a state of a service corresponding to a domain name carried by the service request. And when the service state corresponding to the domain name carried by the service request is stop, sending a message indicating that the service is stopped to the user equipment.
Optionally, the CDN edge server may correspondingly write the domain name and the state of the service corresponding to the domain name into the local configuration file after updating the state of the service corresponding to the domain name. And when a service request is received, reading the state corresponding to the domain name from the local configuration file.
For example, when it is determined that the status of the service requested by the service request is stopped, a message including "403 error" is sent to the user.
Optionally, when the service requested by the service request is in an operating state, the service corresponding to the domain name carried by the service request is provided to the user equipment.
The technical scheme of the embodiment of the invention can also bring the following beneficial effects: the CDN edge server can receive the domain name information, update the service state in time according to the domain name information, stop providing service for the user in time when the service is stopped, and provide service for the user in time when the service is started. The time interval from the user executing the start-stop operation to the successful start-stop of the service is shortened, the waiting time of the user is saved, the operation cost of the user is reduced, and the start-stop efficiency of the service is improved.
Corresponding to the above method embodiment, an embodiment of the present invention provides a start-stop device for a service, which is applied to a management server, and with reference to fig. 8, the start-stop device includes: a receiving module 801, a storage module 802 and a sending module 803;
a receiving module 801, configured to receive an operation command sent by a terminal, where the operation command is a command generated when the terminal detects that a user performs a start or stop operation on a domain name, and the operation command is used to instruct to start or stop a service corresponding to the domain name;
a storage module 802, configured to extract and store domain name information from the operation command received by the receiving module 801, where the domain name information includes a domain name and a start-stop identifier, and the start-stop identifier is used to indicate that a service corresponding to the domain name is started or stopped;
a sending module 803, configured to send the domain name information stored by the storage module 802 to a content delivery network CDN edge server, so that the CDN edge server starts or stops a service corresponding to the domain name according to the start-stop identifier.
Optionally, the domain name information further includes a timestamp, and the receiving module 801 is further configured to receive an acquisition request for a domain name list sent by a CDN edge server before sending the domain name information to the content distribution network CDN edge server, where the domain name list includes specified domain name information received by the management server, and the timestamp included in the specified domain name information belongs to a specified time period;
the sending module 803 is specifically configured to: in response to the acquisition request received by the receiving module 801, the domain name list is sent to the CDN edge server.
Optionally, the receiving module 801 is further configured to receive callback information sent by the CDN edge server, where the callback information is used to indicate that the CDN edge server successfully sets the state of the service corresponding to the domain name as start or stop;
the sending module 803 is further configured to send the callback information received by the receiving module 801 to the terminal, so that the terminal displays the state of the service corresponding to the domain name based on the callback information.
The embodiment of the present invention further provides a server, as shown in fig. 9, including a processor 901, a communication interface 902, a memory 903 and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
the processor 901 is configured to implement the steps processed by the management server in the above method embodiments when executing the program stored in the memory 903.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In a further embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the start-stop method of any one of the above-mentioned services.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for starting and stopping any of the services of the above embodiments.
The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., from one website site, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DS L)) or wireless (e.g., infrared, wireless, microwave, etc.) manner to another website site, computer, server, or data center.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for system and apparatus embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A method for starting and stopping a service is applied to a management server, and comprises the following steps:
receiving an operation command sent by a terminal, wherein the operation command is a command generated when the terminal detects that a user performs starting or stopping operation on a domain name, and the operation command is used for indicating to start or stop a service corresponding to the domain name;
extracting and storing domain name information from the operation command, wherein the domain name information comprises the domain name and a start-stop identifier, and the start-stop identifier is used for indicating to start or stop a service corresponding to the domain name;
and sending the domain name information to a CDN edge server of a content delivery network so that the CDN edge server starts or stops the service corresponding to the domain name according to the start-stop identifier.
2. The method of claim 1, wherein the domain name information further comprises a timestamp, and wherein prior to the sending the domain name information to a Content Delivery Network (CDN) edge server, the method further comprises:
receiving an acquisition request for a domain name list sent by the CDN edge server, wherein the domain name list comprises specified domain name information received by the management server, and a timestamp included in the specified domain name information belongs to a specified time period;
the sending the domain name information to a Content Delivery Network (CDN) edge server includes:
and responding to the acquisition request, and sending the domain name list to the CDN edge server.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving callback information sent by the CDN edge server, wherein the callback information is used for indicating that the CDN edge server successfully sets the state of the service corresponding to the domain name as starting or stopping;
and sending the callback information to the terminal so that the terminal displays the state of the service corresponding to the domain name based on the callback information.
4. A system for starting and stopping a service, the system comprising: the terminal, the management server and the CDN edge server; the terminal is connected to the management server, and the management server is connected to the CDN edge server; wherein:
the terminal is used for generating an operation command and sending the operation command to a management server when detecting that a user executes start or stop operation on a domain name, wherein the operation command is used for indicating the start or stop of a service corresponding to the domain name;
the management server is configured to receive the operation command sent by the terminal, extract and store domain name information from the operation command, where the domain name information includes the domain name and a start-stop identifier, and the start-stop identifier is used to indicate that a service corresponding to the domain name is started or stopped;
and the CDN edge server is used for receiving the domain name information sent by the management server and starting or stopping the service corresponding to the domain name according to the start-stop identifier.
5. The system of claim 4, wherein the management server comprises: the central control module and the CDN domain name management module;
the central control module is configured to receive the operation command sent by the terminal, extract the domain name information from the operation command, and send the domain name information to the CDN domain name management module;
the CDN domain name management module is used for receiving and storing the domain name information in a domain name list, the domain name list comprises the specified domain name information received by the CDN domain name management module, and a timestamp included in the specified domain name information belongs to a specified time period.
6. The system of claim 5,
the CDN edge server is further configured to send, before the receiving of the domain name information sent by the management server, an acquisition request for the domain name list to the CDN domain name management module when starting up;
the management server is specifically configured to send the domain name list to the CDN edge server in response to the acquisition request.
7. The system of claim 5 or 6,
the CDN domain name management module is further configured to receive callback information sent by the CDN edge server, and send the callback information to the central control module, where the callback information is used to indicate that the CDN edge server successfully sets a state of a service corresponding to the domain name as start or stop;
and the central control module is used for receiving the callback information and sending the callback information to the terminal, so that the terminal displays the state of the service corresponding to the domain name based on the callback information.
8. The system of claim 4, wherein the CDN edge server is further configured to:
when a service request sent by user equipment is received, determining the state of a service corresponding to a domain name carried by the service request;
and when the service state corresponding to the domain name carried by the service request is stop, sending a message indicating that the service is stopped to the user equipment.
9. A service start-stop device is applied to a management server, and comprises:
a receiving module, configured to receive an operation command sent by a terminal, where the operation command is a command generated when the terminal detects that a user performs a start or stop operation on a domain name, and the operation command is used to instruct to start or stop a service corresponding to the domain name;
a storage module, configured to extract and store domain name information from the operation command received by the receiving module, where the domain name information includes the domain name and a start-stop identifier, and the start-stop identifier is used to indicate to start or stop a service corresponding to the domain name;
and the sending module is used for sending the domain name information stored by the storage module to a Content Delivery Network (CDN) edge server so that the CDN edge server starts or stops the service corresponding to the domain name according to the start-stop identifier.
10. The apparatus according to claim 9, wherein the domain name information further includes a timestamp, and the receiving module is further configured to receive, before the sending of the domain name information to a CDN edge server of a content delivery network, an acquisition request for a domain name list sent by the CDN edge server, where the domain name list includes specified domain name information received by the management server, and a timestamp included in the specified domain name information belongs to a specified time period;
the sending module is specifically configured to: and sending the domain name list to the CDN edge server in response to the acquisition request received by the receiving module.
11. The apparatus of claim 9 or 10,
the receiving module is further configured to receive callback information sent by the CDN edge server, where the callback information is used to indicate that the CDN edge server successfully sets a state of a service corresponding to the domain name to start or stop;
the sending module is further configured to send the callback information received by the receiving module to the terminal, so that the terminal displays a state of the service corresponding to the domain name based on the callback information.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-3.
CN202010169832.1A 2020-03-12 2020-03-12 Service start-stop method, system, device and storage medium Active CN111416844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010169832.1A CN111416844B (en) 2020-03-12 2020-03-12 Service start-stop method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010169832.1A CN111416844B (en) 2020-03-12 2020-03-12 Service start-stop method, system, device and storage medium

Publications (2)

Publication Number Publication Date
CN111416844A true CN111416844A (en) 2020-07-14
CN111416844B CN111416844B (en) 2022-06-03

Family

ID=71494262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010169832.1A Active CN111416844B (en) 2020-03-12 2020-03-12 Service start-stop method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN111416844B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181501A (en) * 2020-09-02 2021-01-05 中国银联股份有限公司 Service framework of application, service control method, device and computer readable storage medium
CN114115003A (en) * 2021-11-12 2022-03-01 北京银盾泰安网络科技有限公司 Remote start-stop control platform
CN114157887A (en) * 2021-11-08 2022-03-08 武汉市烽视威科技有限公司 CDN content shutdown and recovery method and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009070172A (en) * 2007-09-13 2009-04-02 Brother Ind Ltd Content distribution and storage system, provider server device registering method, node device, and node processing program
WO2012152771A2 (en) * 2011-05-12 2012-11-15 Telefonica, S.A Content server of a service provider's cdn
EP2913979A1 (en) * 2014-02-27 2015-09-02 Alcatel Lucent A method and system to process traffic optimization requests
CN106790552A (en) * 2016-12-23 2017-05-31 航天星图科技(北京)有限公司 A kind of content providing system based on content distributing network
CN107634868A (en) * 2017-10-29 2018-01-26 网宿科技股份有限公司 A kind of method and system for managing network service
CN110336888A (en) * 2019-07-12 2019-10-15 深圳市网心科技有限公司 A kind of server distribution method, device, system and medium
CN110750761A (en) * 2019-09-20 2020-02-04 阿里巴巴集团控股有限公司 Applet access control method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009070172A (en) * 2007-09-13 2009-04-02 Brother Ind Ltd Content distribution and storage system, provider server device registering method, node device, and node processing program
WO2012152771A2 (en) * 2011-05-12 2012-11-15 Telefonica, S.A Content server of a service provider's cdn
EP2913979A1 (en) * 2014-02-27 2015-09-02 Alcatel Lucent A method and system to process traffic optimization requests
CN106790552A (en) * 2016-12-23 2017-05-31 航天星图科技(北京)有限公司 A kind of content providing system based on content distributing network
CN107634868A (en) * 2017-10-29 2018-01-26 网宿科技股份有限公司 A kind of method and system for managing network service
CN110336888A (en) * 2019-07-12 2019-10-15 深圳市网心科技有限公司 A kind of server distribution method, device, system and medium
CN110750761A (en) * 2019-09-20 2020-02-04 阿里巴巴集团控股有限公司 Applet access control method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
腾讯云文档: "内容分发网络 CDN 关闭CDN域名", 《HTTPS://CLOUD.TENCENT.COM/DOCUMENT/PRODUCT/228》 *
腾讯云文档: "内容分发网络 CDN 关闭CDN域名", 《HTTPS://CLOUD.TENCENT.COM/DOCUMENT/PRODUCT/228》, 3 December 2019 (2019-12-03), pages 1 - 4 *
韩瑞东: "基于CDN架构的WEB服务器的设计与实现", 《山西大同大学学报(自然科学版)》 *
韩瑞东: "基于CDN架构的WEB服务器的设计与实现", 《山西大同大学学报(自然科学版)》, no. 05, 28 October 2016 (2016-10-28) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181501A (en) * 2020-09-02 2021-01-05 中国银联股份有限公司 Service framework of application, service control method, device and computer readable storage medium
CN112181501B (en) * 2020-09-02 2024-02-23 中国银联股份有限公司 Service framework of application, service control method, device and computer readable storage medium
CN114157887A (en) * 2021-11-08 2022-03-08 武汉市烽视威科技有限公司 CDN content shutdown and recovery method and related equipment
CN114115003A (en) * 2021-11-12 2022-03-01 北京银盾泰安网络科技有限公司 Remote start-stop control platform
CN114115003B (en) * 2021-11-12 2023-08-22 浙江银盾云科技有限公司 Remote start-stop control platform

Also Published As

Publication number Publication date
CN111416844B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
CN111416844B (en) Service start-stop method, system, device and storage medium
CN112087644A (en) Pull stream request processing method, device, system, electronic equipment and storage medium
CN109862376B (en) Live content delivery system, method and device, list server and storage medium
CN111400777A (en) Network storage system, user authentication method, device and equipment
JP2007310596A (en) Service providing device, computer program and recording medium
CN110958462A (en) Live broadcast activity page display method and device, storage medium and live broadcast system
CN102792295B (en) Operation information generation device
CN109446445B (en) Resource acquisition method and device
CN109672911B (en) Video processing method and device
CN108132836B (en) Task distribution method and device and electronic equipment
CN112653736B (en) Parallel source returning method and device and electronic equipment
CN112115103B (en) File address display method and device, electronic equipment and readable storage medium
CN112437148B (en) Service request processing method and device, service server and system
US9537807B2 (en) Automatically transitioning a user from a call to action to an enrollment interface
JP6898680B2 (en) Information processing equipment and programs
CN112069386A (en) Request processing method, device, system, terminal and server
CN103729177A (en) Information providing system and method for providing information
CN112463398A (en) File transmission method and device, terminal equipment and storage medium
CN113900764B (en) Page data acquisition method, page data display method and device
CN111741337B (en) Recommendation information display method, device and equipment
CN111782418B (en) Data attribution method, device, electronic equipment and computer readable medium
CN112714092A (en) Registration login method, device and computer readable storage medium
CN112135199A (en) Video playing method based on multiple types of video sources and related equipment
CN112000618A (en) File change management method, device, equipment and storage medium for cluster nodes
CN113221049B (en) Page updating method and device, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant