CN113946353A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113946353A
CN113946353A CN202111164009.2A CN202111164009A CN113946353A CN 113946353 A CN113946353 A CN 113946353A CN 202111164009 A CN202111164009 A CN 202111164009A CN 113946353 A CN113946353 A CN 113946353A
Authority
CN
China
Prior art keywords
page data
new version
version
expected
old version
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
CN202111164009.2A
Other languages
Chinese (zh)
Other versions
CN113946353B (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 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information 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 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN202111164009.2A priority Critical patent/CN113946353B/en
Publication of CN113946353A publication Critical patent/CN113946353A/en
Application granted granted Critical
Publication of CN113946353B publication Critical patent/CN113946353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention provides a data processing method, a data processing device, electronic equipment and a storage medium. And providing the new version page data or the old version page data for the front-end equipment according to the expected shunting proportion between the new version page data and the old version page data. And acquiring the average error times of the front-end equipment operating the new version of the page data and the average white screen duration of the new version, and the average error times of the old version of the page data and the average white screen duration of the old version. And adjusting the expected shunting proportion according to the expected shunting proportion, the actual shunting proportion between the new version page data and the old version page data, the average error times of the new version, the average white screen time of the new version, the average error times of the old version and the average white screen time of the old version. By the method and the device, when the page data are upgraded by using a gray scale upgrading mode for the application program, monitoring of the online data and judgment of whether to adjust the expected shunting proportion can be automatically executed by the server, so that the labor cost can be reduced.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
Sometimes, a developer develops new version page data for an application program in a server of the application program, and then upgrades the page data for the application program in the server according to the new version page data, so that when the application program requests the page data from the server, the server can provide the new version page data to the application program, so that the application program can obtain and use the new version page data.
However, as the number of users of the application program is larger and larger, when the page data is upgraded for the application program in the server, the influence of the new version of the page data on the users needs to be considered. Therefore, a gray scale upgrading mode is generally adopted when the page data is upgraded for the application program in the server, namely, a worker controls the server to provide new version page data for a part of users, provides old version page data for other users, then manually observes the stability of the new version page data, and after the new version page data is stable, manually controls the server to provide the new version page data for all the users.
However, the inventor finds that in the above gray scale upgrading mode, the whole process of staff involvement is required, which results in high labor cost, and secondly, there is a risk of human errors, thereby increasing the risk of upgrading problems caused by human errors.
Disclosure of Invention
The application discloses a data processing method, a data processing device, electronic equipment and a storage medium.
In a first aspect, the present application shows a data processing method, comprising:
according to an expected shunting proportion between the new version page data and the old version page data of the application program, providing the new version page data or the old version page data for front-end equipment;
acquiring the average error times of the new version with errors and the average white screen duration of the new version with white screen during the operation of the new version page data by the front-end equipment;
acquiring the average error times of the old version with errors and the average white screen duration of the old version with white screen during the operation of the page data of the old version by the front-end equipment;
acquiring an actual shunting proportion between the new version page data and the old version page data according to the times of providing the new version page data and the old version page data to the front-end equipment;
and adjusting the expected shunting proportion at least according to the expected shunting proportion, the actual shunting proportion, the average error times of the new version, the average white screen time of the new version, the average error times of the old version and the average white screen time of the old version.
In an optional implementation manner, the adjusting the expected splitting ratio according to at least the expected splitting ratio, the actual splitting ratio, the average error times of the new version, the average white screen duration of the new version, the average error times of the old version, and the average white screen duration of the old version includes:
acquiring the error rate of the new version and the old version according to the average error times of the new version and the old version;
acquiring the ratio of the new version white screen duration to the old version white screen duration according to the new version average white screen duration and the old version average white screen duration;
obtaining an expected actual shunting ratio according to the expected shunting ratio and the actual shunting ratio;
and adjusting the expected shunting proportion according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunting rate.
In an optional implementation manner, the adjusting the expected splitting ratio according to the error ratio of the new and old versions, the white screen duration ratio of the new and old versions, and the expected actual splitting ratio includes:
under the conditions that the error rate of the new version and the old version is smaller than a first preset rate, the white screen duration rate of the new version and the old version is smaller than a second preset rate and the expected actual shunt rate is within a preset rate interval, improving the expected shunt ratio;
alternatively, the first and second electrodes may be,
and reducing the expected shunt ratio under the condition that the error ratio of the new version to the old version is greater than or equal to a first preset ratio, the white screen duration ratio of the new version to the old version is greater than or equal to a second preset ratio or the expected actual shunt ratio is outside a preset ratio interval.
In an alternative implementation, the increasing the expected split ratio includes:
determining the improvement range of the expected shunt proportion according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate;
and increasing the expected flow dividing ratio according to the increase amplitude.
In an optional implementation manner, the determining, according to the error rate of the new and old versions, the white screen duration rate of the new and old versions, and the expected actual split ratio, a magnitude of increase of the expected split ratio includes:
obtaining an amplitude coefficient according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate;
searching for an increased amplitude corresponding to the amplitude coefficient interval in which the amplitude coefficient is located in the corresponding relation between the amplitude coefficient interval and the increased amplitude;
wherein, the higher the amplitude coefficient interval in the corresponding relationship, the higher the corresponding improvement amplitude, and the lower the corresponding improvement amplitude of the lower amplitude coefficient interval.
In a second aspect, the present application shows a data processing apparatus comprising:
the system comprises a providing module, a processing module and a display module, wherein the providing module is used for providing the new version page data or the old version page data for the front-end equipment according to the expected shunting proportion between the new version page data and the old version page data of the application program;
the first obtaining module is used for obtaining the average error times of the new version and the average white screen duration of the new version with white screen during the process that the front-end equipment runs the data of the new version;
a second obtaining module, configured to obtain an average number of old version errors that occur in an error during running of the old version page data by the front-end device and an average white screen duration of the old version that occurs in a white screen;
a third obtaining module, configured to obtain an actual splitting ratio between the new version page data and the old version page data according to the number of times of providing the new version page data and the number of times of providing the old version page data to the front-end device;
and the adjusting module is used for adjusting the expected shunt proportion at least according to the expected shunt proportion, the actual shunt proportion, the average error times of the new version, the average white screen duration of the new version, the average error times of the old version and the average white screen duration of the old version.
In an optional implementation manner, the adjusting module includes:
a first obtaining unit, configured to obtain an error rate of the new version and the old version according to the average error times of the new version and the old version;
a second obtaining unit, configured to obtain a ratio of the new version to the old version according to the new version average white screen duration and the old version average white screen duration;
a third obtaining unit, configured to obtain an expected actual split ratio according to the expected split ratio and the actual split ratio;
and the adjusting unit is used for adjusting the expected shunting proportion according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunting rate.
In an optional implementation manner, the adjusting unit includes:
the increasing subunit is configured to increase the expected splitting ratio when the error rate of the new and old versions is smaller than a first preset rate, the white screen duration rate of the new and old versions is smaller than a second preset rate, and the expected actual splitting ratio is within a preset ratio interval;
alternatively, the first and second electrodes may be,
and the reducing subunit is configured to reduce the expected splitting ratio when the error ratio of the new version to the old version is greater than or equal to a first preset ratio, the white screen duration ratio of the new version to the old version is greater than or equal to a second preset ratio, or the expected actual splitting ratio is outside a preset ratio interval.
In an optional implementation manner, the boosting subunit is specifically configured to: determining the improvement range of the expected shunt proportion according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate; and increasing the expected flow dividing ratio according to the increase amplitude.
In an optional implementation manner, the boosting subunit is specifically configured to: obtaining an amplitude coefficient according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate; searching for an increased amplitude corresponding to the amplitude coefficient interval in which the amplitude coefficient is located in the corresponding relation between the amplitude coefficient interval and the increased amplitude; wherein, the higher the amplitude coefficient interval in the corresponding relationship, the higher the corresponding improvement amplitude, and the lower the corresponding improvement amplitude of the lower amplitude coefficient interval.
In a third aspect, the present application shows an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the data processing method of the first aspect.
In a fourth aspect, the present application shows a non-transitory computer readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method of the first aspect.
In a fifth aspect, the present application shows a computer program product, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method according to the first aspect.
The technical scheme provided by the application can comprise the following beneficial effects:
in the application, an expected splitting ratio between the new version page data and the old version page data of the application program is obtained. And under the condition that the page data of the application program needs to be provided for the front-end equipment, providing new version page data or old version page data for the front-end equipment according to the expected shunting proportion. And acquiring the average error times of the new version and the average white screen duration of the new version with white screen during the operation of the new version page data by the front-end equipment. And acquiring the average error times of the old version with errors and the average white screen duration of the old version with white screen during the operation of the page data of the old version by the front-end equipment. And acquiring the actual shunting proportion between the new version page data and the old version page data according to the times of providing the new version page data and the old version page data to the front-end equipment. And adjusting the expected shunting proportion at least according to the expected shunting proportion, the actual shunting proportion, the average error times of the new version, the average white screen duration of the new version, the average error times of the old version and the average white screen duration of the old version.
Through the application, when the page data is upgraded by using a gray scale upgrading mode for the application program, monitoring of the online data and judgment of whether to adjust the expected shunting proportion can be automatically executed by the server side, and the participation of workers can be avoided, so that the labor cost can be reduced, and the risk of upgrading problems caused by human errors can be reduced.
Drawings
FIG. 1 is a flow chart of the steps of a data processing method of the present application.
FIG. 2 is a flow chart of the steps of a data processing method of the present application.
FIG. 3 is a flow chart of the steps of a data processing method of the present application.
Fig. 4 is a block diagram of a data processing apparatus according to the present application.
FIG. 5 is a block diagram of an electronic device of the present application.
FIG. 6 is a block diagram of an electronic device of the present application.
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 some, not all, embodiments of the present invention. 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.
Referring to fig. 1, a flowchart illustrating steps of a data processing method according to the present application is shown, where the method is applied to a server, and the method may specifically include the following steps:
in step S101, an expected split ratio between the new version page data and the old version page data of the application program is obtained.
In the application, the server has the new version page data and the old version page data of the application program, and when the server needs to provide the page data of the application program to the front-end device, the server can provide the new version page data or the new version page data to the front-end device.
Specifically, whether to provide the new version page data or the old version page data to the front-end device may be determined according to an expected splitting ratio between the new version page data and the old version page data.
One way to understand the expected split ratio between the new version page data and the old version page data is to: a ratio of the expected number of times the new version of page data is provided to the expected number of times the old version of page data is provided.
For example, in one example, assuming that the predicted number of times the new version page data is provided is 10% and the predicted number of times the old version page data is provided is 90%, the expected split ratio between the new version page data and the old version page data is 1/9.
In other words, in the case where the server provides the front-end device with the page data of the application program 100 times, 10 times of providing the new version page data are expected, and 90 times of providing the old version page data are expected.
In step S102, when the page data of the application program needs to be provided to the front-end device, the new version page data or the old version page data is provided to the front-end device according to the expected splitting ratio.
When the server provides the page data of the application program for the front-end device, the server may provide one page data of the application program for the front-end device, or sequentially provide a plurality of different page data of the application program for the front-end device according to actual conditions, and different pages may be rendered by using the different page data.
For any page data, when the server needs to provide the page data to the front-end device, whether to provide a new version of the page data or an old version of the page data to the front-end device may be determined according to an expected splitting ratio.
For example, in the above example, the expected splitting ratio between the new version page data and the old version page data is 1/9, the probability of providing the new version page data to the front-end device is 10%, and the probability of providing the old version page data to the front-end device is 90%.
100 different random numbers may be set, where 10 random numbers correspond to the new version page data, and the remaining 90 random numbers correspond to the old version page data, so that one random number may be randomly selected from the 100 random numbers, if the selected random number corresponds to the new version page data, the new version page data is provided to the front-end device, and if the selected random number corresponds to the old version page data, the old version page data is provided to the front-end device. Of course, the present invention may be implemented in other ways, and the present application is not limited to the specific way.
In step S103, the average error times of the new version and the average white screen duration of the new version with white screen occurring in the process of running the new version page data by the front-end device are obtained.
In an embodiment of the present application, for any new version page data provided by the server to the front-end device, the front-end device may run the new version page data by means of the application program.
In the case of running the new version page data, an error may occur, for example, in the case of a single error, the application may throw an "onerror" event or an "unhandredreject" event, and the number of "onerror" events or the number of "unhandredreject" events in the process of running the new version page data may be collected by using a try catch function in the application as the number of errors in the process of running the new version page data.
The front-end device may sequentially run different new version page data (e.g., new version page data of different pages, etc.), and the front-end device may count the error times of errors occurring in the process of running each new version page data.
If there are multiple front-end devices, each front-end device can count the error times of the error respectively occurring in the process of running each new version page data.
For any front-end device, the front-end device may upload, to the server, the number of errors that occur in the process of running each new version page data by the front-end device and the number of running new version page data, and the server receives the number of errors that occur in the process of running each new version page data by the front-end device and the number of running new version page data.
The same is true for each of the other head-end devices.
The server can sum error times of errors respectively occurring in the process of running each new version page data by each front-end device to obtain an error time sum, then sum the number of the new version page data respectively running by each front-end device to obtain a running number sum, and then calculate the ratio of the error time sum to the running number sum to be used as the average error time of the new version of the errors occurring in the process of running the new version page data by the front-end device.
In another embodiment of the present application, for any new version page data provided by the server to the front-end device, the front-end device may run the new version page data by means of the application program.
In the case of running the new version page data, a white screen duration may result.
The front-end equipment is the starting time of the white screen duration when the application program is used for starting to render the new version page data, the interface of the application program is empty and is in default white, the time when the first element appears on the interface of the application program is the ending time of the white screen duration, and the distance between the ending time and the starting time is the white screen duration.
The white screen duration of the white screen occurring during the running of the new version page data can be collected using a performance.
The front-end device can successively run different new version page data (such as new version page data of different pages), and the front-end device can count the white screen duration of the white screen during the running of each new version page data.
If there are multiple front-end devices, each front-end device can count the white screen duration of the white screen during the process of running each new version page data.
For any front-end device, the front-end device can upload, to the server, the white screen duration of the white screen and the number of the new version page data that are respectively generated in the process of running each new version page data by the front-end device, and the server receives the white screen duration of the white screen and the number of the new version page data that are respectively generated in the process of running each new version page data by the front-end device.
The same is true for each of the other head-end devices.
The server can sum the white screen durations of the white screens respectively appearing in the process that each front-end device operates each new version page data to obtain a white screen duration sum, then sum the number of the new version page data respectively operated by each front-end device to obtain an operation number sum, and then calculate the ratio between the white screen duration sum and the operation number sum to be used as the average white screen duration of the new version of the white screens appearing in the process that the front-end device operates the new version page data.
The actions of the front-end device statistics and uploading data to the server may be performed by an SDK (Software Development Kit) of an application integrated in the front-end device.
The front-end device can upload data to the server based on a fetch interface or an XMLHttpRequest interface.
In step S104, the average error times of the old version and the average white screen duration of the old version in which the front-end device has errors during the operation of the old version page data are obtained.
In an embodiment of the present application, for any one of the old version page data provided by the server to the front-end device, the front-end device may run the old version page data by means of the application program.
In the case of running the old version of page data, an error may occur, for example, in the case of a single error, the application may throw an "oneror" event or an "unhandredreject" event, and the number of "oneror" events or the number of "unhandredreject" events in the process of running the old version of page data may be collected as the number of errors in the process of running the old version of page data by using a try catch function in the application.
The front-end device may sequentially run different old version page data (e.g., old version page data of different pages, etc.), and the front-end device may count the error times of errors respectively occurring in the process of running each old version page data.
If there are multiple front-end devices, each front-end device can count the error times of the error respectively occurring in the process of operating each old version of page data.
For any front-end device, the front-end device may upload, to the server, the number of errors that occur in the process of running each old version of page data of the front-end device and the number of running old version of page data, and the server receives the number of errors that occur in the process of running each old version of page data of the front-end device and the number of running old version of page data.
The same is true for each of the other head-end devices.
The front-end equipment can be based on a fetch interface or an XMLHttpRequest interface and the like when uploading data to the server based on the application program.
The server can sum error times of errors respectively occurring in the process of operating each old version of page data by each front-end device to obtain an error time sum, then sum the number of the old version of page data respectively operating by each front-end device to obtain an operating number sum, and then calculate the ratio of the error time sum to the operating number sum to be used as the average error time of the old version of the page data of the front-end device occurring errors in the process of operating the old version of page data.
In another embodiment of the present application, for any one of the old version page data provided by the server to the front-end device, the front-end device may run the old version page data by means of the application program.
In the case of running this old version of page data, a white screen duration may result.
The front-end equipment uses an application program to begin rendering the old version page data at the starting time of the white screen duration, the interface of the application program is empty and is in default white, the time when the first element appears on the interface of the application program is the ending time of the white screen duration, and the distance between the ending time and the starting time is the white screen duration.
The white screen duration for which a white screen occurs during running of the old version of page data may be collected using a performance.
The front-end device can successively run different old version page data (for example, the old version page data of different pages, etc.), and the front-end device can count the white screen duration of the white screen during the process of running each old version page data.
If there are multiple front-end devices, each front-end device can count the white screen duration of the white screen during the process of running each old version of page data.
For any front-end device, the front-end device may upload, to the server, a white screen duration in which a white screen appears in a process in which the front-end device operates each old version page data and a quantity of the operated old version page data, respectively, and the server receives the white screen duration in which the white screen appears in the process in which the front-end device operates each old version page data and the quantity of the operated old version page data, respectively.
The same is true for each of the other head-end devices.
The server can sum the white screen durations of white screens respectively appearing in the process that each front-end device operates each old version page data to obtain a white screen duration sum, then sum the number of the old version page data respectively operated by each front-end device to obtain an operation number sum, and then calculate the ratio of the white screen duration sum to the operation number sum to be used as the average white screen duration of the old version of the front-end device appearing in the process of operating the old version page data.
The actions of the front-end device statistics data and uploading data to the server can be performed by the SDK of the application integrated in the front-end device.
The front-end device can upload data to the server based on a fetch interface or an XMLHttpRequest interface.
In step S105, an actual splitting ratio between the new version page data and the old version page data is obtained according to the number of times the new version page data is provided to the front-end device and the number of times the old version page data is provided.
The actual split ratio between the new version page data and the old version page data may include: the ratio of the number of times of providing the new version page data to the at least one front-end device to the number of times of providing the old version page data to the at least one front-end device, and the like.
Each time the server provides the new version page data to the front-end device, the server may add a value of 1 to the recorded number of times of providing the new version page data, and each time the server provides the old version page data to the front-end device, the server may add a value of 1 to the recorded number of times of providing the old version page data.
The recorded number of times of providing the new version page data and the recorded number of times of providing the old version page data may be acquired, and then a ratio between the number of times of providing the new version page data and the number of times of providing the old version page data may be calculated and used as an actual split ratio.
For example, in one example, assuming that the actual number of times the new version page data is provided is 20 and the actual number of times the old version page data is provided is 1000, the actual split ratio between the new version page data and the old version page data is 2%.
The server-side stored data can be stored data using a DruidDruid (quasi-) real-time analysis statistics database or a ClickHouse real-time storage database.
In the present application, steps S103 to S105 may be executed in parallel, or executed sequentially, and in the case of executing sequentially, the execution sequence between steps S103 to S105 is not limited in the present application.
In step S106, the expected shunt ratio is adjusted at least according to the expected shunt ratio, the actual shunt ratio, the average error times of the new version, the average white screen duration of the new version, the average error times of the old version, and the average white screen duration of the old version.
This step can be referred to the embodiment shown in fig. 2, and will not be described in detail here.
In the application, the expected shunt ratio, the actual shunt ratio, the average error times of the new version, the average white screen duration of the new version, the average error times of the old version, and the average white screen duration of the old version may be data in the same time window, the duration of the time window includes 1 minute, 2 minutes, 3 minutes, and the like, and the specific duration of the time window is not limited in the application.
In the application, the full online of the new version page data can be completed until the new version page data occupies the whole expected shunt proportion (that is, only the new version page data is provided and the old version page data is not provided any more), so that the task of replacing the old version page data with the new version page data is completed, and the page data in the application program is upgraded.
In the application, an expected splitting ratio between the new version page data and the old version page data of the application program is obtained. And under the condition that the page data of the application program needs to be provided for the front-end equipment, providing new version page data or old version page data for the front-end equipment according to the expected shunting proportion. And acquiring the average error times of the new version and the average white screen duration of the new version with white screen during the operation of the new version page data by the front-end equipment. And acquiring the average error times of the old version with errors and the average white screen duration of the old version with white screen during the operation of the page data of the old version by the front-end equipment. And acquiring the actual shunting proportion between the new version page data and the old version page data according to the times of providing the new version page data and the old version page data to the front-end equipment. And adjusting the expected shunting proportion at least according to the expected shunting proportion, the actual shunting proportion, the average error times of the new version, the average white screen duration of the new version, the average error times of the old version and the average white screen duration of the old version.
Through the application, when the page data is upgraded by using a gray scale upgrading mode for the application program, monitoring of the online data and judgment of whether to adjust the expected shunting proportion can be automatically executed by the server side, and the participation of workers can be avoided, so that the labor cost can be reduced, and the risk of upgrading problems caused by human errors can be reduced.
In one embodiment of the present application, referring to fig. 2, step S106 includes:
in step S201, the error rate of the new version and the old version is obtained according to the average error times of the new version and the old version.
In the application, the ratio of the average error times of the new version to the average error times of the old version can be calculated to obtain the error ratio of the new version to the old version.
In step S202, a ratio of the new version to the old version is obtained according to the new version average white screen duration and the old version average white screen duration.
In the application, the ratio of the average white screen duration of the new version to the average white screen duration of the old version can be calculated to obtain the white screen duration ratio of the new version to the old version.
In step S203, an expected actual split ratio is obtained from the expected split ratio and the actual split ratio.
In the present application, a ratio between the expected split ratio and the actual split ratio may be calculated to obtain the expected actual split ratio.
In the present application, steps S201 to S203 may be executed in parallel, or executed sequentially, and under the condition that steps S201 to S203 are executed sequentially, the execution sequence of steps S201 to S203 is not limited in the present application.
In step S204, an expected shunting proportion is adjusted according to the error rate of the new and old versions, the white screen duration rate of the new and old versions, and the expected actual shunting ratio.
In an embodiment of the present application, in the case that the error rate of the new and old versions is smaller than the first preset rate, the white screen duration rate of the new and old versions is smaller than the second preset rate, and the expected actual splitting ratio is within the preset ratio interval, the expected splitting ratio may be increased.
Or, in another embodiment of the present application, in the case that the error rate of the old and new versions is greater than or equal to the first preset rate, the white screen duration rate of the old and new versions is greater than or equal to the second preset rate, or the expected actual split ratio is outside the preset ratio interval, the expected split ratio is reduced.
The first preset ratio, the second preset ratio and the preset ratio interval can be determined according to actual conditions, and the first preset ratio, the second preset ratio and the preset ratio interval are not limited in the application.
In one example, the first preset ratio may include 1.1, 1.15, 1.2, or the like.
The second preset ratio may comprise 1.1, 1.15 or 1.2 etc.
The left end point of the preset ratio interval may include 0.9, 0.93, or 0.95, etc., and the right end point of the preset ratio interval may include 1.05, 1.07, or 1.1, etc.
In one embodiment of the present application, referring to fig. 3, when the expected split ratio is increased, the method may be implemented by the following processes, including:
in step S301, the increase of the expected shunt ratio is determined according to the error ratio of the new version and the old version, the white screen duration ratio of the new version and the old version, and the expected actual shunt ratio.
Wherein, this step can be realized through the following process, including:
3031. and obtaining the amplitude coefficient according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate.
In the application, under the condition that the error rate of the old version and the new version is lower, the number of errors occurring in the process of running the old version page data by the front-end device is not significantly increased relative to the number of errors occurring in the process of running the new version page data by the front-end device, that is, the number of errors occurring in the process of running the new version page data by the front-end device is tolerable. Therefore, the deviation of the new version page data to the normal can be shown, and under the condition that the error rate of the new version and the old version is lower, the deviation of the new version page data to the normal is higher, and the proportion of the new version page data can be increased more.
And under the condition that the error rate of the new version and the old version is higher, the number of errors occurring in the process of operating the page data of the old version by the front-end equipment is obviously increased compared with the number of errors occurring in the process of operating the page data of the new version by the front-end equipment, namely, the number of errors occurring in the process of operating the page data of the new version by the front-end equipment cannot be tolerated. Therefore, the deviation of the new version page data to be abnormal can be shown, and the new version page data is more abnormal under the condition that the error rate of the new version and the old version is higher.
In the application, under the condition that the ratio of the white screen duration of the new version to the white screen duration of the old version is low, the white screen duration of the white screen occurring in the process of running the page data of the old version by the front-end device is described, and the white screen duration of the white screen occurring in the process of running the page data of the new version by the front-end device is not obviously improved, that is, the white screen duration of the white screen occurring in the process of running the page data of the new version by the front-end device can be tolerated. Therefore, the new version page data is biased to be normal, and under the condition that the ratio of the white screen duration of the new version to the old version is lower, the new version page data is biased to be normal, and the proportion of the new version page data can be increased.
And under the condition that the ratio of the white screen duration of the new version to the white screen duration of the old version is higher, the white screen duration of the white screen is shown in the process that the front-end equipment operates the page data of the old version and is obviously improved in the process that the front-end equipment operates the page data of the new version, namely, the white screen duration of the white screen in the process that the front-end equipment operates the page data of the new version cannot be tolerated. Therefore, the deviation of the new version page data to be abnormal can be shown, and the deviation of the new version page data to be abnormal is higher under the condition that the ratio of the white screen duration of the new version to the white screen duration of the old version is higher.
In addition, statistics shows that the difference between the "expected splitting ratio between the new version page data and the old version page data of the application" and the "actual splitting ratio between the new version page data and the old version page data of the application" is often small under the condition that the new version page data has no significant problem.
And, in the case where a significant problem occurs in the new version page data, the difference between the "expected split ratio between the new version page data and the old version page data of the application" and the "actual split ratio between the new version page data and the old version page data of the application" is often large.
Therefore, if the difference between the "expected splitting ratio between the new version page data and the old version page data of the application" and the "actual splitting ratio between the new version page data and the old version page data of the application" is small, it is often said that the new version page data has no significant problem, and the new version page data is biased to be normal, and in the case that the difference between the "expected splitting ratio between the new version page data and the old version page data of the application" and the "actual splitting ratio between the new version page data and the old version page data of the application" is smaller, the new version page data is biased to be normal, and the ratio of the new version page data can be increased more.
And if the difference between the expected split ratio between the new version page data and the old version page data of the application program and the actual split ratio between the new version page data and the old version page data of the application program is large, the major problem of the new version page data is often shown, the deviation of the new version page data to be abnormal can be shown, and the deviation of the new version page data to be abnormal is better under the condition that the difference between the expected split ratio between the new version page data and the old version page data of the application program and the actual split ratio between the new version page data and the old version page data of the application program is larger.
Therefore, when the amplitude coefficient is obtained, the error rate of the new version and the old version, the white screen duration rate of the new version and the old version, the expected actual shunt ratio and the like can be used.
The lower the error ratio of the new version and the old version is, the higher the increase amplitude of the expected shunt ratio is, the lower the white screen duration ratio of the new version and the old version is, the higher the increase amplitude of the expected shunt ratio is, and the smaller the distance between the expected actual shunt ratio and the value of 1 is, the higher the increase amplitude of the expected shunt ratio is.
And the higher the error ratio of the new version and the old version is, the lower the improvement amplitude of the expected shunt ratio is, the higher the white screen duration ratio of the new version and the old version is, the lower the improvement amplitude of the expected shunt ratio is, the larger the distance between the expected actual shunt ratio and the value of 1 is, the lower the improvement amplitude of the expected shunt ratio is.
Thus, when obtaining the amplitude coefficient, the difference between the expected actual shunt ratio and the value 1 can be calculated, the product of the difference, the error ratio of the new version and the old version and the white screen duration ratio of the new version and the old version can be calculated, and the reciprocal of the product can be calculated and used as the amplitude coefficient.
Of course, the amplitude coefficient may also be calculated in other manners according to the error ratio of the new version and the old version, the white screen duration ratio of the new version and the old version, and the expected actual split ratio, and the specific calculation manner for calculating the amplitude coefficient is not limited in the present application.
3032. And searching for the improvement amplitude corresponding to the amplitude coefficient interval in which the amplitude coefficient is positioned in the corresponding relation between the amplitude coefficient interval and the improvement amplitude.
In the application, a plurality of different amplitude coefficient intervals can be set in advance, then different increasing amplitudes are set for each amplitude coefficient interval, and then each amplitude coefficient interval and the increasing amplitude corresponding to the amplitude coefficient interval are respectively stored in the corresponding relation between the amplitude coefficient interval and the increasing amplitude.
In the correspondence relationship between the amplitude coefficient section and the increase amplitude, a higher amplitude coefficient section corresponds to a higher increase amplitude, and a lower amplitude coefficient section corresponds to a lower increase amplitude.
In step S302, the desired split ratio is increased according to the increase magnitude.
The expected split ratio between the new version page data and the old version page data is a ratio of the expected number of times the new version page data is expected to be served to the expected number of times the old version page data is expected to be served.
In the case where the estimated offered time ratio of the new version page data is increased, the estimated offered time ratio of the old version page data is decreased accordingly.
The sum of the increased amplitude and the expected provided times ratio of the new version page data and the difference between the expected provided times ratio of the old version page data and the increased amplitude can be calculated, and then the ratio of the sum to the difference can be calculated and used as the increased expected shunt ratio.
According to the method and the device, the improvement amplitude of the expected shunting proportion can be determined in real time according to online upgrading data (such as the error rate of a new version and an old version, the white screen duration rate of the new version and the old version, the expected actual shunting rate and the like), so that under the condition that the new version page data is more normal, if the new version page data is more normal, the page data of the application program can be upgraded into the new version page data as soon as possible, and under the condition that the new version page data is more normal, if the new version page data is not more normal, the page data of the application program can be stably upgraded into the new version page data, and the occurrence of major risks is avoided.
In addition, when the expected flow splitting ratio is reduced in another embodiment of the present application, reference may be made to the method of the embodiment shown in fig. 3, which is not described in detail herein.
If the expected shunt ratio is to be reduced, the error ratio of the new version and the old version is greater than or equal to a first preset ratio, the white screen duration ratio of the new version and the old version is greater than or equal to a second preset ratio, or the expected actual shunt ratio is outside a preset ratio interval.
If the error rate of the new version and the old version is greater than or equal to a first preset rate, the white screen duration rate of the new version and the old version is greater than or equal to a second preset rate or the expected actual splitting rate is outside a preset rate interval, a large problem usually occurs to the new version page data, the expected splitting rate can be improved only if the new version page data needs to be repaired in time, otherwise, the expected splitting rate cannot be improved, and if the expected splitting rate is forcibly improved under the condition, the use experience of a large number of users is possibly reduced.
Therefore, in order to repair the new version page data in time, relevant information that the error ratio of the new version to the old version is greater than or equal to a first preset ratio, the white screen duration ratio of the new version to the old version is greater than or equal to a second preset ratio, or the expected actual splitting ratio is outside a preset ratio interval is recorded in a preset file in the server, so that a worker can check the relevant information that the error ratio of the new version to the old version is greater than or equal to the first preset ratio, the white screen duration ratio of the new version to the old version is greater than or equal to the second preset ratio, or the expected actual splitting ratio is outside the preset ratio interval in the preset file when needed, and further can know that the new version page data has a big problem and needs to be repaired in time.
Or, in an embodiment of the present application, the related information that the error ratio of the new version and the old version is greater than or equal to the first preset ratio, the white screen duration ratio of the new version and the old version is greater than or equal to the second preset ratio, or the expected actual split ratio is outside the preset ratio interval may also be sent to the relevant staff through an email, a short message, or a PUSH message or any other available manner, so that the staff can view the related information that the error ratio of the new version and the old version is greater than or equal to the first preset ratio, the white screen duration ratio of the new version and the old version is greater than or equal to the second preset ratio, or the expected actual split ratio is outside the preset ratio interval, and further can know that the new version page data has a big problem and needs to be repaired in time.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary and that no action is necessarily required in this application.
Referring to fig. 4, a block diagram of a data processing apparatus according to the present application is shown, and the apparatus is applied to a client, and specifically includes the following modules:
the providing module 11 is configured to provide the new version page data or the old version page data for the front-end device according to an expected split ratio between the new version page data and the old version page data of the application program;
the first obtaining module 12 is configured to obtain an average error frequency of the new version in which an error occurs during the operation of the new version page data by the front-end device and an average white screen duration of the new version in which a white screen occurs;
a second obtaining module 13, configured to obtain an average number of old version errors that occur in the process of running the old version page data by the front-end device and an average white screen duration of the old version that occurs a white screen;
a third obtaining module 14, configured to obtain an actual splitting ratio between the new version page data and the old version page data according to the number of times of providing the new version page data and the number of times of providing the old version page data to the front-end device;
an adjusting module 15, configured to adjust the expected shunt ratio at least according to the expected shunt ratio, the actual shunt ratio, the average error times of the new version, the average white screen duration of the new version, the average error times of the old version, and the average white screen duration of the old version.
In an optional implementation manner, the adjusting module includes:
a first obtaining unit, configured to obtain an error rate of the new version and the old version according to the average error times of the new version and the old version;
a second obtaining unit, configured to obtain a ratio of the new version to the old version according to the new version average white screen duration and the old version average white screen duration;
a third obtaining unit, configured to obtain an expected actual split ratio according to the expected split ratio and the actual split ratio;
and the adjusting unit is used for adjusting the expected shunting proportion according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunting rate.
In an optional implementation manner, the adjusting unit includes:
the increasing subunit is configured to increase the expected splitting ratio when the error rate of the new and old versions is smaller than a first preset rate, the white screen duration rate of the new and old versions is smaller than a second preset rate, and the expected actual splitting ratio is within a preset ratio interval;
alternatively, the first and second electrodes may be,
and the reducing subunit is configured to reduce the expected splitting ratio when the error ratio of the new version to the old version is greater than or equal to a first preset ratio, the white screen duration ratio of the new version to the old version is greater than or equal to a second preset ratio, or the expected actual splitting ratio is outside a preset ratio interval.
In an optional implementation manner, the boosting subunit is specifically configured to: determining the improvement range of the expected shunt proportion according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate; and increasing the expected flow dividing ratio according to the increase amplitude.
In an optional implementation manner, the boosting subunit is specifically configured to: obtaining an amplitude coefficient according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate; searching for an increased amplitude corresponding to the amplitude coefficient interval in which the amplitude coefficient is located in the corresponding relation between the amplitude coefficient interval and the increased amplitude; wherein, the higher the amplitude coefficient interval in the corresponding relationship, the higher the corresponding improvement amplitude, and the lower the corresponding improvement amplitude of the lower amplitude coefficient interval.
In the application, an expected splitting ratio between the new version page data and the old version page data of the application program is obtained. And under the condition that the page data of the application program needs to be provided for the front-end equipment, providing new version page data or old version page data for the front-end equipment according to the expected shunting proportion. And acquiring the average error times of the new version and the average white screen duration of the new version with white screen during the operation of the new version page data by the front-end equipment. And acquiring the average error times of the old version with errors and the average white screen duration of the old version with white screen during the operation of the page data of the old version by the front-end equipment. And acquiring the actual shunting proportion between the new version page data and the old version page data according to the times of providing the new version page data and the old version page data to the front-end equipment. And adjusting the expected shunting proportion at least according to the expected shunting proportion, the actual shunting proportion, the average error times of the new version, the average white screen duration of the new version, the average error times of the old version and the average white screen duration of the old version.
Through the application, when the page data is upgraded by using a gray scale upgrading mode for the application program, monitoring of the online data and judgment of whether to adjust the expected shunting proportion can be automatically executed by the server side, and the participation of workers can be avoided, so that the labor cost can be reduced, and the risk of upgrading problems caused by human errors can be reduced.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Optionally, an embodiment of the present invention further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement the processes of the data processing method embodiments described above, and can achieve the same technical effects, and in order to avoid repetition, details are not described here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 5 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 6 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 6, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A method of data processing, the method comprising:
according to an expected shunting proportion between the new version page data and the old version page data of the application program, providing the new version page data or the old version page data for front-end equipment;
acquiring the average error times of the new version with errors and the average white screen duration of the new version with white screen during the operation of the new version page data by the front-end equipment;
acquiring the average error times of the old version with errors and the average white screen duration of the old version with white screen during the operation of the page data of the old version by the front-end equipment;
acquiring an actual shunting proportion between the new version page data and the old version page data according to the times of providing the new version page data and the old version page data to the front-end equipment;
and adjusting the expected shunting proportion at least according to the expected shunting proportion, the actual shunting proportion, the average error times of the new version, the average white screen time of the new version, the average error times of the old version and the average white screen time of the old version.
2. The method of claim 1, wherein the adjusting the expected split ratio based on at least the expected split ratio, the actual split ratio, the average number of errors in the new version, the average white screen duration in the new version, the average number of errors in the old version, and the average white screen duration in the old version comprises:
acquiring the error rate of the new version and the old version according to the average error times of the new version and the old version;
acquiring the ratio of the new version white screen duration to the old version white screen duration according to the new version average white screen duration and the old version average white screen duration;
obtaining an expected actual shunting ratio according to the expected shunting ratio and the actual shunting ratio;
and adjusting the expected shunting proportion according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunting rate.
3. The method of claim 2, wherein the adjusting the expected split ratio according to the new and old version error ratio, the new and old version white screen duration ratio, and the expected actual split ratio comprises:
under the conditions that the error rate of the new version and the old version is smaller than a first preset rate, the white screen duration rate of the new version and the old version is smaller than a second preset rate and the expected actual shunt rate is within a preset rate interval, improving the expected shunt ratio;
alternatively, the first and second electrodes may be,
and reducing the expected shunt ratio under the condition that the error ratio of the new version to the old version is greater than or equal to a first preset ratio, the white screen duration ratio of the new version to the old version is greater than or equal to a second preset ratio or the expected actual shunt ratio is outside a preset ratio interval.
4. The method of claim 3, wherein said increasing said desired split ratio comprises:
determining the improvement range of the expected shunt proportion according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate;
and increasing the expected flow dividing ratio according to the increase amplitude.
5. The method of claim 4, wherein determining the magnitude of the increase in the expected split ratio according to the new and old version error ratio, the new and old version white screen duration ratio, and the expected actual split ratio comprises:
obtaining an amplitude coefficient according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate;
searching for an increased amplitude corresponding to the amplitude coefficient interval in which the amplitude coefficient is located in the corresponding relation between the amplitude coefficient interval and the increased amplitude;
wherein, the higher the amplitude coefficient interval in the corresponding relationship, the higher the corresponding improvement amplitude, and the lower the corresponding improvement amplitude of the lower amplitude coefficient interval.
6. A data processing apparatus, characterized in that the apparatus comprises:
the system comprises a providing module, a processing module and a display module, wherein the providing module is used for providing the new version page data or the old version page data for the front-end equipment according to the expected shunting proportion between the new version page data and the old version page data of the application program;
the first obtaining module is used for obtaining the average error times of the new version and the average white screen duration of the new version with white screen during the process that the front-end equipment runs the data of the new version;
a second obtaining module, configured to obtain an average number of old version errors that occur in an error during running of the old version page data by the front-end device and an average white screen duration of the old version that occurs in a white screen;
a third obtaining module, configured to obtain an actual splitting ratio between the new version page data and the old version page data according to the number of times of providing the new version page data and the number of times of providing the old version page data to the front-end device;
and the adjusting module is used for adjusting the expected shunt proportion at least according to the expected shunt proportion, the actual shunt proportion, the average error times of the new version, the average white screen duration of the new version, the average error times of the old version and the average white screen duration of the old version.
7. The apparatus of claim 6, wherein the adjustment module comprises:
a first obtaining unit, configured to obtain an error rate of the new version and the old version according to the average error times of the new version and the old version;
a second obtaining unit, configured to obtain a ratio of the new version to the old version according to the new version average white screen duration and the old version average white screen duration;
a third obtaining unit, configured to obtain an expected actual split ratio according to the expected split ratio and the actual split ratio;
and the adjusting unit is used for adjusting the expected shunting proportion according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunting rate.
8. The apparatus of claim 7, wherein the adjusting unit comprises:
the increasing subunit is configured to increase the expected splitting ratio when the error rate of the new and old versions is smaller than a first preset rate, the white screen duration rate of the new and old versions is smaller than a second preset rate, and the expected actual splitting ratio is within a preset ratio interval;
alternatively, the first and second electrodes may be,
and the reducing subunit is configured to reduce the expected splitting ratio when the error ratio of the new version to the old version is greater than or equal to a first preset ratio, the white screen duration ratio of the new version to the old version is greater than or equal to a second preset ratio, or the expected actual splitting ratio is outside a preset ratio interval.
9. The apparatus according to claim 8, wherein the boosting subunit is specifically configured to: determining the improvement range of the expected shunt proportion according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate; and increasing the expected flow dividing ratio according to the increase amplitude.
10. The apparatus according to claim 9, wherein the boosting subunit is specifically configured to: obtaining an amplitude coefficient according to the error rate of the new version and the old version, the white screen duration rate of the new version and the old version and the expected actual shunt rate; searching for an increased amplitude corresponding to the amplitude coefficient interval in which the amplitude coefficient is located in the corresponding relation between the amplitude coefficient interval and the increased amplitude; wherein, the higher the amplitude coefficient interval in the corresponding relationship, the higher the corresponding improvement amplitude, and the lower the corresponding improvement amplitude of the lower amplitude coefficient interval.
11. An electronic device, comprising: processor, memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the data processing method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the data processing method according to any one of claims 1 to 5.
CN202111164009.2A 2021-09-30 2021-09-30 Data processing method and device, electronic equipment and storage medium Active CN113946353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111164009.2A CN113946353B (en) 2021-09-30 2021-09-30 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111164009.2A CN113946353B (en) 2021-09-30 2021-09-30 Data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113946353A true CN113946353A (en) 2022-01-18
CN113946353B CN113946353B (en) 2022-08-09

Family

ID=79329712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111164009.2A Active CN113946353B (en) 2021-09-30 2021-09-30 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113946353B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150227962A1 (en) * 2014-02-11 2015-08-13 Sears Brands, L.L.C. A/b testing and visualization
CN110162382A (en) * 2019-04-09 2019-08-23 平安科技(深圳)有限公司 Gray scale dissemination method, device, computer equipment and storage medium based on container
CN110928555A (en) * 2019-11-21 2020-03-27 广州品唯软件有限公司 Gray scale release control method and device, computer equipment and storage medium
CN111538527A (en) * 2020-03-30 2020-08-14 中国平安人寿保险股份有限公司 Method and device for verifying gray release, electronic equipment and storage medium
CN112506559A (en) * 2020-12-14 2021-03-16 招商局金融科技有限公司 Gray scale publishing method and device based on gateway, electronic equipment and storage medium
CN112905463A (en) * 2021-02-07 2021-06-04 广州虎牙科技有限公司 Software test monitoring method and device, electronic equipment and readable storage medium
CN113452622A (en) * 2021-06-29 2021-09-28 上海通联金融服务有限公司 Gray level shunting method based on client

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150227962A1 (en) * 2014-02-11 2015-08-13 Sears Brands, L.L.C. A/b testing and visualization
CN110162382A (en) * 2019-04-09 2019-08-23 平安科技(深圳)有限公司 Gray scale dissemination method, device, computer equipment and storage medium based on container
CN110928555A (en) * 2019-11-21 2020-03-27 广州品唯软件有限公司 Gray scale release control method and device, computer equipment and storage medium
CN111538527A (en) * 2020-03-30 2020-08-14 中国平安人寿保险股份有限公司 Method and device for verifying gray release, electronic equipment and storage medium
CN112506559A (en) * 2020-12-14 2021-03-16 招商局金融科技有限公司 Gray scale publishing method and device based on gateway, electronic equipment and storage medium
CN112905463A (en) * 2021-02-07 2021-06-04 广州虎牙科技有限公司 Software test monitoring method and device, electronic equipment and readable storage medium
CN113452622A (en) * 2021-06-29 2021-09-28 上海通联金融服务有限公司 Gray level shunting method based on client

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
熊军军等: "基于"Nginx+Lua"组件的应用系统灰度发布", 《金融电子化》 *

Also Published As

Publication number Publication date
CN113946353B (en) 2022-08-09

Similar Documents

Publication Publication Date Title
EP3188066A1 (en) A method and an apparatus for managing an application
US20160121246A1 (en) Method and device for reminding user about smart water purifier
CN111970561B (en) Video cover generation method, system, device, electronic equipment and storage medium
CN107316207B (en) Method and device for acquiring display effect information
CN110502444B (en) Testing method and testing device for image processing algorithm
EP3179433A1 (en) Information pushing method and device
CN113946353B (en) Data processing method and device, electronic equipment and storage medium
CN111198706A (en) Method for updating system function, apparatus for updating system function and storage medium
CN114422854A (en) Data processing method and device, electronic equipment and storage medium
CN115563156A (en) Method, device and equipment for checking stream data information and storage medium
CN114416505A (en) Data processing method and device, electronic equipment and storage medium
CN114416475A (en) Data processing method and device, electronic equipment and storage medium
CN108427582B (en) Method and device for determining stuck state and computer readable storage medium
CN112883314A (en) Request processing method and device
CN112819061A (en) Password information identification method, device, equipment and storage medium
CN110784721A (en) Picture data compression method and device, electronic equipment and storage medium
CN107257384B (en) Service state monitoring method and device
CN113806227B (en) Information processing method, device, electronic equipment and storage medium
CN113946372B (en) Data processing method and device, electronic equipment and storage medium
CN113946346B (en) Data processing method and device, electronic equipment and storage medium
CN114489641B (en) Data processing method and device, electronic equipment and storage medium
CN112506628B (en) Agent program management method, device, computer equipment and storage medium
CN110213524B (en) Video networking conference exception handling method and device
CN116150169A (en) Data processing method and device, electronic equipment and storage medium
CN114398542A (en) Data processing 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