CN111835702A - Login method, device, equipment and computer readable storage medium - Google Patents

Login method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111835702A
CN111835702A CN202010066494.9A CN202010066494A CN111835702A CN 111835702 A CN111835702 A CN 111835702A CN 202010066494 A CN202010066494 A CN 202010066494A CN 111835702 A CN111835702 A CN 111835702A
Authority
CN
China
Prior art keywords
server
user
login
password
fault
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
CN202010066494.9A
Other languages
Chinese (zh)
Other versions
CN111835702B (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 Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development 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 Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN202010066494.9A priority Critical patent/CN111835702B/en
Publication of CN111835702A publication Critical patent/CN111835702A/en
Application granted granted Critical
Publication of CN111835702B publication Critical patent/CN111835702B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a login method, a login device, equipment and a computer readable storage medium, wherein the method comprises the following steps: judging whether a fault operation node exists in the server or not; and adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in. Therefore, no matter what state the server is in, the user can normally use the application software, and the loss of the user is avoided while the user experience is improved.

Description

Login method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a login method, device, apparatus, and computer-readable storage medium.
Background
With the development of network technologies, various electronic terminals gradually enter the lives of users, and the requirements of the users on the functions of the electronic terminals are higher and higher. In order to meet various requirements of users, various kinds of multifunctional application software are increasing. More users are used for each application software. When the server of the application software is in normal operation, the server of the application software can support a large number of users to log in and use simultaneously.
However, when the server fails, the server often cannot support the use requirements of a large number of users, and therefore, a large number of users may not log in or log in for a long time, and further, the users may not normally use the application software, and when poor use experience is brought to the users, the risk of user loss is brought to the application software.
Disclosure of Invention
The invention provides a login method, a login device, login equipment and a computer readable storage medium, which are used for solving the technical problem that a user cannot normally log in due to the fact that a server fails in the prior art.
The first aspect of the present invention provides a login method, including:
judging whether a fault operation node exists in the server or not;
and adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
Another aspect of the present invention provides a login apparatus, including:
the judging module is used for judging whether a fault operation node exists in the server or not;
and the processing module is used for adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
Still another aspect of the present invention provides a login device, including: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the login method as described above by the processor.
Yet another aspect of the present invention is to provide a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are executed by a processor to implement the login method as described above.
The login method, the login device, the login equipment and the computer readable storage medium provided by the invention judge whether a fault operation node exists in a server or not; and adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in. Therefore, no matter what state the server is in, the user can normally use the application software, and the loss of the user is avoided while the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic flowchart of a login method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a login method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a login method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a login device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a login apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a login device according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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, but not all, embodiments of the present invention. All other examples obtained based on the examples in the present invention are within the scope of the present invention.
Fig. 1 is a schematic flowchart of a login method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step 101, judging whether a fault operation node exists in a server;
and 102, adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
In this embodiment, because when the server fails, the server often cannot support the use requirements of a large number of users, and therefore, a large number of users may not log in or log in for a long time, and further, the users may not normally use the application software, and when poor use experience is brought to the users, the risk of user loss is brought to the application software. Therefore, in order to solve the above-described technical problem, it is first possible to determine whether or not the server has failed. Specifically, each server corresponds to a plurality of operating nodes, and a fault occurring in any one operating node may affect the current use of the user, so that whether the current server has a fault can be determined by determining whether the faulty operating node exists in the server. Accordingly, after the judgment result is obtained, a processing mode corresponding to the judgment result can be adopted according to the judgment result, so that the user corresponding to the server can be ensured to normally log in the application software.
In the login method provided by this embodiment, whether a failed operating node exists in a server is judged; and adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in. Therefore, no matter what state the server is in, the user can normally use the application software, and the loss of the user is avoided while the user experience is improved.
Further, on the basis of the above embodiment, the method includes:
judging whether a fault operation node exists in the server or not;
if the server has a fault operation node, optimizing the login mode of the user;
and if the server does not have the operation node with the fault, maintaining the current login mode.
In this embodiment, in order to ensure that the user can normally log in the application software at any time, after determining whether there is a failed operating node in the server, a processing manner corresponding to the determination result may be adopted according to the determination result. Specifically, if a failed running node exists in the server, the fact that the current server cannot support user login operation with historical strength is represented, at this time, the login mode of the user can be optimized, the complexity of the login mode is reduced, and therefore the user can normally login the application software. It can be understood that, when a user cannot normally log in application software, on one hand, a server may have a fault, and at this time, the login mode of the user may be optimized, and on the other hand, a network of an individual user may have a problem, and the login of the rest of users is not affected, and at this time, a running node having a fault does not exist in the server, and thus, the current login mode may be continuously maintained. As an implementable manner, when there is no faulty operating node in the detection server, the user may be prompted to detect the current network connection status, so as to implement normal login.
According to the login method provided by the embodiment, whether the server has the fault operation node or not is judged, when the server has the fault, the login mode of the user is optimized, and when the server does not have the fault operation node, the current login mode is maintained, so that the user can be ensured to normally log in the application software under any condition, and the user experience is improved.
Further, on the basis of the above embodiment, the method further includes:
receiving an abnormal login instruction sent by a user;
judging whether a running node with a fault exists in the server according to the abnormal login instruction;
and adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
In the embodiment, the abnormal login instruction sent by the user can be received in real time, if the abnormal login instruction sent by the user is received, whether the running node with the fault exists in the current server or not can be determined according to the abnormal login instruction, and corresponding operation is executed according to the judgment result, so that the problem that the user is logged in abnormally can be solved as soon as possible.
According to the login method provided by the embodiment, whether the running node with the fault exists in the current server is determined according to the abnormal login instruction sent by the user, so that the user can be ensured to be solved as soon as possible when the login is abnormal, the user experience is improved, and the loss of the user is reduced.
Optionally, on the basis of the foregoing embodiment, the method further includes:
periodically judging whether a fault operation node exists in the server or not;
and adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
In this embodiment, in order to know the operating state of the server in time, whether a failed operating node exists in the server can be periodically determined, so that corresponding measures can be taken in time when the server fails, and user experience can be improved. It should be noted that, different times for determining whether there is a failed operating node in the server may be set according to the importance degree of the server. Specifically, if the importance of the server is higher, a shorter detection time may be set for the server, and if the importance of the server is lower, a longer detection time may be set for the server, which may be specifically adjusted according to the actual application, and the present invention is not limited herein. And adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
According to the login method provided by the embodiment, whether the fault operation node exists in the server or not is judged regularly, so that the operation state of the server can be known in time, and a user can normally log in under any condition.
Fig. 2 is a schematic flow chart of a login method according to a second embodiment of the present invention, where on the basis of any of the above embodiments, the method includes:
step 201, judging whether the CPU usage of each running node in the server exceeds a preset threshold value;
step 202, if yes, judging that a fault operation node exists in the server;
and 203, adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
In this embodiment, in order to ensure that the user can normally log in the application software at any time, it should be determined whether there is a failed running node in the server. It can be understood that, when the server cannot support a large number of users to log in, it is first required to query whether the CPU usage of each operating node in the server is faulty, specifically, for each operating node in the server, it is determined whether the CPU usage of the operating node exceeds a preset threshold, and if so, it is determined that the operating node is faulty. It should be noted that the preset threshold may be set by the operation and maintenance staff according to experience, or may be a default threshold of the system, which is not limited herein. In addition, if no operation node with a fault exists in the server, it can be determined that the server does not have the fault currently, if the user cannot log in normally, the problem may occur in the network connection of the user terminal, and at this time, a network connection state determination prompt can be sent to the user, so that the user can log in the application software normally.
According to the login method provided by the embodiment, whether the CPU usage of each running node in the server exceeds the preset threshold value or not is judged, so that the running node with the fault can be accurately positioned, the subsequent login mode is optimized, and a basis is provided for a user to normally login the application software when the server has the fault.
Fig. 3 is a schematic flow chart of a login method provided in a third embodiment of the present invention, where on the basis of any one of the above embodiments, the method includes:
step 301, judging whether a fault operation node exists in a server;
step 302, if a fault operation node exists in the server, receiving password information input by a user;
and 303, encrypting the password information through a preset fixed key to optimize the login mode of the user.
In this embodiment, since the user needs to input information such as an account and a password during the login process, generally, in order to ensure the security of the user account, the password input by the user needs to be encrypted by using a random key. Therefore, in order to ensure that the user can normally log in the application software, whether a fault operation node exists in the server or not can be judged, if yes, the password information input by the user is received, and the password information input by the user is encrypted by adopting a preset fixed key. It can be understood that when the password information is encrypted by using the fixed key, the required time is short, and the pressure on the server is low, so that the requirement of the user for fast login when the server fails can be ensured.
According to the login method provided by the embodiment, when the server fails, the password information input by the user is encrypted by adopting the preset fixed key, so that the login speed of the user can be increased and the user experience can be improved on the basis of ensuring the security of the user account and the password.
Optionally, on the basis of any of the above embodiments, the method includes:
judging whether a fault operation node exists in the server or not;
if the server has a fault operation node, adjusting the password length of the encryption tool;
receiving password information input by a user;
and encrypting the password by an encryption tool after the password length is adjusted so as to realize the optimization of the login mode of the user.
In this embodiment, since the user needs to input information such as an account and a password during the login process, in general, in order to ensure the security of the user account, an encryption tool needs to be used to encrypt the password information input by the user. For example, Bcrypt can be used to encrypt the password, in general, an encryption tool with a password length of 12 bits is used to encrypt the password, and when the server fails, the server is stressed by continuously using the encryption tool with the password length of 12 bits to encrypt the password, so that normal login of a large number of users cannot be supported. Therefore, in order to ensure that a user can normally log in the application software, whether a fault operation node exists in the server or not can be judged, if yes, the password length of the encryption tool is adjusted to be a proper length, the password information input by the user is received, the password information is encrypted by the adjusted encryption tool, the login mode is optimized, and the login speed of the user is improved. It can be understood that when the adjusted encryption tool is used for encrypting the password information, the required time is short, and the pressure on the server is low, so that the requirement that a user can log in quickly when the server fails can be met.
According to the login method provided by the embodiment, when the server fails, password information is encrypted by the password length of the encryption tool, so that the login speed of a user can be increased and the user experience can be improved on the basis of ensuring the security of the user account and the password.
Further, on the basis of any of the above embodiments, the method comprises:
judging whether a fault operation node exists in the server or not;
if a running node with a fault exists in the server, determining the CPU usage amount of the running node;
adjusting the password length according to the CPU usage;
receiving password information input by a user;
and encrypting the password by an encryption tool after the password length is adjusted so as to realize the optimization of the login mode of the user.
In this embodiment, the operation state of the operation node in the server is known, and after the operation node with the fault is determined to exist in the server, the specific CPU usage of the operation node with the fault can be determined, and the password length is adjusted according to the CPU usage. Specifically, if the usage amount of the CPU exceeds a preset first threshold, the password length may be adjusted from 12 bits to 8 bits, and if the usage amount of the CPU exceeds a preset second threshold, the password length may be adjusted from 12 bits to 4 bits, where the second threshold is greater than the first threshold. Therefore, the user can normally log in no matter how large the CPU occupation amount of the operation node is. And receiving password information input by a user, and encrypting the password information by adopting an adjusted encryption tool, so that the optimization of a login mode is realized, and the login speed of the user is improved. It can be understood that when the adjusted encryption tool is used for encrypting the password information, the required time is short, and the pressure on the server is low, so that the requirement that a user can log in quickly when the server fails can be met.
According to the login method provided by the embodiment, when the server fails, password information is encrypted according to the CPU usage of the failed operation node and the password length of the encryption tool, so that the login speed of a user can be increased and the user experience can be improved on the basis of ensuring the security of the user account and the password.
Fig. 4 is a schematic structural diagram of a login apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the apparatus includes:
a judging module 41, configured to judge whether a failed operating node exists in the server;
and the processing module 42 is configured to adopt a corresponding processing manner according to the determination result, so that the user corresponding to the server can normally log in.
In this embodiment, because when the server fails, the server often cannot support the use requirements of a large number of users, and therefore, a large number of users may not log in or log in for a long time, and further, the users may not normally use the application software, and when poor use experience is brought to the users, the risk of user loss is brought to the application software. Therefore, in order to solve the above technical problem, the determining module 41 may first determine whether the server fails. Specifically, each server corresponds to a plurality of operating nodes, and a fault occurring in any one operating node may affect the current use of the user, so that whether the current server has a fault can be determined by determining whether the faulty operating node exists in the server. Accordingly, after the determining module 41 obtains the determining result, the processing module 42 may adopt a processing manner corresponding to the determining result according to the determining result, so as to ensure that the user corresponding to the server can normally log in the application software.
The login device provided by this embodiment determines whether there is a failed operating node in the server; and adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in. Therefore, no matter what state the server is in, the user can normally use the application software, and the loss of the user is avoided while the user experience is improved.
Further, on the basis of the above embodiment, the apparatus includes:
the judging module is used for judging whether a fault operation node exists in the server or not;
the processing module comprises:
the first processing unit is used for optimizing the login mode of the user if the server has a fault operation node;
and the second processing unit is used for keeping the current login mode if the server does not have the operation node with the fault.
In this embodiment, in order to ensure that the user can normally log in the application software at any time, after the determining module determines whether there is a failed operating node in the server, a processing manner corresponding to the determination result may be adopted according to the determination result. Specifically, if a failed operating node exists in the server, the fact that the current server cannot support user login operation with historical strength is represented, and at the moment, the first processing unit can optimize the login mode of the user, so that the complexity of the login mode is reduced, and the user can normally login the application software. It can be understood that, when the user cannot normally log in the application software, on one hand, the server may have a fault, and at this time, the login manner of the user may be optimized, and on the other hand, the network of the individual user may have a problem, and the login of the rest of the users is not affected, and at this time, the server does not have a running node with a fault, and therefore, the second processing unit may continue to maintain the current login manner. As an implementable manner, when there is no faulty operating node in the detection server, the user may be prompted to detect the current network connection status, so as to implement normal login.
The login device provided by the embodiment optimizes the login mode of the user by judging whether the server has the fault running node or not, and keeps the current login mode when the server has no fault running node, so that the user can normally log in the application software under any condition, and the user experience is improved.
Further, on the basis of the above embodiment, the apparatus further includes:
the judging module specifically comprises:
the abnormal login instruction receiving unit is used for receiving an abnormal login instruction sent by a user;
the second judgment unit is used for judging whether a fault operation node exists in the server according to the abnormal login instruction;
and the processing module is used for adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
In this embodiment, the abnormal login instruction receiving unit may receive an abnormal login instruction sent by a user in real time, and if the abnormal login instruction sent by the user is received, the second determining unit may determine whether a faulty operating node exists in the current server according to the abnormal login instruction, and the processing module executes a corresponding operation according to a determination result, so that it is ensured that the user is solved as soon as possible when the login is abnormal.
According to the login device provided by the embodiment, whether the running node with the fault exists in the current server is determined according to the abnormal login instruction sent by the user, so that the problem that the user is logged in abnormally can be solved as soon as possible, the user experience is improved, and the loss of the user is reduced.
Optionally, on the basis of the foregoing embodiment, the apparatus further includes:
the judging module comprises:
the third judging unit is used for periodically judging whether a fault operation node exists in the server;
and the processing module is used for adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
In this embodiment, in order to timely know the operating state of the server, the third determining unit may periodically determine whether a failed operating node exists in the server, so that the processing module may take corresponding measures in time when the server fails, thereby improving user experience. It should be noted that, different times for determining whether there is a failed operating node in the server may be set according to the importance degree of the server. Specifically, if the importance of the server is higher, a shorter detection time may be set for the server, and if the importance of the server is lower, a longer detection time may be set for the server, which may be specifically adjusted according to the actual application, and the present invention is not limited herein. And adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
The login device provided by the embodiment can timely know the operation state of the server by periodically judging whether the server has the operation node with the fault, so that the user can normally log in under any condition.
Fig. 5 is a schematic structural diagram of a login apparatus according to a fifth embodiment of the present invention, where on the basis of any of the embodiments, as shown in fig. 5, the apparatus includes:
the judging module 51 includes:
a first determining unit 501, configured to determine, for each running node in the server, whether a CPU usage of the running node exceeds a preset threshold;
a determining unit 502, configured to determine that a failed operating node exists in the server if the failure occurs;
and the processing module 52 is configured to adopt a corresponding processing manner according to the determination result, so that the user corresponding to the server can normally log in.
In this embodiment, in order to ensure that the user can normally log in the application software at any time, it should be determined whether there is a failed running node in the server. It can be understood that, when the server cannot support a large number of users to log in, it is first required to query whether the CPU usage of each operating node in the server has a fault, specifically, for each operating node in the server, the first determining unit 501 determines whether the CPU usage of the operating node exceeds a preset threshold, and if so, the determining unit 502 determines that the operating node has a fault. It should be noted that the preset threshold may be set by the operation and maintenance staff according to experience, or may be a default threshold of the system, which is not limited herein. In addition, if no operation node with a fault exists in the server, it can be determined that the server does not have the fault currently, if the user cannot log in normally, the problem may occur in the network connection of the user terminal, and at this time, a network connection state determination prompt can be sent to the user, so that the user can log in the application software normally.
The login device provided by the embodiment can accurately position the operation node with the fault by judging whether the CPU usage of each operation node in the server exceeds the preset threshold value, so that the subsequent optimization of the login mode is facilitated, and a basis is provided for a user to normally login the application software when the server has the fault.
Further, on the basis of any of the above embodiments, the apparatus comprises:
the judging module is used for judging whether a fault operation node exists in the server or not;
the processing module comprises: a first processing unit;
the first processing unit includes:
the first password information receiving subunit is used for receiving password information input by a user if a fault operation node exists in the server;
and the first encryption subunit is used for encrypting the password information through a preset fixed key so as to optimize the login mode of the user.
In this embodiment, since the user needs to input information such as an account and a password during the login process, generally, in order to ensure the security of the user account, the password input by the user needs to be encrypted by using a random key. Therefore, in order to ensure that the user can normally log in the application software, whether a fault operation node exists in the server or not can be judged, if yes, the first password information receiving subunit receives password information input by the user, and the first encryption subunit encrypts the password information input by the user by using a preset fixed key. It can be understood that when the password information is encrypted by using the fixed key, the required time is short, and the pressure on the server is low, so that the requirement of the user for fast login when the server fails can be ensured.
According to the login device provided by the embodiment, when the server breaks down, the password information input by the user is encrypted by adopting the preset fixed key, so that the login speed of the user can be increased and the user experience can be improved on the basis of ensuring the security of the user account and the password.
Optionally, on the basis of any of the above embodiments, the apparatus includes:
the judging module is used for judging whether a fault operation node exists in the server or not;
the processing module comprises: a first processing unit;
the first processing unit includes:
the adjusting subunit is used for adjusting the password length of the encryption tool if the server has a fault operation node;
the second password information receiving subunit is used for receiving password information input by a user;
and the second encryption subunit is used for encrypting the password by an encryption tool after the password length is adjusted so as to realize the optimization of the login mode of the user.
In this embodiment, since the user needs to input information such as an account and a password during the login process, in general, in order to ensure the security of the user account, an encryption tool needs to be used to encrypt the password information input by the user. For example, Bcrypt can be used to encrypt the password, in general, an encryption tool with a password length of 12 bits is used to encrypt the password, and when the server fails, the server is stressed by continuously using the encryption tool with the password length of 12 bits to encrypt the password, so that normal login of a large number of users cannot be supported. Therefore, in order to ensure that a user can normally log in application software, the judging module can firstly judge whether a fault operation node exists in the server, if so, the regulating subunit regulates the password length of the encryption tool to a proper length, the second password information receiving subunit receives password information input by the user, and the second encryption subunit encrypts the password information by adopting the regulated encryption tool, so that the optimization of a login mode is realized, and the login speed of the user is improved. It can be understood that when the adjusted encryption tool is used for encrypting the password information, the required time is short, and the pressure on the server is low, so that the requirement that a user can log in quickly when the server fails can be met.
According to the login device provided by the embodiment, when the server breaks down, password information is encrypted by the password length of the encryption tool, so that the login speed of a user can be increased and the user experience can be improved on the basis of ensuring the security of the user account and the password.
Further, on the basis of any of the above embodiments, the apparatus comprises:
the judging module is used for judging whether a fault operation node exists in the server or not;
the processing module comprises: the first processing unit includes: a regulator subunit;
the regulating subunit is specifically configured to:
if a running node with a fault exists in the server, determining the CPU usage amount of the running node;
adjusting the password length according to the CPU usage;
the second password information receiving subunit is used for receiving password information input by a user;
and the second encryption subunit is used for encrypting the password by an encryption tool after the password length is adjusted so as to realize the optimization of the login mode of the user.
In this embodiment, after the operating state of the operating node in the server is known, and the determining module determines that the failed operating node exists in the server, the adjusting subunit may determine a specific CPU usage amount of the failed operating node, and adjust the password length according to the CPU usage amount. Specifically, if the usage amount of the CPU exceeds a preset first threshold, the password length may be adjusted from 12 bits to 8 bits, and if the usage amount of the CPU exceeds a preset second threshold, the password length may be adjusted from 12 bits to 4 bits, where the second threshold is greater than the first threshold. Therefore, the user can normally log in no matter how large the CPU occupation amount of the operation node is. The second password information receiving subunit receives password information input by a user, and the second encryption subunit encrypts the password information by adopting the adjusted encryption tool, so that the optimization of a login mode is realized, and the login speed of the user is improved. It can be understood that when the adjusted encryption tool is used for encrypting the password information, the required time is short, and the pressure on the server is low, so that the requirement that a user can log in quickly when the server fails can be met.
According to the login device provided by the embodiment, when the server fails, password information is encrypted according to the password length of the encryption tool according to the CPU usage amount of the failed operation node, so that the login speed of a user can be increased and the user experience can be improved on the basis of ensuring the security of the user account and the password.
Fig. 6 is a schematic structural diagram of a login device according to a sixth embodiment of the present invention, as shown in fig. 6, the login device includes: a memory 61, a processor 62;
a memory 61; a memory 61 for storing instructions executable by the processor 62;
wherein the processor 62 is configured to execute the login method as described above by the processor 62.
Yet another embodiment of the present invention provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the login method as described above when executed by a processor.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (18)

1. A login method, comprising:
judging whether a fault operation node exists in the server or not;
and adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
2. The method of claim 1, wherein determining whether a failed operational node exists in the server comprises:
judging whether the CPU usage of the operation nodes exceeds a preset threshold value or not aiming at each operation node in the server;
and if so, judging that the fault operation node exists in the server.
3. The method according to claim 1, wherein the taking of the corresponding processing manner according to the judgment result comprises:
if the server has a fault operation node, optimizing the login mode of the user;
and if the server does not have the operation node with the fault, maintaining the current login mode.
4. The method of claim 3, wherein optimizing the login mode of the user comprises:
receiving password information input by a user;
and encrypting the password information through a preset fixed key so as to realize the optimization of the login mode of the user.
5. The method of claim 3, wherein optimizing the login mode of the user comprises:
adjusting the password length of the encryption tool;
receiving password information input by a user;
and encrypting the password by an encryption tool after the password length is adjusted so as to realize the optimization of the login mode of the user.
6. The method of claim 5, wherein adjusting the password length of the encryption tool comprises:
determining the CPU usage amount of the running node;
and adjusting the password length according to the CPU usage.
7. The method of claim 1, wherein determining whether a failed operational node exists in the server comprises:
receiving an abnormal login instruction sent by a user;
and judging whether a fault operation node exists in the server or not according to the abnormal login instruction.
8. The method of claim 1, wherein determining whether a failed operational node exists in the server comprises:
and periodically judging whether a fault operation node exists in the server or not.
9. A login apparatus, comprising:
the judging module is used for judging whether a fault operation node exists in the server or not;
and the processing module is used for adopting a corresponding processing mode according to the judgment result so as to enable the user corresponding to the server to normally log in.
10. The apparatus of claim 9, wherein the determining module comprises:
the first judgment unit is used for judging whether the CPU usage of each running node in the server exceeds a preset threshold value or not;
and the judging unit is used for judging that the fault operation node exists in the server if the fault operation node exists.
11. The apparatus of claim 9, wherein the processing module comprises:
the first processing unit is used for optimizing the login mode of the user if the server has a fault operation node;
and the second processing unit is used for keeping the current login mode if the server does not have the operation node with the fault.
12. The apparatus of claim 11, wherein the first processing unit comprises:
the first password information receiving subunit is used for receiving password information input by a user;
and the first encryption subunit is used for encrypting the password information through a preset fixed key so as to optimize the login mode of the user.
13. The apparatus of claim 11, wherein the first processing unit comprises:
the adjusting subunit is used for adjusting the password length of the encryption tool;
the second password information receiving subunit is used for receiving password information input by a user;
and the second encryption subunit is used for encrypting the password by an encryption tool after the password length is adjusted so as to realize the optimization of the login mode of the user.
14. The device according to claim 13, wherein the regulating subunit is specifically configured to:
determining the CPU usage amount of the running node;
and adjusting the password length according to the CPU usage.
15. The apparatus of claim 9, wherein the determining module comprises:
the abnormal login instruction receiving unit is used for receiving an abnormal login instruction sent by a user;
and the second judging unit is used for judging whether a fault operation node exists in the server according to the abnormal login instruction.
16. The apparatus of claim 9, wherein the determining module comprises:
and the third judging unit is used for periodically judging whether the running node with the fault exists in the server.
17. A login device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the login method of any one of claims 1-8 by the processor.
18. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, implement the login method of any one of claims 1 to 8.
CN202010066494.9A 2020-01-20 2020-01-20 Login method, login device, login equipment and computer readable storage medium Active CN111835702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010066494.9A CN111835702B (en) 2020-01-20 2020-01-20 Login method, login device, login equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010066494.9A CN111835702B (en) 2020-01-20 2020-01-20 Login method, login device, login equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111835702A true CN111835702A (en) 2020-10-27
CN111835702B CN111835702B (en) 2023-10-31

Family

ID=72913867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010066494.9A Active CN111835702B (en) 2020-01-20 2020-01-20 Login method, login device, login equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111835702B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385341A (en) * 2016-08-31 2017-02-08 福建天晴数码有限公司 Thread monitoring method and system of client
US9692640B1 (en) * 2014-09-05 2017-06-27 Symantec Corporation Dynamic updates to a network server
CN107395395A (en) * 2017-06-19 2017-11-24 国家电网公司 The treating method and apparatus of security protection system
WO2018023600A1 (en) * 2016-08-04 2018-02-08 薄冰 Method for adjusting fingerprint login technique according to usage condition, and login system
CN109672695A (en) * 2019-03-01 2019-04-23 浙江齐治科技股份有限公司 A kind of double factor identity identifying method and device
CN109769261A (en) * 2019-03-25 2019-05-17 新华三技术有限公司 A kind of network failure processing method and device
CN110430071A (en) * 2019-07-19 2019-11-08 云南电网有限责任公司信息中心 Service node fault self-recovery method, apparatus, computer equipment and storage medium
CN110519102A (en) * 2019-09-12 2019-11-29 贵阳动视云科技有限公司 A kind of server failure recognition methods, device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9692640B1 (en) * 2014-09-05 2017-06-27 Symantec Corporation Dynamic updates to a network server
WO2018023600A1 (en) * 2016-08-04 2018-02-08 薄冰 Method for adjusting fingerprint login technique according to usage condition, and login system
CN106385341A (en) * 2016-08-31 2017-02-08 福建天晴数码有限公司 Thread monitoring method and system of client
CN107395395A (en) * 2017-06-19 2017-11-24 国家电网公司 The treating method and apparatus of security protection system
CN109672695A (en) * 2019-03-01 2019-04-23 浙江齐治科技股份有限公司 A kind of double factor identity identifying method and device
CN109769261A (en) * 2019-03-25 2019-05-17 新华三技术有限公司 A kind of network failure processing method and device
CN110430071A (en) * 2019-07-19 2019-11-08 云南电网有限责任公司信息中心 Service node fault self-recovery method, apparatus, computer equipment and storage medium
CN110519102A (en) * 2019-09-12 2019-11-29 贵阳动视云科技有限公司 A kind of server failure recognition methods, device and storage medium

Also Published As

Publication number Publication date
CN111835702B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN103580902B (en) Computer information system and dynamic disaster recovery method thereof
US10075336B2 (en) Parameter adjustment method and apparatus
CN108845916B (en) Platform monitoring and alarming method, device, equipment and computer readable storage medium
CN111538516A (en) Server power firmware upgrading method, device, equipment and readable storage medium
EP3264634B1 (en) Automatically detecting an error in a communication and automatically determining a source of the error
CN111130912A (en) Anomaly positioning method for content distribution network, server and storage medium
CN108733454B (en) Virtual machine fault processing method and device
CN111614548A (en) Message pushing method and device, computer equipment and storage medium
US10135939B2 (en) Method and apparatus for sending delivery notification of network application-related product
CN114448569A (en) Data transmission method, device and computer storage medium
CN107395451B (en) Processing method, device and equipment for internet traffic abnormity and storage medium
CN111835702B (en) Login method, login device, login equipment and computer readable storage medium
CN113722003A (en) Method, device and equipment for adjusting working mode of PHY chip
CN108141406B (en) Method, device and equipment for processing service fault
WO2021077797A1 (en) Quality of service measurement method and device, and user plane function
CN117667531B (en) Four-machine hot standby redundancy processing method, system, electronic equipment and storage medium
CN113938406B (en) Ethernet communication abnormity monitoring and processing method and system based on SOMEIP protocol
US11606260B1 (en) Consensus-based node retirement process in a mesh
CN116599862B (en) Communication method, analysis network element and communication system
CN113595240B (en) Method, device, equipment and storage medium for detecting electric power data
CN115834361B (en) High-availability multi-load VPN data processing method, system, equipment and medium
TWI738277B (en) Monitoring alarm method and its server end
CN117478600B (en) Flow control method and system for serving high concurrency multi-center business center
CN114095361B (en) Equipment convergence maintenance method, device and network system
JP7268228B1 (en) Information processing device, information processing method and information processing program

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