CN108093096B - Method for upgrading access link of server, server and storage medium - Google Patents

Method for upgrading access link of server, server and storage medium Download PDF

Info

Publication number
CN108093096B
CN108093096B CN201711373667.6A CN201711373667A CN108093096B CN 108093096 B CN108093096 B CN 108093096B CN 201711373667 A CN201711373667 A CN 201711373667A CN 108093096 B CN108093096 B CN 108093096B
Authority
CN
China
Prior art keywords
access link
gray
user
determining
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711373667.6A
Other languages
Chinese (zh)
Other versions
CN108093096A (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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201711373667.6A priority Critical patent/CN108093096B/en
Publication of CN108093096A publication Critical patent/CN108093096A/en
Application granted granted Critical
Publication of CN108093096B publication Critical patent/CN108093096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an upgrading method of an access link of a server, a server and a storage medium, which are used for reducing the influence on business in the upgrading process of the access link. The method comprises the following steps: determining an upgrading gray value according to a user access request of an access link of an access server; and upgrading the access link according to the upgraded gray value and a preset gray range. The invention can not affect the service in the whole access link upgrading process, and can ensure that the whole upgrading process is smooth and orderly, thereby effectively reducing the influence on the service in the access link upgrading process.

Description

Method for upgrading access link of server, server and storage medium
Technical Field
The present invention relates to network technologies, and in particular, to a method for upgrading an access link of a server, and a storage medium.
Background
Currently, some existing application platforms prepare to modify URL (Uniform Resource Locator) to HTTPS (Hyper Text Transfer Protocol over Secure Socket layer) access based on security and other popularity considerations.
However, the existing modification scheme mainly aims at the scene of small flow and single service. However, when the traffic is large and the service scenario is complex, the existing modification scheme may affect the service, so that a great risk of rising and falling exists.
Disclosure of Invention
In order to overcome the above defects, the technical problem to be solved by the present invention is to provide an upgrading method, a server and a storage medium for an access link of a server, so as to reduce the influence on a service in the upgrading process of the access link.
In order to solve the above technical problem, an upgrading method for an access link of a server in an embodiment of the present invention includes:
determining an upgrading gray value according to a user access request of an access link of an access server;
and upgrading the access link according to the upgraded gray value and a preset gray range.
In order to solve the above technical problem, in an embodiment of the present invention, a server includes a memory and a processor, where the memory stores an upgraded computer program of an access link of a server, and the processor executes the computer program to implement the steps of the method.
To solve the above technical problem, in an embodiment of the present invention, a computer-readable storage medium stores an upgrade computer program of an access link of a server, and the computer program is executed by at least one processor to implement the steps of the method as described above.
The embodiment of the invention has the following beneficial effects:
according to the method, the server and the storage medium in the embodiment of the invention, the upgrade gray value is determined according to the user access request, and the access link is upgraded according to the upgrade gray value and the preset gray interval, so that the service is not influenced in the whole access link upgrading process, the whole upgrading process is smooth and ordered, and the influence on the service in the access link upgrading process is effectively reduced.
Drawings
Fig. 1 is a flowchart of an upgrading method for an access link of a server in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a server in an embodiment of the present invention.
Detailed Description
In order to solve the problems in the prior art, the present invention provides an upgrade method for an access link of a server, and a storage medium, and the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Example one
An embodiment of the present invention provides a method for upgrading an access link of a server, as shown in fig. 1, where the method includes:
s101, determining an upgrading gray value according to a user access request of an access link of an access server;
and S102, upgrading the access link according to the gray value and a preset gray interval.
In the embodiment of the invention, the access link is an address of a network resource on the Internet, such as a URL.
In the embodiment of the invention, the user accesses the access link of the server through the user access request.
The server side is used for providing network resources in the embodiment of the invention; in specific applications, the server in the embodiment of the present invention may also be referred to as a server platform, a server application platform, a cloud computing platform, a server, and the like.
According to the embodiment of the invention, the upgrading gray value is determined according to the user access request, and the access link is upgraded according to the upgrading gray value and the preset gray interval, so that the service is not influenced in the whole access link upgrading process, the whole upgrading process is smooth and ordered, and the influence on the service in the access link upgrading process is effectively reduced.
Example two
The embodiment of the present invention provides an upgrading method for an access link of an optional server, and in particular, the embodiment of the present invention provides an access link for upgrading an access link of HTTP (HyperText Transfer Protocol) to an access link of HTTPs.
In the embodiment of the invention, URL access links are taken as an example, if the access links of the server are very many, all URLs are uniformly changed into access links of HTTPS in one version, which may influence the access of services; therefore, in the embodiment of the invention, a scheme of gradual reconstruction is adopted, service lines needing to be reconstructed into an HTTPS scheme are planned for each version, the gray scale of some service lines is controlled, the gray scale proportion of an HTTPS access link is controlled to be issued, if the fact that the reconstruction of the HTTPS access link affects the service is found midway, the gray scale is stopped, and the proportion of upgrading the HTTPS is continuously expanded after the problem is solved; the gray scale in the embodiment of the invention is set into the gray scale interval through the interval form.
Based on this, in the first embodiment of the present invention, the improvement on S102, that is, the upgrading the access link according to the upgraded gray scale value and the preset gray scale interval may include:
and when the upgrade gray value falls into the gray interval, sending an access link of a hypertext transfer protocol (HTTPS) protocol of a secure socket layer to a user.
The gray scale interval in the embodiment of the present invention is composed of a minimum gray scale threshold Min and a maximum gray scale threshold Max.
EXAMPLE III
An embodiment of the present invention provides another method for optionally upgrading an access link of a service end, and in particular, on the basis of the first embodiment, an embodiment of the present invention provides a method for determining an upgrade gray scale value, that is, in the first embodiment, determining an upgrade gray scale value according to a user access request of an access link of an access service end may include:
determining user equipment accessing the access link according to the user access request;
acquiring a device identifier of the user equipment;
and determining an upgrading gray value according to the equipment identifier and a predetermined function gray identifier.
The user Equipment in the embodiment of the present invention may be a Mobile terminal such as a Mobile phone, and the device identifier DeviceId of the user Equipment in the embodiment of the present invention may be an IMEI (International Mobile Equipment Identity) value of an android Mobile phone, or an OpenUDID value in an IOS Mobile phone.
In the embodiment of the invention, the upgrading gray value is determined to be effective for the functions, so that each function has a unique identifier, the identifier is the function gray identifier, and the name acquisition suggestion uses the system name + the class name + the method name.
That is to say, in the embodiment of the present invention, optionally, before determining the upgrade gray scale value according to the user equipment and the predetermined function gray scale identifier, the determining may include:
and determining the function gray scale identification according to the function corresponding to the access link.
Example four
The embodiment of the present invention provides another method for upgrading an access link of an optional server, and in particular, on the basis of the third embodiment, the embodiment of the present invention provides a method for optionally determining an upgrade gray scale value, that is, the determining an upgrade gray scale value according to the device identifier and a predetermined function gray scale identifier in the third embodiment may include:
calculating a hash value according to the equipment identifier and the function gray identifier;
and determining the upgrading gray value according to the absolute value of the hash value.
In this embodiment of the present invention, the Hash value (Hash) may be obtained by a HashCode method in Java, and since a negative number may be obtained by using this method, optionally, determining the upgrade gray-level value according to an absolute value of the Hash value includes:
and taking the surplus of the hash value and a preset numerical value to obtain the upgrading gray value.
For example, in the embodiment of the present invention, an absolute value is obtained from the result, and then the absolute value and 100 are obtained as a remainder to obtain a final upgrade gray value, and if the upgrade gray value falls into a gray interval, it indicates that the user equipment falls into the gray interval, so as to send an access link of the HTTPS to the user.
EXAMPLE five
An embodiment of the present invention provides another method for upgrading an access link of an optional server, and in particular, on the basis of the third embodiment and the fourth embodiment, a method for optionally determining an upgrade gray value is provided, where the method in the embodiment of the present invention may include:
step 1, acquiring a device identification DeviceId and a function gray identification Flag of user equipment;
step 2, calculating Hash values of DeviceId and Flag;
step 3, taking an absolute value of the Hash value to obtain Result;
step 4, the Result and 100 are left to obtain the final upgrade gray value;
step 5, judging whether the final upgrade gray value falls into a gray range formed by a minimum gray threshold Min and a maximum gray threshold Max;
and 6, if the number of the objects falls into the range, upgrading the objects.
And 7, if the HTTP address does not fall into the HTTP address, sending an HTTP access link.
EXAMPLE six
The embodiment of the present invention provides another optional upgrading method for an access link of a server, and specifically, in a server platform, sources of the access link are diversified, and the access link is issued from a server, written down at an App end, and issued by an access third-party interface, so for different sources, the embodiment of the present invention includes two upgrading schemes:
1. upgrading the version dimension: for different service lines, from a certain version, all access links of the HTTPS protocol can be issued, wherein the proportion of the access links issuing the HTTPS protocol in the initial stage is controlled by the gray background.
2. And judging whether to issue the access link of the HTTPS protocol according to a protocol header carried by the user access request. On the basis of the first embodiment, the embodiment of the present invention improves S102, that is, determining an upgrade gray scale value according to a user access request of an access link of an access server may further include:
determining an access link protocol header carried by the user access request;
and when the carried access link protocol header is an HTTPS protocol header, determining the upgrade gray value.
For example, for some services with a small access amount, the access link of the HTTPS protocol is switched in full amount directly from a certain version, and for a service line with a large access amount, some policies are adopted to determine whether to issue the access link of the HTTPS protocol. For example, first, whether the version number is greater than the modified version of the access link of the service line HTTPS protocol is determined, if the condition is satisfied, whether the upgraded gray level value falls within a gray level interval is determined, if the upgraded gray level value falls within the gray level interval, the access link of the HTTPS protocol is issued, and if not, the access link of the HTTP protocol is issued until the gray level is stopped.
EXAMPLE seven
The embodiment of the present invention provides another optional method for upgrading an access link of a server, and specifically, at present, a network is often in a hijacking environment, and in the hijacking environment, a network operator often seals a 443 port, which may cause access failure of HTTPS and a white screen. Based on this, the improvement of the second embodiment of the present invention, that is, the sending an access link of a hypertext transfer protocol over secure socket layer HTTPS protocol to a user when the upgraded gray value falls in the gray interval in the second embodiment of the present invention may include:
judging whether the user access request triggers a preset degradation strategy or not;
if not, sending an access link of the HTTPS protocol to the user;
and if the trigger is detected, sending an access link of a hypertext transfer protocol (HTTP) protocol to the user.
The embodiment of the invention can effectively solve the problems of HTTPS access invalidation and white screen.
Example eight
The embodiment of the present invention provides another optional method for upgrading an access link of a server, and specifically, on the basis of the seventh embodiment, the embodiment of the present invention provides a downgrading policy, that is, when any one of the following conditions is satisfied, it is determined that the user access request triggers the downgrading policy, including:
condition 1, a port corresponding to the HTTPS protocol is closed;
condition 2, the preset degradation protocol switch is turned on;
condition 3, the system of the user equipment belongs to a preset degradation system;
and 4, the visit city corresponding to the user visit request belongs to a preset degradation city in the degradation strategy.
For example, in a specific implementation, a downgrade protocol switch may be provided, as well as downgrade system selection and downgrade city selection.
The default of the downgrade protocol switch is the HTTPS protocol, and if all HTTPS protocols need to be changed to HTTP, the switch only needs to be configured.
The downgrade system selection considers that only the Android system can be downgraded when downgrading if the IOS system only supports HTTPS protocol access.
The selection of the degraded city takes the specific range of hijacking into consideration, and if the hijacking only occurs in some cities, the degradation only needs to be performed in the occurring cities.
Example nine
The embodiment of the present invention provides a server, where the server includes a memory 20 and a processor 22, where the memory 20 stores an upgrade computer program of an access link of a server, and the processor 22 executes the computer program to implement the steps of the method according to any one of the first to eighth embodiments.
In detail, the processor 22 executes the computer program to implement the steps of:
determining an upgrading gray value according to a user access request of an access link of an access server;
and upgrading the access link according to the upgraded gray value and a preset gray range.
In this embodiment of the present invention, optionally, the determining an upgrade gray value according to a user access request of an access link of an access server includes:
determining user equipment accessing the access link according to the user access request;
acquiring a device identifier of the user equipment;
and determining an upgrading gray value according to the equipment identifier and a predetermined function gray identifier.
In this embodiment of the present invention, optionally, before determining the upgrade gray scale value according to the user equipment and the predetermined function gray scale identifier, the method includes:
and determining the function gray scale identification according to the function corresponding to the access link.
In this embodiment of the present invention, optionally, the determining an upgrade gray scale value according to the device identifier and a predetermined function gray scale identifier includes:
calculating a hash value according to the equipment identifier and the function gray identifier;
and determining the upgrading gray value according to the absolute value of the hash value.
In this embodiment of the present invention, optionally, the determining the upgrade gray scale value according to the absolute value of the hash value includes:
and taking the surplus of the hash value and a preset numerical value to obtain the upgrading gray value.
In this embodiment of the present invention, optionally, the determining an upgrade gray value according to a user access request of an access link of an access server further includes:
determining an access link protocol header carried by the user access request;
and when the carried access link protocol header is an HTTPS protocol header, determining the upgrade gray value.
In this embodiment of the present invention, optionally, the upgrading the access link according to the upgraded gray scale value and a preset gray scale interval includes:
and when the upgrade gray value falls into the gray interval, sending an access link of a hypertext transfer protocol (HTTPS) protocol of a secure socket layer to a user.
In this embodiment of the present invention, optionally, when the grayscale value falls into the grayscale interval, sending an access link of a hypertext transfer protocol over secure socket layer HTTPS protocol to a user includes:
judging whether the user access request triggers a preset degradation strategy or not;
if not, sending an access link of the HTTPS protocol to the user;
and if the trigger is detected, sending an access link of a hypertext transfer protocol (HTTP) protocol to the user.
In this embodiment of the present invention, optionally, when any one of the following conditions is satisfied, determining that the user access request triggers the degradation policy includes:
a port corresponding to the HTTPS protocol is closed;
a preset degradation protocol switch is turned on;
the system of the user equipment belongs to a preset degradation system;
and the visit city corresponding to the user visit request belongs to a preset degradation city in the degradation strategy.
In the specific implementation of the embodiments of the present invention, reference may also be made to the above embodiments, which have corresponding technical effects.
Example ten
An embodiment of the present invention provides a computer-readable storage medium, where an upgraded computer program of an access link of a server is stored, and the computer program is executed by at least one processor to implement the steps of the method according to any one of the first to eighth embodiments.
When the embodiment of the invention is specifically implemented, reference can be made to the above embodiments, and corresponding technical effects are achieved.
Computer-readable storage media in embodiments of the invention may be RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium; or the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (8)

1. A method for upgrading an access link of a server side is characterized by comprising the following steps:
determining an upgrading gray value according to a user access request of an access link of an access server;
upgrading the access link according to the upgraded gray value and a preset gray range;
the step of determining the upgrade gray value according to the user access request of the access link of the access server comprises the following steps:
determining user equipment accessing the access link according to the user access request;
acquiring a device identifier of the user equipment;
determining an upgrade gray value according to the device identifier and a predetermined function gray identifier, including:
calculating a hash value according to the equipment identifier and the function gray identifier;
determining the upgrading gray value according to the absolute value of the hash value;
the determining the upgrade gray value according to the user access request of the access link of the access server further comprises:
determining an access link protocol header carried by the user access request;
and when the carried access link protocol header is an HTTPS protocol header, determining the upgrade gray value.
2. The method of claim 1, wherein prior to determining an upgrade patch value based on the user device and a predetermined functional patch identifier, comprising:
and determining the function gray scale identification according to the function corresponding to the access link.
3. The method of claim 1, wherein said determining the upgrade gray value based on an absolute value of the hash value comprises:
and taking the surplus of the hash value and a preset numerical value to obtain the upgrading gray value.
4. The method of claim 1, wherein said upgrading said access link according to said upgraded gray scale value and a preset gray scale interval comprises:
and when the upgrade gray value falls into the gray interval, sending an access link of a hypertext transfer protocol (HTTPS) protocol of a secure socket layer to a user.
5. The method of claim 4, wherein sending an access link of a secure socket layer hypertext transfer protocol (HTTPS) protocol to a user when the raised gray level value falls within the gray level interval comprises:
judging whether the user access request triggers a preset degradation strategy or not;
if not, sending an access link of the HTTPS protocol to the user;
and if the trigger is detected, sending an access link of a hypertext transfer protocol (HTTP) protocol to the user.
6. The method of claim 5, wherein determining that the user access request triggers the destage policy when any of the following conditions are met comprises:
a port corresponding to the HTTPS protocol is closed;
a preset degradation protocol switch is turned on;
the system of the user equipment belongs to a preset degradation system;
and the visit city corresponding to the user visit request belongs to a preset degradation city in the degradation strategy.
7. A server, characterized in that it comprises a memory storing an upgraded computer program of an access link of a server and a processor executing the computer program to implement the steps of the method according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that the storage medium stores an upgraded computer program of an access link of a server, which computer program, when executed by at least one processor, is adapted to carry out the steps of the method according to any one of claims 1 to 6.
CN201711373667.6A 2017-12-19 2017-12-19 Method for upgrading access link of server, server and storage medium Active CN108093096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711373667.6A CN108093096B (en) 2017-12-19 2017-12-19 Method for upgrading access link of server, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711373667.6A CN108093096B (en) 2017-12-19 2017-12-19 Method for upgrading access link of server, server and storage medium

Publications (2)

Publication Number Publication Date
CN108093096A CN108093096A (en) 2018-05-29
CN108093096B true CN108093096B (en) 2021-06-01

Family

ID=62177165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711373667.6A Active CN108093096B (en) 2017-12-19 2017-12-19 Method for upgrading access link of server, server and storage medium

Country Status (1)

Country Link
CN (1) CN108093096B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117163B (en) * 2018-08-30 2022-03-15 北京奇艺世纪科技有限公司 Client upgrading method and device
CN110071840A (en) * 2019-04-29 2019-07-30 厦门美图之家科技有限公司 Upgrade method, device and client

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176790A (en) * 2011-12-26 2013-06-26 阿里巴巴集团控股有限公司 Application releasing method and application releasing system
CN105099988A (en) * 2014-04-24 2015-11-25 阿里巴巴集团控股有限公司 Method used for supporting gray releasing, access method, devices and system
CN106487824A (en) * 2015-08-25 2017-03-08 阿里巴巴集团控股有限公司 A kind of rule gray scale dissemination method and device
CN107360010A (en) * 2016-05-09 2017-11-17 阿里巴巴集团控股有限公司 A kind of website gray scale dissemination method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7221370B1 (en) * 2001-01-26 2007-05-22 Palmsource, Inc. Adaptive content delivery

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176790A (en) * 2011-12-26 2013-06-26 阿里巴巴集团控股有限公司 Application releasing method and application releasing system
CN105099988A (en) * 2014-04-24 2015-11-25 阿里巴巴集团控股有限公司 Method used for supporting gray releasing, access method, devices and system
CN106487824A (en) * 2015-08-25 2017-03-08 阿里巴巴集团控股有限公司 A kind of rule gray scale dissemination method and device
CN107360010A (en) * 2016-05-09 2017-11-17 阿里巴巴集团控股有限公司 A kind of website gray scale dissemination method and device

Also Published As

Publication number Publication date
CN108093096A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN104219316A (en) Method and device for processing call request in distributed system
CN104601736A (en) Method and device for realizing short uniform resource locator (URL) service
CN104778178B (en) A kind of application class method, apparatus and service server
CN111444455A (en) Browser compatible method, system, computer device and storage medium
WO2020034729A1 (en) Data processing method, related device, and computer storage medium
CN108093096B (en) Method for upgrading access link of server, server and storage medium
CN110889132A (en) Distributed application permission verification method and device
CN105847319A (en) Mobile terminal network request method and system
CN104270362A (en) Request handling method and device
CN106227541A (en) A kind of program updates download process method and mobile terminal
CN109816453B (en) Detection method and device for promotion resource link
CN105045539B (en) The control method and device of off-line data storage
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
CN111930505B (en) Data resource management method and system for big data platform, server and medium
CN104021074A (en) Vulnerability detection method and device for application program of PhoneGap framework
CN106528199A (en) Method and terminal for updating automobile instrument panel system
CN113422772A (en) Private network terminal access processing method and device and electronic equipment
CN112422604B (en) File uploading method, device and system and computer equipment
CN109190071A (en) Mobile terminal caching method and device
CN107231624A (en) A kind of method, storage device and the mobile terminal of retention data information
CN103309941A (en) Application update method, device and system
CN114637969A (en) Target object authentication method and device
CN112688980B (en) Resource distribution method and device, and computer equipment
CN111182027A (en) Flow data distribution method and device based on novel architecture
CN111400060A (en) Equipment linkage method, device, server and 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