CN108459792B - Flow switching method and device and computer equipment - Google Patents

Flow switching method and device and computer equipment Download PDF

Info

Publication number
CN108459792B
CN108459792B CN201810074864.6A CN201810074864A CN108459792B CN 108459792 B CN108459792 B CN 108459792B CN 201810074864 A CN201810074864 A CN 201810074864A CN 108459792 B CN108459792 B CN 108459792B
Authority
CN
China
Prior art keywords
flow
user
configuration parameters
function control
cut
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810074864.6A
Other languages
Chinese (zh)
Other versions
CN108459792A (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.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810074864.6A priority Critical patent/CN108459792B/en
Publication of CN108459792A publication Critical patent/CN108459792A/en
Priority to TW107146160A priority patent/TW201933830A/en
Priority to PCT/CN2018/125198 priority patent/WO2019144769A1/en
Application granted granted Critical
Publication of CN108459792B publication Critical patent/CN108459792B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

Disclosed are a traffic switching method, a device and a computer device, wherein the method comprises the following steps: displaying and outputting at least one function control which can be selected by a user through a preset function interface, wherein each function control is packaged with a business process related to cut flow; determining a function control selected by a user, and obtaining a visual tangential flow chart according to an execution sequence set by the user aiming at the selected function control; generating a computer instruction for realizing the flow cutting process according to the visual flow cutting flow diagram; the computer instructions are executed.

Description

Flow switching method and device and computer equipment
Technical Field
The embodiment of the specification relates to the technical field of computer application, in particular to a flow switching method, a flow switching device and a flow switching method.
Background
In consideration of data security, data processing efficiency, data operation and maintenance cost and the like, there are high possibility of requirements for switching databases, switching servers, upgrading codes and the like, and in this type of application scenario, traffic flow needs to be switched, taking switching databases as an example, where switching refers to gradually draining all traffic flow from an old database to a new database according to a preset policy after deploying the new database.
In the prior art, when traffic flow is cut, a large amount of preparation and development work is involved, for example, a cut flow scheme is deployed, a cut flow process is deployed, codes for implementing the cut flow process are compiled based on the deployed cut flow process, and information of buried points is set at corresponding positions of the codes, so that the existing cut flow process is complex in manual operation and low in efficiency.
Disclosure of Invention
In view of the foregoing technical problems, an embodiment of the present specification provides a method, an apparatus, and a system for switching traffic, where the technical scheme is as follows:
according to a first aspect of embodiments herein, there is provided a traffic switching method, the method including:
displaying and outputting at least one function control which can be selected by a user through a preset function interface, wherein each function control is packaged with a business process related to cut flow;
determining a function control selected by a user, and obtaining a visual tangential flow chart according to an execution sequence set by the user aiming at the selected function control;
generating a computer instruction for realizing the flow cutting process according to the visual flow cutting flow diagram;
the computer instructions are executed.
According to a second aspect of embodiments herein, there is provided a traffic switching apparatus, the apparatus comprising:
the system comprises a first output module, a second output module and a third output module, wherein the first output module is used for displaying and outputting at least one function control which can be selected by a user through a preset function interface, and each function control is packaged with a service process related to cut flow;
the flow chart generation module is used for determining the functional control selected by the user and obtaining the visual tangential flow chart according to the execution sequence set by the user aiming at the selected functional control;
the instruction generating module is used for generating a computer instruction for realizing the flow cutting process according to the visual flow cutting flow diagram;
and the instruction execution module is used for executing the computer instructions.
According to a third aspect of the embodiments of the present specification, there is provided a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements any of the traffic switching methods provided by the embodiments of the present specification when executing the program.
According to the technical scheme provided by the embodiment of the specification, at least one function control which can be selected by a user is output to the user through a preset function interface, wherein each function control is packaged with a service flow related to the flow switching, the function control selected by the user is determined, a visual flow switching flow chart is obtained according to an execution sequence set by the user aiming at the selected function control, and a computer instruction for realizing the flow switching flow can be generated according to the visual flow switching flow chart, so that the complete flow switching flow can be compiled through simple operation of the user, the user operation is saved, the flow switching efficiency is improved, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
In addition, any one of the embodiments in the present specification is not required to achieve all of the effects described above.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be 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 described in the embodiments of the present specification, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a flowchart illustrating a traffic switching method according to an exemplary embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a display interface of a tangential flow orchestration system according to an exemplary embodiment of the present description;
FIG. 3 is a schematic diagram of a display interface of a tangential flow orchestration system according to another exemplary embodiment of the present description;
FIG. 4 is a schematic diagram of a display interface of a tangential flow orchestration system according to another exemplary embodiment of the present description;
fig. 5 is a flowchart illustrating a traffic switching method according to another exemplary embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a configuration interface of a tangential flow orchestration system according to an exemplary embodiment of the present description;
FIG. 7 is a schematic diagram of a configuration interface of a tangential flow orchestration system according to another exemplary embodiment of the present description;
fig. 8 is a flowchart illustrating a traffic switching method according to still another exemplary embodiment of the present disclosure;
fig. 9 is a block diagram of a traffic switching device shown in an exemplary embodiment of the present description;
fig. 10 is a more specific hardware structure diagram of a computing device according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of protection.
The embodiment of the specification provides a flow switching method, in the method, a flow switching process arranging system designed based on a 'modular design concept' is adopted, the flow switching process arranging system provides an interface for a user to operate and at least one function control, each function control is packaged with a service process related to flow switching, so that the user can compile a complete flow switching process by performing simple operation through the flow switching process arranging system, user operation is saved, flow switching efficiency is improved, and user experience is improved. The following embodiments are described below to explain the flow rate switching method in detail.
Referring to fig. 1, a flow chart of a flow switching method shown in an exemplary embodiment of the present disclosure is a flow switching method, which can be applied to the above-mentioned flow switching flow arranging system, and includes the following steps:
step 102: and displaying and outputting at least one function control which can be selected by a user through a preset function interface, wherein each function control is packaged with a business process related to the cut flow.
Step 104: and determining the function control selected by the user, and obtaining the visual tangential flow chart according to the execution sequence set by the user aiming at the selected function control.
Step 106: and generating computer instructions for realizing the flow cutting process according to the visual flow cutting flow chart.
Step 108: computer instructions for implementing the cut flow process are executed.
The above steps 102 to 108 are described in detail as follows:
referring to fig. 2, for a display interface schematic diagram of a cut-flow process arranging system shown in an exemplary embodiment of the present specification, a display interface 200 shown in fig. 2 may include a function interface 210 and a process arranging interface 220, where the function interface 210 may display and output at least one function control for selection by a user, each function control encapsulates a service process related to a cut flow, for example, a function control of "flow switching" as illustrated in fig. 2 encapsulates a service process for controlling flow distribution, a function control of "code deployment" as illustrated in fig. 2 encapsulates a service process for deploying new code or a new database on a specified device, and a function control of "result verification" as illustrated in fig. 2 encapsulates a service process for verifying a cut-flow result.
It should be noted that the function control illustrated in fig. 2 is only an example, and in an actual application, there may also be a function control encapsulated with other business processes, which is not limited in this embodiment of the specification.
In this embodiment of the present specification, a user may select a function control through the function interface 210 illustrated in fig. 2, and set an execution sequence for the selected function control, so that the above-described tangential flow orchestration system may obtain a visual tangential flow flowchart according to the function control selected by the user and the execution sequence set by the user for the selected function control, and display the visual tangential flow flowchart on the programming interface 220 (as shown in fig. 2).
Specifically, in an optional implementation manner, a user may control a mouse pointer to point to a function control to be selected by the user through an external device, such as a mouse, and then press a left button of the mouse, and move the mouse, at this time, it is equivalent to that the user sends a drag instruction for the function control selected by the user, that is, the tangential flow scheduling system may receive a drag instruction for at least one function control by the user, based on the drag instruction, the function control selected by the user may move on the flow scheduling interface 220 along with an operation of the user moving the mouse until the user releases the left button of the mouse, and at this time, the function control selected by the user is displayed and output on the flow scheduling interface 220.
In another alternative implementation, the user may sequentially select the functionality controls according to the intended tangential flow, for example, first select the functionality control "start" illustrated in fig. 2, at this time, the functionality control "start" will be displayed on the flow arrangement interface 220, and the tangential flow arrangement system may automatically add a "link" functionality control after the "start" functionality control, at this time, the user continues to select the functionality control "flow switch", at this time, the functionality control "flow switch" will be displayed after the newly added "link" functionality control, and according to the above description, the tangential flow arrangement system continues to automatically add a "link" functionality control after the functionality control "flow switch", until the user selects the functionality control "end". In the above process, the tangent flow layout system may automatically add a "connection" function control, and at the same time, the user may also "draw" a connection by itself according to actual needs, for example, the connection of the function control pointing from "result check" to "start" as illustrated in fig. 2, so that the visualized tangent flow diagram illustrated in fig. 2 may be obtained through the tangent flow layout system and the user operation.
It should be noted that the two alternative implementations described above are only described as examples, and in practical applications, other implementations may also exist, and the embodiments in this specification do not limit this.
In this embodiment of the present description, after the visualized flow-cutting flowchart is obtained, the flow-cutting flow arrangement system may generate a computer instruction for implementing the flow-cutting flow according to the visualized flow-cutting flowchart, where the computer instruction is an executable code, and then the flow-cutting flow arrangement system may execute the computer instruction, that is, implement the flow-cutting flow.
Specifically, in an optional implementation manner, the display interface of the tangential flow scheduling system as illustrated in fig. 3 may further include two functional controls of "determine" and "execute", where the "determine" functional control is packaged with a business process for implementing generation of a computer instruction for implementing the tangential flow according to the visual tangential flow flowchart, that is, when the user triggers the "determine" functional control, the tangential flow scheduling system may generate the computer instruction for implementing the tangential flow according to the visual tangential flow flowchart currently displayed on the flow scheduling interface 220.
Further, after generating the computer instructions for implementing the cut-flow process, a dialog box may pop up on the display interface illustrated in fig. 3, for example, as shown in fig. 4, through the content of the dialog box, the user may be prompted to generate the computer instructions for implementing the cut-flow process, and the dialog box illustrated in fig. 4 may further include an "ok" button, and when the user triggers the "ok" button, the dialog box is closed.
Further, the user may trigger the function control "execute" on the display interface of the tangential flow scheduling system illustrated in fig. 3, and at this time, the tangential flow scheduling system may execute the computer instructions for implementing the tangential flow.
As can be seen from the above description, in the technical solution provided in the embodiment of the present specification, at least one function control selectable by a user is output to the user through a preset function interface, where each function control is encapsulated with a service flow related to a cut flow, the function control selected by the user is determined, a visual cut flow chart is obtained according to an execution sequence set by the user for the selected function control, and a computer instruction for implementing the cut flow can be generated according to the visual cut flow chart, so that a complete cut flow can be programmed through simple operation of the user, thereby saving user operation, improving cut flow efficiency, and improving user experience.
In practical applications, in addition to configuring the execution sequence of each service flow, specific flow switching related information may be configured for each service flow, for example, the flow switching type, the flow switching path information, the flow switching process duration, the number of devices involved in the flow switching process, flow switching related information for a monitoring event, flow switching related information for a rollback event, and the like.
The flow switching type may include database flow switching, service code flow switching, and machine room flow switching, and specifically, the database flow switching refers to deploying a new database and gradually draining all service flows from an old database to the new database; the service code switching means that a part of servers are deployed with new versions of codes, part of service traffic is guided to the servers deployed with the new versions of codes, and when the new versions of codes are determined to be available, the new versions of codes are deployed for all the servers step by step; the machine room flow switching means that a server is newly added, and partial service flow is gradually guided to the newly added server.
The flow switching related information for the monitoring event may include a type of the monitoring event, a monitoring subject, a monitoring duration, and the like, where the type of the monitoring event is different for different flow switching types, for example, for a service code flow switching, the type of the monitoring event may include a service success rate, a traffic volume, a same-ratio ring ratio, a service failure error reporting rate, and the like; aiming at the database tangential flow, the type of the monitoring event can comprise the number of database connections, the success rate of database access, a database redo log and the like; for the machine room switching, the type of the monitoring event may include a traffic minute value, an error rate of the machine room after the traffic is introduced, and the like.
The above-mentioned cut flow related information for the rollback event may include a type of the rollback event, a rollback operation, and the like.
Based on the above description, in this specification embodiment, the cut-flow related information may be set for the function control in the function interface 210, and for convenience of description, the cut-flow related information set for the function control is referred to as a configuration parameter of the function control.
First, it is explained that the configuration parameters of the functionality control can be divided into two types, one type is a basic configuration parameter, and the other type is an optional configuration parameter, where the basic configuration parameter refers to an indispensable configuration parameter when implementing a cut-flow process, and may include: the type of the cut stream, the information of the cut stream path, the duration of the cut stream process, the number of devices involved in the cut stream process, and the like; the optional configuration parameters may be set based on user requirements, and may include: configuration parameters for a monitoring event, configuration parameters for a rollback event, and so on. The specific process of setting the configuration parameters of the functionality control is described in detail as follows:
please refer to fig. 5, which is a flowchart illustrating a flow switching method according to another exemplary embodiment of the present disclosure, where the flow illustrated in fig. 5 focuses on a process of setting configuration parameters of a function control based on the flow illustrated in fig. 1, and may include the following steps:
step 502: and outputting a preset configuration interface to a user, wherein the configuration interface comprises at least one input control.
Step 504: and receiving configuration parameters input by a user and aiming at the functional control selected by the user through the input control.
Step 502 and step 504 are described in detail as follows:
in this embodiment of the present specification, the above-mentioned cut-flow process arranging system may further output a preset configuration interface to a user, as shown in fig. 6, which is a schematic configuration interface diagram of the cut-flow process arranging system shown in an exemplary embodiment of the present specification, where the configuration interface includes at least one input control, for example, the input controls illustrated in fig. 6 and corresponding to the type of cut-flow, the length of cut-flow, and the number of devices, and the user may set configuration parameters for the specified function controls through the input controls, so as to receive, through the input controls, the configuration parameters for the function controls selected by the user.
For example, taking setting the type of the tangential flow as an example, as shown in fig. 7, the user may trigger a "pull-down option" of the input control corresponding to the type of the tangential flow, a selectable type of the tangential flow may be displayed in a pull-down menu, and the user may click the selected type of the tangential flow through a mouse pointer.
In an alternative implementation, the user may double-click on a selected functionality control via a mouse pointer, thereby triggering display of the configuration interface illustrated in FIG. 6.
In another alternative implementation, the user may automatically trigger the display of the configuration interface illustrated in FIG. 6 upon selection of a functionality control.
It should be noted that the two alternative implementations described above are only described as examples, and in practical applications, other implementations may also exist, and the embodiments in this specification do not limit this.
As can be seen from the above description, in the technical solution provided in this specification, a preset configuration interface is output to a user, the configuration interface includes at least one input control, and the at least one input control receives a configuration parameter, which is input by the user and is specific to a function control selected by the user, so that a computer instruction for implementing a flow switching process can be subsequently generated according to the configuration parameter input by the user, that is, a complete flow switching process meeting the actual needs of the user can be compiled through simple operation of the user, thereby saving user operation, improving flow switching efficiency, and improving user experience.
In this embodiment of the present specification, considering that for the same user, for example, the same enterprise, the related flow switching process has more similarities, for example, the same enterprise expands its machine room multiple times in a period of time, and then it is still possible to continue to expand, and because the flow switching scenarios are the same, each flow switching process has many similarities, based on this, a prediction model obtained by training is proposed in this embodiment of the present specification, and it can be realized through this prediction model: in the process of arranging the flow cutting process by the user, the preset model automatically recommends the matched flow cutting scheme, so that the user operation is further saved, and the user experience is improved. Wherein, the recommended cut-flow scheme may be in the form of: directly giving a recommended cut flow, or giving a recommended configuration value for some parameters to be configured, and the like.
The specific process of training the prediction model is described in detail as follows:
please refer to fig. 8, which is a flowchart illustrating a flow switching method according to still another exemplary embodiment of the present disclosure, where the flow illustrated in fig. 8 focuses on a training process of a prediction model based on the flows illustrated in fig. 1 and fig. 5, and may include the following steps:
step 802: obtaining a cut flow data set from the historical cut flow record, wherein each cut flow data at least comprises: basic configuration parameters and optional configuration parameters of the function control related to the flow cutting process.
Step 804: and generating a tangential flow model training sample according to the acquired tangential flow data set.
Step 806: and training the convection model training sample by using a preset algorithm to obtain a prediction model, wherein the prediction model takes the basic configuration parameters as input values and takes the optional configuration parameters as output values.
As follows, steps 802 to 806 are described in detail:
in this embodiment of the present specification, the cut flow data set may be obtained from a historical cut flow record, for example, a cut flow record within a certain time window (for example, the past month, the past six months, and the like) may be selected as a data source, and for each piece of cut flow data in the cut flow data set, at least: basic configuration parameters and optional configuration parameters of a function control related to a cut-flow process, where the basic configuration parameters and the optional configuration parameters may be extracted from a computer instruction for implementing the cut-flow process, each piece of cut-flow data may further include parameter information for characterizing an execution result of the computer instruction, some user historical operation information, and the like, which may implement further screening of a training sample, and this is not limited in this embodiment of the specification.
The computer instructions for implementing the cut-flow process, and the description of the basic configuration parameters and the optional configuration parameters of the functional control related to the cut-flow process can be referred to the description in the above embodiments, and are not described in detail here; the parameter information used to characterize the results of execution of the computer instructions may include execution efficiency, flow cut success rate, flow cut risk, and the like.
Subsequently, a cut flow model training sample may be generated according to the cut flow data set, for example, the cut flow data set may be used as the cut flow model training sample, and for example, the cut flow data in the cut flow data set may be subjected to screening or processing (for example, normalization processing and mapping processing) to obtain the cut flow model training sample, which is not limited in the embodiment of the present specification.
Specifically, for the convenience of description, the parameters in the training samples of the tangential flow model are divided into two categories, namely, feature values (e.g., basic configuration parameters, parameter information for characterizing the execution result of the computer instructions, and some user historical operation information) and target values (e.g., optional configuration parameters), where, assuming that there are M feature values, x is set as the feature values1,x2,…xMAssuming that there are N target values, y is set1,y2,…yN
It will be understood that there is some functional relationship between the characteristic values and the target values, and each target value is affected by all or part of the M characteristic values, so that a functional relationship between each target value and a plurality of characteristic values can be established as follows:
y1=f1(x1,x2,…xM)
y2=f2(x1,x2,…xM)
……
yN=fN(x1,x2,…xM)
as can be seen from the above description, the N target values correspond to N functions, and each function may take all or part of the M feature values as input and 1 target value as output.
Further, the samples may be trained by using a preset algorithm, such as a supervised learning algorithm, to obtain the relationship function, that is, a prediction model, and as can be known from the above description, the prediction model may use a target value as an output value and a feature value as an input value.
It should be noted that the form of the prediction model can be selected according to the actual training requirement, such as a linear regression model (linear regression model), a logistic regression model (logistic regression model), and so on. The embodiment of the present specification does not limit the selection of the model and the specific training algorithm.
Based on the prediction model obtained by the above training, in an embodiment, the following may be implemented based on the prediction model: after receiving, by the input control, the basic configuration parameters, which are input by the user and are specific to the function control selected by the user, the selectable configuration parameters to be configured may be determined according to the prediction model, and it may be understood that, when determining the selectable configuration parameters to be configured, the input at least includes the basic configuration parameters, which are input by the user and are specific to the selected function control, and may further include other information, such as some user historical operation information, which is not limited in this specification.
Further, after determining the optional configuration parameters to be configured, the determined optional configuration parameters to be configured may be displayed on the configuration interface illustrated in fig. 6 for confirmation by the user. Of course, further manual modification is also possible if the user is not satisfied with the recommended parameter values.
As can be seen from the above description, in the technical scheme provided in this specification, a tangential flow data set is obtained from a historical tangential flow record, a tangential flow model training sample is generated according to the obtained tangential flow data set, the sample is trained by using a preset algorithm to obtain a prediction model, the prediction model may use a basic configuration parameter as an input value and a selectable configuration parameter as an output value, so that a corresponding selectable configuration parameter may be predicted subsequently according to the basic configuration parameter input by a user, and then a computer instruction for implementing a tangential flow process is generated, that is, a complete tangential flow process conforming to an actual demand of the user may be compiled through a simple operation of the user, thereby saving user operations, improving tangential flow efficiency, and improving user experience.
Corresponding to the above method embodiment, an embodiment of the present specification further provides a flow switching device, and referring to fig. 9, which is a block diagram of the flow switching device shown in an exemplary embodiment of the present specification, the flow switching device may include: a first output module 910, a flowchart generating module 920, an instruction generating module 930, and an instruction executing module 940.
The first output module 910 is configured to display and output at least one function control selectable by a user through a preset function interface, where each function control encapsulates one service flow related to a cut flow;
the flow chart generating module 920 is configured to determine a function control selected by a user, and obtain a visual tangential flow chart according to an execution sequence set by the user for the selected function control;
an instruction generating module 930, configured to generate a computer instruction for implementing the cut flow process according to the visualized cut flow flowchart;
an instruction execution module 940 for executing the computer instructions.
In an embodiment, the flowchart generating module 920 may include (not shown in fig. 9):
the instruction receiving submodule is used for receiving a dragging instruction of a user for at least one functional control;
and the flow chart output sub-module is used for displaying and outputting the at least one functional control on a preset flow arrangement interface based on the dragging instruction to obtain a visual tangential flow chart.
In an embodiment, the apparatus may further comprise (not shown in fig. 9):
the second output module is used for outputting a preset configuration interface to a user, and the configuration interface comprises at least one input control;
and the parameter receiving module is used for receiving the configuration parameters which are input by the user and aim at the functional control selected by the user through the input control.
In an embodiment, the configuration parameters may include: basic configuration parameters, the basic configuration parameters including at least one of:
the method comprises the following steps of flow cutting type, flow cutting path information, flow cutting process duration and the number of devices involved in the flow cutting process.
In one embodiment, the configuration parameters further include: optional configuration parameters, the optional configuration parameters including at least one of:
configuration parameters for a monitoring event, configuration parameters for a rollback event.
In an embodiment, the apparatus may further comprise (not shown in fig. 9):
the parameter determination module is used for determining optional configuration parameters to be configured according to a pre-trained prediction model;
and the parameter output module is used for displaying and outputting the determined optional configuration parameters to be configured on the configuration interface.
In an embodiment, the apparatus may further comprise (not shown in fig. 9):
a data set obtaining module, configured to obtain a cut-flow data set from a historical cut-flow record, where each piece of cut-flow data at least includes: basic configuration parameters and optional configuration parameters of the function control related to the flow switching process;
the sample acquisition module is used for generating a tangential flow model training sample according to the acquired tangential flow data set;
and the training module is used for training the sample by utilizing a preset algorithm to obtain the prediction model, and the prediction model takes the basic configuration parameters as input values and takes the optional configuration parameters as output values.
It should be understood that the first output module 910, the flowchart generating module 920, the instruction generating module 930, and the instruction executing module 940 may be configured in the flow switching apparatus at the same time as shown in fig. 9, or may be configured in the flow switching apparatus separately as four independent modules, and therefore the configuration shown in fig. 9 should not be construed as limiting the embodiment of the present specification.
In addition, the implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
An embodiment of the present specification further provides a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the foregoing traffic switching method when executing the program, and the method at least includes: displaying and outputting at least one function control which can be selected by a user through a preset function interface, wherein each function control is packaged with a business process related to cut flow; determining a function control selected by a user, and obtaining a visual tangential flow chart according to an execution sequence set by the user aiming at the selected function control; generating a computer instruction for realizing the flow cutting process according to the visual flow cutting flow diagram; the computer instructions are executed.
In an embodiment, the determining the function control selected by the user, and obtaining the visual tangential flow flowchart according to the execution sequence set by the user for the selected function control includes: receiving a dragging instruction of a user for at least one function control; and displaying and outputting the at least one function control on a preset flow arrangement interface based on the dragging instruction to obtain a visual tangential flow chart.
In an embodiment, after the determining the user-selected functionality control, the method further comprises: outputting a preset configuration interface to a user, wherein the configuration interface comprises at least one input control; and receiving configuration parameters input by a user and aiming at the functional control selected by the user through the input control.
In one embodiment, the configuration parameters include: basic configuration parameters, the basic configuration parameters including at least one of: the method comprises the following steps of flow cutting type, flow cutting path information, flow cutting process duration and the number of devices involved in the flow cutting process.
In one embodiment, the configuration parameters further include: optional configuration parameters, the optional configuration parameters including at least one of: configuration parameters for a monitoring event, configuration parameters for a rollback event.
In an embodiment, after receiving the user-input basic configuration parameters for the user-selected functionality control through the input control, the method further comprises: determining optional configuration parameters to be configured according to a pre-trained prediction model; and displaying and outputting the determined optional configuration parameters to be configured on the configuration interface.
In one embodiment, the process of training the predictive model includes: obtaining a cut flow data set from the historical cut flow record, wherein each cut flow data at least comprises: basic configuration parameters and optional configuration parameters of the function control related to the flow switching process; generating a tangential flow model training sample according to the acquired tangential flow data set; and training the sample by using a preset algorithm to obtain the prediction model, wherein the prediction model takes the basic configuration parameters as input values and takes the optional configuration parameters as output values.
Fig. 10 is a more specific hardware structure diagram of a computing device provided in an embodiment of the present specification, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The input/output/module may be configured as a component within the device (not shown in fig. 10) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
Communication interface 1040 is used to connect a communication module (not shown in fig. 10) to enable the device to interact with other devices for communication. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Embodiments of the present specification also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the foregoing traffic switching method. The method at least comprises the following steps: displaying and outputting at least one function control which can be selected by a user through a preset function interface, wherein each function control is packaged with a business process related to cut flow; determining a function control selected by a user, and obtaining a visual tangential flow chart according to an execution sequence set by the user aiming at the selected function control; generating a computer instruction for realizing the flow cutting process according to the visual flow cutting flow diagram; the computer instructions are executed.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
From the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present disclosure can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present disclosure. And part or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is only a specific embodiment of the embodiments of the present disclosure, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the embodiments of the present disclosure, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present disclosure.

Claims (15)

1. A method of traffic switching, the method comprising:
displaying and outputting at least one function control which can be selected by a user through a preset function interface, wherein each function control is packaged with a business process related to cut flow;
determining a functional control selected by a user, receiving basic configuration parameters input by the user and aiming at the functional control selected by the user, and determining selectable configuration parameters of the functional control selected by the user according to a pre-trained prediction model, wherein the prediction model takes the basic configuration parameters as input values and the selectable configuration parameters as output values, and obtains a visual tangential flow chart according to an execution sequence set by the user aiming at the selected functional control;
generating a computer instruction for realizing the flow cutting process according to the visual flow cutting flow diagram;
the computer instructions are executed.
2. The method of claim 1, wherein the determining the function control selected by the user and obtaining the visual tangential flow chart according to the execution sequence set by the user for the selected function control comprise:
receiving a dragging instruction of a user for at least one function control;
and displaying and outputting the at least one function control on a preset flow arrangement interface based on the dragging instruction to obtain a visual tangential flow chart.
3. The method of claim 1, after the determining a user-selected functionality control, the method further comprising:
and outputting a preset configuration interface to a user, wherein the configuration interface comprises at least one input control, and the basic configuration parameters input by the user and aiming at the functional control selected by the user are received through the input control.
4. The method of claim 3, the basic configuration parameters comprising at least one of:
the method comprises the following steps of flow cutting type, flow cutting path information, flow cutting process duration and the number of devices involved in the flow cutting process.
5. The method of claim 1, the selectable configuration parameters comprising at least one of:
configuration parameters for a monitoring event, configuration parameters for a rollback event.
6. The method of claim 5, after determining the selectable configuration parameters of the user-selected functionality control according to a pre-trained predictive model, the method further comprising:
and displaying and outputting the determined optional configuration parameters to be configured on the configuration interface.
7. The method of claim 6, wherein training the predictive model comprises:
obtaining a cut flow data set from the historical cut flow record, wherein each cut flow data at least comprises: basic configuration parameters and optional configuration parameters of the function control related to the flow switching process;
generating a tangential flow model training sample according to the acquired tangential flow data set;
and training the sample by using a preset algorithm to obtain the prediction model, wherein the prediction model takes the basic configuration parameters as input values and takes the optional configuration parameters as output values.
8. A traffic switching apparatus, the apparatus comprising:
the system comprises a first output module, a second output module and a third output module, wherein the first output module is used for displaying and outputting at least one function control which can be selected by a user through a preset function interface, and each function control is packaged with a service process related to cut flow;
the flow chart generation module is used for determining a function control selected by a user, receiving a basic configuration parameter input by the user and aiming at the function control selected by the user, and determining a selectable configuration parameter of the function control selected by the user according to a pre-trained prediction model, wherein the prediction model takes the basic configuration parameter as an input value and the selectable configuration parameter as an output value, and obtains a visual tangential flow chart according to an execution sequence set by the user aiming at the selected function control;
the instruction generating module is used for generating a computer instruction for realizing the flow cutting process according to the visual flow cutting flow diagram;
and the instruction execution module is used for executing the computer instructions.
9. The apparatus of claim 8, the flowchart generation module comprising:
the instruction receiving submodule is used for receiving a dragging instruction of a user for at least one functional control;
and the flow chart output sub-module is used for displaying and outputting the at least one functional control on a preset flow arrangement interface based on the dragging instruction to obtain a visual tangential flow chart.
10. The apparatus of claim 8, the apparatus further comprising:
and the second output module is used for outputting a preset configuration interface to a user, and the configuration interface comprises at least one input control so as to receive basic configuration parameters, which are input by the user and aim at the functional control selected by the user, through the input control.
11. The apparatus of claim 10, the basic configuration parameters comprising at least one of:
the method comprises the following steps of flow cutting type, flow cutting path information, flow cutting process duration and the number of devices involved in the flow cutting process.
12. The apparatus of claim 8, the selectable configuration parameters comprising at least one of:
configuration parameters for a monitoring event, configuration parameters for a rollback event.
13. The apparatus of claim 12, the apparatus further comprising:
the parameter determination module is used for determining optional configuration parameters to be configured according to a pre-trained prediction model;
and the parameter output module is used for displaying and outputting the determined optional configuration parameters to be configured on the configuration interface.
14. The apparatus of claim 13, the apparatus further comprising:
a data set obtaining module, configured to obtain a cut-flow data set from a historical cut-flow record, where each piece of cut-flow data at least includes: basic configuration parameters and optional configuration parameters of the function control related to the flow switching process;
the sample acquisition module is used for generating a tangential flow model training sample according to the acquired tangential flow data set;
and the training module is used for training the sample by utilizing a preset algorithm to obtain the prediction model, and the prediction model takes the basic configuration parameters as input values and takes the optional configuration parameters as output values.
15. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the program.
CN201810074864.6A 2018-01-25 2018-01-25 Flow switching method and device and computer equipment Active CN108459792B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201810074864.6A CN108459792B (en) 2018-01-25 2018-01-25 Flow switching method and device and computer equipment
TW107146160A TW201933830A (en) 2018-01-25 2018-12-20 Traffic switching method and device and computer equipment
PCT/CN2018/125198 WO2019144769A1 (en) 2018-01-25 2018-12-29 Traffic switching method and apparatus, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810074864.6A CN108459792B (en) 2018-01-25 2018-01-25 Flow switching method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN108459792A CN108459792A (en) 2018-08-28
CN108459792B true CN108459792B (en) 2020-04-07

Family

ID=63238902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810074864.6A Active CN108459792B (en) 2018-01-25 2018-01-25 Flow switching method and device and computer equipment

Country Status (3)

Country Link
CN (1) CN108459792B (en)
TW (1) TW201933830A (en)
WO (1) WO2019144769A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459792B (en) * 2018-01-25 2020-04-07 阿里巴巴集团控股有限公司 Flow switching method and device and computer equipment
CN109783859A (en) * 2018-12-13 2019-05-21 重庆金融资产交易所有限责任公司 Model building method, device and computer readable storage medium
CN111737372A (en) * 2019-03-19 2020-10-02 北京四维图新科技股份有限公司 Map data generation method and device
CN110503567B (en) * 2019-08-15 2023-08-22 中国平安财产保险股份有限公司 Data verification method, device, storage medium and apparatus
CN113065779B (en) * 2021-04-07 2023-08-11 网易(杭州)网络有限公司 Data processing method and device and electronic equipment
TWI814227B (en) * 2022-01-27 2023-09-01 國立高雄師範大學 Mehod for implementing library by using microservices architecture
CN114828124B (en) * 2022-05-13 2023-07-14 中国联合网络通信集团有限公司 Method and device for determining target base station

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755620A (en) * 2004-09-30 2006-04-05 微软公司 Workflow schedule authoring tool

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100251155A1 (en) * 2009-03-25 2010-09-30 Microsoft Corporation Placeholder activities and in-lining of code editors in workflow designer
CN108459792B (en) * 2018-01-25 2020-04-07 阿里巴巴集团控股有限公司 Flow switching method and device and computer equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755620A (en) * 2004-09-30 2006-04-05 微软公司 Workflow schedule authoring tool

Also Published As

Publication number Publication date
TW201933830A (en) 2019-08-16
WO2019144769A1 (en) 2019-08-01
CN108459792A (en) 2018-08-28

Similar Documents

Publication Publication Date Title
CN108459792B (en) Flow switching method and device and computer equipment
CN107451663B (en) Algorithm componentization, modeling method and device based on algorithm components and electronic equipment
US20130298110A1 (en) Software Visualization Using Code Coverage Information
CN109117141B (en) Method, device, electronic equipment and computer readable storage medium for simplifying programming
CN110502415B (en) Buried point setting method, device and equipment
CN112416318B (en) Micro-service development method and device, storage medium and electronic equipment
CN112214210A (en) Logistics business rule engine and configuration method, device, equipment and storage medium thereof
US9304838B1 (en) Scheduling and executing model components in response to un-modeled events detected during an execution of the model
US10824541B1 (en) System and method for test data fabrication
CN113254033A (en) Master disk file generation method and device, electronic equipment and storage medium
US9582270B2 (en) Effective feature location in large legacy systems
CN114185874A (en) Big data based modeling method and device, development framework and equipment
JP2020505710A (en) Methods and systems for verifying software programs
CN114328250A (en) Automatic self-checking method, medium and device for software system
CN114764296A (en) Machine learning model training method and device, electronic equipment and storage medium
CN111767316A (en) Target task processing method and device and electronic equipment
CN112328225A (en) Page operation method and operation system thereof
US20200125483A1 (en) Systems and methods for testing a customer environment
EP3248104A1 (en) Method and device for automatic testing
CN111242731B (en) Service execution method and device
CN114237807B (en) Associated control interaction method and device
CN110058893B (en) Application control display method and device
CN111191795A (en) Method, device and system for training machine learning model
CN113835680A (en) Application program generation method and device, electronic equipment and computer storage medium
CN117555533B (en) Code generation method, electronic device 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1259096

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201021

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201021

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240206

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: Cayman Islands

TR01 Transfer of patent right