CN102769583B - User distribution device and user distribution method of instant messaging server - Google Patents

User distribution device and user distribution method of instant messaging server Download PDF

Info

Publication number
CN102769583B
CN102769583B CN201210274419.7A CN201210274419A CN102769583B CN 102769583 B CN102769583 B CN 102769583B CN 201210274419 A CN201210274419 A CN 201210274419A CN 102769583 B CN102769583 B CN 102769583B
Authority
CN
China
Prior art keywords
user
grouping
instant communication
communication server
cohesion
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
CN201210274419.7A
Other languages
Chinese (zh)
Other versions
CN102769583A (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.)
ZTE ICT Technologies Co Ltd
Original Assignee
ZTE ICT Technologies 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 ZTE ICT Technologies Co Ltd filed Critical ZTE ICT Technologies Co Ltd
Priority to CN201210274419.7A priority Critical patent/CN102769583B/en
Publication of CN102769583A publication Critical patent/CN102769583A/en
Application granted granted Critical
Publication of CN102769583B publication Critical patent/CN102769583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a user distribution device of an instant messaging server. The user distribution device comprises a user data collecting module, a grouping control module and a management module, wherein the user data collecting module calculates intimacy of at least one user and an associated user in an instant messaging system; the grouping control module adds at least one user to corresponding user sub-group according to the intimacy; the management module distributes at least one user and corresponding user data to corresponding instant messaging server based on the user sub-group, wherein the intimacy is calculated on the basis of communication traffic of the user and the associated user within the preset time. The invention also proposes a user distribution method of the instant messaging server. By the technical scheme disclosed by the invention, users with large communication traffic are centrally stored on a server, so that these users consume fewer resources in communication.

Description

User's distributor of instant communication server and user's distribution method
Technical field
The present invention relates to communication technical field, in particular to a kind of user's distributor of instant communication server and a kind of user's distribution method of instant communication server.
Background technology
In the Internet science and technology develop rapidly, today that various new technology is constantly applied, instant messaging (Instant Messenger is called for short IM) software has become one of software the most frequently used on the Internet.For most people, MSN is not very fresh.Mention IM, we will expect QQ, MSN at once.Certainly, QQ, MSN have become the indispensable MSN of numerous computer work person, the initial function of these softwares is only carried out the transmitting-receiving of instant message by network, and along with the progress of technology, nowadays people usually use these MSNs to carry out resource sharing, as instant or off-line file transfer, net dish transit space etc.But for the manager of enterprise, the universal of the individual MSN such as QQ, MSN also brings worry to them.On the one hand, many managers worry that employee utilizes them to do some things irrelevant with work, and another main worry is, QQ, MSN are mainly towards personal user, and its fail safe, manageability are innately not enough.Based on these worries of company manager, new MSN classification-enterprise-level MSN (Enterprise Instant Message, be called for short EIM) arise at the historic moment, and cause gradually CIO (company information official) concern.Enterprise-level IM needs oneself erection server, for the group enterprise of large-scale transnational cross-region, its branch is many, enterprise staff disperses, trans-departmental, cross-region, strange land office, mobile office feature are obviously, to link up cost higher, for such enterprise, the method that IM server user distributes is particularly important.
Therefore, need a kind of user's distribution method of instant communication server, that user large for the mutual traffic can be concentrated deposits on one server, makes these users consume less resource when communicating.
Summary of the invention
The object of the invention is to, for enterprise-level instant communicating system, there is provided a kind of user's distribution method of instant communication server, that user large for the mutual traffic can be concentrated deposits on one server, makes these users consume less resource when communicating.
According to an aspect of the present invention, propose a kind of user's distributor of instant communication server, comprising: user data acquisition module, the cohesion of computing instant communication at least one user intrasystem and its associated user; Grouping control module, adds in corresponding user grouping according to described cohesion by least one user described; Administration module, based on described user grouping, at least one user described and corresponding user data are dispensed to corresponding instant communication server, wherein, described cohesion is the traffic volume calculations in Preset Time based on described user and its associated user.
In instant communicating system, the associated user of user refers to contact person, the good friend of user.By this technical scheme, can divide into groups to the user in instant communicating system according to the traffic each other, then according to user grouping distribution server.User large for the traffic each other so just can be realized to deposit on one server, make these users consume less resource when communicating.Here " Preset Time " can be arranged according to actual conditions by user or manufacturer, such as be set to carry out for every x hour the data acquisition that duration is y hour, then when after certain cohesion has calculated when x hour, to again carry out the collection of user and the traffic of its associated user in y hour, thus calculate corresponding cohesion, and repeatedly carry out above-mentioned steps according to this.
Preferably, described grouping control module comprises: grouping creates submodule, for realizing packet creation process, comprise: create a user grouping, a non-grouping user is selected from described instant communicating system, be added in described user grouping, and this non-grouping user is set to active user; User adds submodule, for realizing user's adding procedure, comprise: obtain the top n associated user maximum with described active user's cohesion, and according to the size order of cohesion, judge whether each described associated user is non-grouping user successively, if, then stop the judgement to other associated users, and this ungrouped associated user is added in described user grouping, and after this ungrouped associated user is set to described active user, repeat described user's adding procedure, otherwise continue to judge other associated users; Grouping controls submodule, for there is not non-grouping user in described top n associated user, control described grouping to create submodule and described user and add submodule and repeat described packet creation process and described user's adding procedure respectively, until there is not non-grouping user in described instant communicating system.
In this technical scheme, achieve the process to user grouping, the large user of the traffic be each other in same grouping, and each user and only in a user grouping.
Preferably, if there is multiple non-grouping user in described instant communicating system, described grouping creates submodule and preferentially non-grouping user large for the traffic is added into described user grouping.
Preferably, described grouping control module also comprises: numerical value obtains submodule, determine the numerical value of N allowing the associated user obtained, wherein, the influencing factor of the value of described numerical value of N comprise following at least one or a combination set of: the most long process time of the quantity of user, the maximum number of contacts of each described user, each described user grouping in the quantity of described instant communication server, the capacity of each described instant communication server, described instant communicating system.
In this technical scheme, the value of N is relevant with many factors, and particularly, the quantity of instant communication server is more, and the value of N is larger; In instant communicating system, the quantity of user is more, and the value of N is larger; The maximum number of contacts of each user is more, and the value of N is larger; The capacity of each instant communication server is larger, and the value of N is larger; The most long process time of each user grouping refers to that the user data in a grouping is assigned to the maximum duration that a certain server can be tolerated, the most long process time of each user grouping is longer, and the value of N is larger.
Preferably, the user be in same user grouping and corresponding user data are distributed on same instant communication server by described administration module.
In this technical scheme, the user's traffic be each other in same user grouping is larger, these users is distributed on same server and can takies less system resource when communicating, improve the efficiency of system.In addition, can merge multiple user grouping fewer in number, the residual capacity according to the number in user grouping and instant communication server is distributed.
According to a further aspect in the invention, propose a kind of user's distribution method of instant communication server, comprising: step 202, the cohesion of computing instant communication at least one user intrasystem and its associated user; Step 204, adds in corresponding user grouping according to described cohesion by least one user described; Step 206, based on described user grouping, at least one user described and corresponding user data are dispensed to corresponding instant communication server, wherein, described cohesion is the traffic volume calculations in Preset Time based on described user and its associated user.
In instant communicating system, the associated user of user refers to contact person, the good friend of user.By this technical scheme, can divide into groups to the user in instant communicating system according to the traffic each other, then according to user grouping distribution server.User large for the traffic each other so just can be realized to deposit on one server, make these users consume less resource when communicating.Here " Preset Time " can be arranged according to actual conditions by user or manufacturer, such as be set to carry out for every x hour the data acquisition that duration is y hour, then when after certain cohesion has calculated when x hour, to again carry out the collection of user and the traffic of its associated user in y hour, thus calculate corresponding cohesion, and repeatedly carry out above-mentioned steps according to this.
Preferably, described step 204 comprises: step 2042, creates a user grouping, selects a non-grouping user, be added in described user grouping, and this non-grouping user is set to active user from described instant communicating system; Step 2044, obtain the top n associated user maximum with described active user's cohesion, and according to the size order of cohesion, judge whether each described associated user is non-grouping user, if so, then stops the judgement to other associated users successively, and this ungrouped associated user is added in described user grouping, and after this ungrouped associated user is set to described active user, repeat described step 2044, otherwise continue to judge other associated users; Step 2046, if there is not non-grouping user in described top n associated user, then repeats described step 2042 and described step 2044, until there is not non-grouping user in described instant communicating system.
In this technical scheme, achieve the process to user grouping, the large user of the traffic be each other in same grouping, and each user and only in a user grouping.
Preferably, in described step 2042, if there is multiple non-grouping user in described instant communicating system, then preferential non-grouping user large for the traffic is added into described user grouping.
Preferably, before described step 2044, also comprise: the numerical value of N determining to allow the associated user obtained, wherein, the influencing factor of the value of described numerical value of N comprise following at least one or a combination set of: the most long process time of the quantity of user, the maximum number of contacts of each described user, each described user grouping in the quantity of described instant communication server, the capacity of each described instant communication server, described instant communicating system.
In this technical scheme, the value of N is relevant with many factors, and particularly, the quantity of instant communication server is more, and the value of N is larger; In instant communicating system, the quantity of user is more, and the value of N is larger; The maximum number of contacts of each user is more, and the value of N is larger; The capacity of each instant communication server is larger, and the value of N is larger; The most long process time of each user grouping refers to that the user data in a grouping is assigned to the maximum duration that a certain server can be tolerated, the most long process time of each user grouping is longer, and the value of N is larger.
Preferably, described step 206 comprises: the user be in same user grouping and corresponding user data are distributed on same instant communication server.
In this technical scheme, the user's traffic be each other in same user grouping is larger, these users is distributed on same server and can takies less system resource when communicating, improve the efficiency of system.In addition, can merge multiple user grouping fewer in number, the residual capacity according to the number in user grouping and instant communication server is distributed.
By technique scheme, that user large for the mutual traffic can be concentrated deposits on one server, makes these users consume less resource when communicating.
Accompanying drawing explanation
Fig. 1 shows the schematic diagram of user's distributor of instant communication server according to an embodiment of the invention;
Fig. 2 shows the flow chart of user's distribution method of instant communication server according to an embodiment of the invention;
Fig. 3 shows the schematic diagram of user's distributor of instant communication server according to another embodiment of the invention;
Fig. 4 shows the flow chart of user's distribution method of instant communication server according to another embodiment of the invention;
Fig. 5 is the schematic flow sheet of unique user allocation packets in the embodiment shown in Fig. 4;
Fig. 6 is for user grouping adds the detail flowchart of user in the embodiment shown in Fig. 4;
Fig. 7 is the influence condition schematic diagram of numerical value of N in the embodiment shown in Fig. 4.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.
Set forth a lot of detail in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not by the restriction of following public specific embodiment.
Below in conjunction with drawings and Examples, the present invention will be further described.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Fig. 1 shows the schematic diagram of user's distributor of instant communication server according to an embodiment of the invention.
As shown in Figure 1, user's distributor 100 of instant communication server comprises according to an embodiment of the invention: user data acquisition module 102, the cohesion of computing instant communication at least one user intrasystem and its associated user; Grouping control module 104, adds in corresponding user grouping according to cohesion by least one user; Administration module 106, based on user grouping, at least one user and corresponding user data are dispensed to corresponding instant communication server, wherein, cohesion is the traffic volume calculations in Preset Time based on user and its associated user.
In instant communicating system, the associated user of user refers to contact person, the good friend of user.By this technical scheme, can divide into groups to the user in instant communicating system according to the traffic each other, then according to user grouping distribution server.User large for the traffic each other so just can be realized to deposit on one server, make these users consume less resource when communicating.Here " Preset Time " can be arranged according to actual conditions by user or manufacturer, such as be set to carry out for every x hour the data acquisition that duration is y hour, then when after certain cohesion has calculated when x hour, to again carry out the collection of user and the traffic of its associated user in y hour, thus calculate corresponding cohesion, and repeatedly carry out above-mentioned steps according to this.
Preferably, grouping control module 104 comprises: grouping creates submodule 1042, for realizing packet creation process, comprise, create a user grouping, from instant communicating system, select a non-grouping user, be added in user grouping, and this non-grouping user is set to active user; User adds submodule 1044, for realizing user's adding procedure, comprise, obtain the top n associated user maximum with active user's cohesion, and according to the size order of cohesion, judge whether each associated user is non-grouping user successively, if, then stop the judgement to other associated users, and this ungrouped associated user is added in user grouping, and after this ungrouped associated user is set to active user, repeat user's adding procedure, otherwise continue to judge other associated users; Grouping controls submodule 1046, for there is not non-grouping user in top n associated user, control packet establishment submodule 1042 and user add submodule 1044 and repeat packet creation process and user's adding procedure respectively, until there is not non-grouping user in instant communicating system.
In this technical scheme, achieve the process to user grouping, the large user of the traffic be each other in same grouping, and each user and only in a user grouping.
Preferably, if there is multiple non-grouping user in instant communicating system, grouping creates submodule 1042 and preferentially non-grouping user large for the traffic is added into user grouping.
Preferably, grouping control module 104 also comprises: numerical value obtains submodule 1048, determine the numerical value of N allowing the associated user obtained, wherein, the influencing factor of the value of numerical value of N comprise following at least one or a combination set of: the most long process time of the quantity of user, the maximum number of contacts of each user, each user grouping in the quantity of instant communication server, the capacity of each instant communication server, instant communicating system.
In this technical scheme, the value of N is relevant with many factors, and particularly, the quantity of instant communication server is more, and the value of N is larger; In instant communicating system, the quantity of user is more, and the value of N is larger; The maximum number of contacts of each user is more, and the value of N is larger; The capacity of each instant communication server is larger, and the value of N is larger; The most long process time of each user grouping refers to that the user data in a grouping is assigned to the maximum duration that a certain server can be tolerated, the most long process time of each user grouping is longer, and the value of N is larger.
Preferably, the user be in same user grouping and corresponding user data are distributed on same instant communication server by administration module 106.
In this technical scheme, the user's traffic be each other in same user grouping is larger, these users is distributed on same server and can takies less system resource when communicating, improve the efficiency of system.In addition, can merge multiple user grouping fewer in number, the residual capacity according to the number in user grouping and instant communication server is distributed.
Fig. 2 shows the flow chart of user's distribution method of instant communication server according to an embodiment of the invention.
As shown in Figure 2, user's distribution method of instant communication server, comprising: step 202 according to an embodiment of the invention, the cohesion of computing instant communication at least one user intrasystem and its associated user; Step 204, adds in corresponding user grouping according to cohesion by least one user; Step 206, based on user grouping, at least one user and corresponding user data are dispensed to corresponding instant communication server, wherein, cohesion is the traffic volume calculations in Preset Time based on user and its associated user.
In instant communicating system, the associated user of user refers to contact person, the good friend of user.By this technical scheme, can divide into groups to the user in instant communicating system according to the traffic each other, then according to user grouping distribution server.User large for the traffic each other so just can be realized to deposit on one server, make these users consume less resource when communicating.Here " Preset Time " can be arranged according to actual conditions by user or manufacturer, such as be set to carry out for every x hour the data acquisition that duration is y hour, then when after certain cohesion has calculated when x hour, to again carry out the collection of user and the traffic of its associated user in y hour, thus calculate corresponding cohesion, and repeatedly carry out above-mentioned steps according to this.
Preferably, step 204 comprises: step 2042, creates a user grouping, selects a non-grouping user, be added in user grouping, and this non-grouping user is set to active user from instant communicating system; Step 2044, obtain the top n associated user maximum with active user's cohesion, and according to the size order of cohesion, judge whether each associated user is non-grouping user, if so, then stops the judgement to other associated users successively, and this ungrouped associated user is added in user grouping, and after this ungrouped associated user is set to active user, repeated execution of steps 2044, otherwise continue to judge other associated users; Step 2046, if there is not non-grouping user in top n associated user, then, until there is not non-grouping user in instant communicating system in repeated execution of steps 2042 and step 2044.
In this technical scheme, achieve the process to user grouping, the large user of the traffic be each other in same grouping, and each user and only in a user grouping.
Preferably, in step 2042, if there is multiple non-grouping user in instant communicating system, then preferential non-grouping user large for the traffic is added into user grouping.
Preferably, before step 2044, also comprise: the numerical value of N determining to allow the associated user obtained, wherein, the influencing factor of the value of numerical value of N comprise following at least one or a combination set of: the most long process time of the quantity of user, the maximum number of contacts of each user, each user grouping in the quantity of instant communication server, the capacity of each instant communication server, instant communicating system.
In this technical scheme, the value of N is relevant with many factors, and particularly, the quantity of instant communication server is more, and the value of N is larger; In instant communicating system, the quantity of user is more, and the value of N is larger; The maximum number of contacts of each user is more, and the value of N is larger; The capacity of each instant communication server is larger, and the value of N is larger; The most long process time of each user grouping refers to that the user data in a grouping is assigned to the maximum duration that a certain server can be tolerated, the most long process time of each user grouping is longer, and the value of N is larger.
Preferably, step 206 comprises: the user be in same user grouping and corresponding user data are distributed on same instant communication server.
In this technical scheme, the user's traffic be each other in same user grouping is larger, these users is distributed on same server and can takies less system resource when communicating, improve the efficiency of system.In addition, can merge multiple user grouping fewer in number, the residual capacity according to the number in user grouping and instant communication server is distributed.
Fig. 3 shows the schematic diagram of user's distributor of instant communication server according to another embodiment of the present invention.
As shown in Figure 3, user's distributor 300 of instant communication server according to another embodiment of the present invention comprises: user data initial acquisition module 302(is equivalent to aforementioned user data acquisition module 102), client server upgrade control module 304(be equivalent to aforementioned groupings control module 104) and distribution of information policy management module 306(be equivalent to aforementioned administration module 106), user data initial acquisition module 302 can to client server upgrade control module 304 transmit certain single packet and grouping in user data, data initial acquisition module 302 is when upgrading the user data that control module 304 is initiated in certain single packet and grouping to client server, carry out the establishment of user data in single packet and grouping.
Client server upgrades control module 304 for completing grouping all users, then send grouping information dispense request according to the user data in all groupings and grouping to distribution of information policy management module 306; Wherein user data initial acquisition module 302 mails to client server and upgrades the data of control module 304 and need to comprise user data in the group name of grouping and grouping; After only collecting the user data of all users, client server upgrades control module 304 just can by user data transmission in all groupings of having distributed and grouping to distribution of information policy management module 306, the strategy distribution that distribution of information policy management module 306 is carried out after carrying out grouping merger to a certain degree according to residual capacity in the quantity of the number of users of whole instant communicating system, server, each server " divide into groups---server ".Distribution of information policy management module 306 obtains the information of the user data in all groupings and grouping that family server update control module 304 sends, the grouping less to user can realize certain merger, in the server of then being specified by each group result afferent message distribution policy administration module 306.User refers to the PC end or mobile terminal of having installed enterprise-level MSN.After carrying out " grouping---server " strategy distribution, after each grouping information is kept at corresponding server, start the next user of time period and the initial data collection of other user traffic, at this moment after section end of run, to this, in the time period, all user profile is added up, and then the information of user is passed to user data initial acquisition module 302.When carrying out the initial data collection of user and other user traffic, distribution of information policy management module 306 is according to number of servers, the capacity of individual server, the number of users of whole IM system, the maximum duration of maximum good friend's quantity of unique user and unique user grouping decides to search user good friend times N, distribution of information policy management module 306 is imported into user data initial acquisition module 302 and is searched user good friend times N, wherein: search user good friend times N and refer to the maximum and number of times of the good friend that do not divide into groups of active user's circulation searching cohesion, if do not find the maximum good friend that do not divide into groups of cohesion of active user for N time by the cohesion sequential search of active user good friend, represent that the grouping of active user place has been set up.
Below in conjunction with Fig. 4 to Fig. 7, user's distribution method of instant communication server is according to another embodiment of the invention described.
See Fig. 4, this flow process at least comprises:
Step 402, obtains user data;
Step 404, obtains non-grouping user list, and from all customer data, finding out ungrouped user list, (here, when creating grouping first, the non-grouping user list found is the user of all use MSNs; When not completing all user grouping, the user in non-grouping user list is that in whole IM system, all users remove the remaining part of grouping user);
Step 406, create new grouping and add active user, when a upper grouping add user terminate after and obtain non-grouping user list for carrying out empty, first new grouping is created, and never search the maximum user of the traffic in grouping user list, this user is set to the active user of new grouping, completes the establishment of new grouping and the interpolation of grouping active user;
Step 408, search the maximum good friend of active user's cohesion, carrying out circulation searching (process of circulation searching is shown in Figure 6) according to searching user good friend times N, if also do not find the maximum good friend that do not divide into groups of cohesion within cycle-index, then entering current group process ends 410; If found the maximum and ungrouped good friend of user's cohesion in cycle-index, then enter step 412, this good friend has joined within current grouping, the new user added in grouping is set to the active user of this grouping;
Step 410, current group divides complete;
Step 412, maximum for the active user's cohesion good friend of grouping is added grouping, the maximum good friend that do not divide into groups of active user's cohesion that can be found by step 418, in this grouping, then add the maximum good friend that do not divide into groups of cohesion of active user, active user in this grouping is replaced to the user newly added, come back to step 408, search the maximum good friend of active user's cohesion;
Step 414, judges whether all users have divided into groups; If divide all users of end module by current group to have divided into groups, then enter step 416; If do not complete the grouping of all users, then proceed to search user data, get back to step 402;
Step 416, is assigned to corresponding server according to all groupings distributed by user data in grouping.
See Fig. 5, the flow process to user grouping is divided by unique user at least to comprise:
Step 502, current user information imports into;
Step 504, (when current user information imports into, non-grouping user list refers to all users of importing into this user to be incorporated as grouping user list; When judging to produce the user data in single packet and grouping, non-grouping user list refers to remove all users divided into groups in all users);
Step 506, the maximum good friend of grouping of cohesion that this user is taken as other users joins a user grouping;
Step 508, this user becomes traffic maximum user in non-grouping user list, and adding new grouping becomes interior first user of grouping;
Step 510, becomes a point group member.
See Fig. 6, add user for user grouping and at least comprise following flow process:
Step 602, is set to active user by a user;
Whether step 604, searches the maximum good friend of cohesion of active user, and the maximum good friend of this cohesion is the good friend of active user, and within the time period gathering related information, produce the maximum user of amount of information exchange, do not distinguish this user and divide into groups with active user;
Step 606, the counter N of the maximum good friend that do not divide into groups of circulation searching cohesion, judge the number of times searching user good friend quantity, if number of times is greater than N, then no longer judge, enter step 614, grouping completes; If N is still greater than 0, then enter step 608, judge whether the maximum good friend of current cohesion divides into groups;
Step 608, judge whether the maximum good friend of current cohesion divides into groups, among the grouping produced before judging whether to have been added to by the maximum good friend of the cohesion of the active user found out before, if among the grouping produced before having added to, then enter step 612, otherwise enter step 610;
Step 610, adds this grouping by maximum for active user's cohesion good friend, judge to show that the maximum good friend of current cohesion does not add other grouping, now maximum for the cohesion of active user good friend is added current group by step 608;
Step 612, delete element in the maximum buddy list of cohesion, maximum for the cohesion of active user good friend is deleted from the maximum buddy list of the cohesion of active user, in order to avoid this good friend still detected during next cycle detection, this procedure avoids and detect same good friend more than twice or twice;
Step 614, has divided into groups by the maximum good friend of the cohesion of cyclic query active user, if inquiry times exceedes when searching user good friend quantity N, then will preserve the user profile in current group and grouping.
About the value of searching user good friend quantity N, can see Fig. 7.As shown in Figure 7 maximum good friend's quantity 704 of value and the number of users 702 in whole instant communicating system, the unique user of N, instant communication server quantity 706, each time the capacity 708 of communication server relevant with the unique user maximum duration 710 of dividing into groups.Particularly, the number of users 702 in instant communicating system refers to the sum of the user of whole instant communicating system, the order of magnitude of instant communication user can be millions to hundred million grades, such instant communicating system has MSN, QQ etc.; And the order of magnitude of the user of enterprise-level instant messaging is about 100,000 grades.The number of users magnitude of instant communicating system is larger, then the value of searching user good friend times N is larger.
Maximum good friend's quantity 704 of unique user refers in instant communicating system, and unique user can add the maximum of good friend; Maximum good friend's quantity of such as QQ is that 500(is not when using any value-added service), maximum good friend's quantity of MSN is 1000.If maximum good friend's quantity of unique user is more, then the value of searching user good friend times N is larger.
Instant communication server quantity 706 refers to the number of servers storing whole instant communication system user data.
The capacity 708 of individual server refers to that single instant communication server can store the maximum quantity restriction of user data.Search user good friend times N to increase along with the increase of the capacity 708 of number of servers 706 and individual server.
The maximum duration 710 of unique user grouping refers to that in a grouping, all customer data is assigned to the maximum duration that a certain server can be tolerated, if the maximum duration of unique user grouping is longer, it is larger to search user good friend times N.
To sum up, according to user's distributor and user's distribution method of instant communication server of the present invention, that user large for the mutual traffic can be concentrated deposits on one server, makes these users consume less resource when communicating.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. user's distributor of instant communication server, is characterized in that, comprising:
User data acquisition module, the cohesion of computing instant communication at least one user intrasystem and its associated user;
Grouping control module, adds in corresponding user grouping according to described cohesion by least one user described;
Administration module, is dispensed to corresponding instant communication server based on described user grouping by least one user described and corresponding user data,
Wherein, described cohesion based on described user and its associated user the traffic volume calculations in Preset Time;
Described grouping control module comprises:
Grouping creates submodule, for realizing packet creation process, comprising: create a user grouping, selects a non-grouping user, be added in described user grouping, and this non-grouping user is set to active user from described instant communicating system;
User adds submodule, for realizing user's adding procedure, comprise: obtain the top n associated user maximum with described active user's cohesion, and according to the size order of cohesion, judge whether each described associated user is non-grouping user successively, if, then stop the judgement to other associated users, and this ungrouped associated user is added in described user grouping, and after this ungrouped associated user is set to described active user, repeat described user's adding procedure, otherwise continue to judge other associated users;
Grouping controls submodule, for there is not non-grouping user in described top n associated user, control described grouping to create submodule and described user and add submodule and repeat described packet creation process and described user's adding procedure respectively, until there is not non-grouping user in described instant communicating system.
2. user's distributor of instant communication server according to claim 1, it is characterized in that, if there is multiple non-grouping user in described instant communicating system, described grouping creates submodule and preferentially non-grouping user large for the traffic is added into described user grouping.
3. user's distributor of instant communication server according to claim 1, is characterized in that, described grouping control module also comprises:
Numerical value obtains submodule, determines the numerical value of N of associated user allowing to obtain, and wherein, the influencing factor of the value of described numerical value of N comprises following one or a combination set of:
The most long process time of the quantity of user, the maximum number of contacts of each described user, each described user grouping in the quantity of described instant communication server, the capacity of each described instant communication server, described instant communicating system.
4. user's distributor of instant communication server according to any one of claim 1 to 3, is characterized in that, the user be in same user grouping and corresponding user data are distributed on same instant communication server by described administration module.
5. user's distribution method of instant communication server, is characterized in that, comprising:
Step 202, the cohesion of computing instant communication at least one user intrasystem and its associated user;
Step 204, adds in corresponding user grouping according to described cohesion by least one user described;
Step 206, is dispensed to corresponding instant communication server based on described user grouping by least one user described and corresponding user data,
Wherein, described cohesion based on described user and its associated user the traffic volume calculations in Preset Time;
Described step 204 comprises:
Step 2042, creates a user grouping, selects a non-grouping user, be added in described user grouping, and this non-grouping user is set to active user from described instant communicating system;
Step 2044, obtain the top n associated user maximum with described active user's cohesion, and according to the size order of cohesion, judge whether each described associated user is non-grouping user, if so, then stops the judgement to other associated users successively, and this ungrouped associated user is added in described user grouping, and after this ungrouped associated user is set to described active user, repeat described step 2044, otherwise continue to judge other associated users;
Step 2046, if there is not non-grouping user in described top n associated user, then repeats described step 2042 and described step 2044, until there is not non-grouping user in described instant communicating system.
6. user's distribution method of instant communication server according to claim 5, it is characterized in that, in described step 2042, if there is multiple non-grouping user in described instant communicating system, then preferential non-grouping user large for the traffic is added into described user grouping.
7. user's distribution method of instant communication server according to claim 5, is characterized in that, before described step 2044, also comprises:
Determine the numerical value of N of associated user allowing to obtain, wherein, the influencing factor of the value of described numerical value of N comprises following one or a combination set of:
The most long process time of the quantity of user, the maximum number of contacts of each described user, each described user grouping in the quantity of described instant communication server, the capacity of each described instant communication server, described instant communicating system.
8. user's distribution method of the instant communication server according to any one of claim 5 to 7, is characterized in that, described step 206 comprises:
The user be in same user grouping and corresponding user data are distributed on same instant communication server.
CN201210274419.7A 2012-08-03 2012-08-03 User distribution device and user distribution method of instant messaging server Active CN102769583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210274419.7A CN102769583B (en) 2012-08-03 2012-08-03 User distribution device and user distribution method of instant messaging server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210274419.7A CN102769583B (en) 2012-08-03 2012-08-03 User distribution device and user distribution method of instant messaging server

Publications (2)

Publication Number Publication Date
CN102769583A CN102769583A (en) 2012-11-07
CN102769583B true CN102769583B (en) 2015-03-18

Family

ID=47096837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210274419.7A Active CN102769583B (en) 2012-08-03 2012-08-03 User distribution device and user distribution method of instant messaging server

Country Status (1)

Country Link
CN (1) CN102769583B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354205B (en) * 2015-01-13 2018-06-29 吴昱珂 Interpersonal relationships management method, interpersonal relationships management system and corresponding intelligent terminal
CN104994006B (en) * 2015-07-14 2017-10-24 王明伟 Back-to-back instant communicating method and device based on wechat public number
CN106921777B (en) * 2017-03-07 2020-11-03 百度在线网络技术(北京)有限公司 Information processing method and device, computer equipment and computer readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127735A (en) * 2007-09-24 2008-02-20 腾讯科技(深圳)有限公司 A method, system and device for grouping mobile instant communication contacts
WO2009130218A1 (en) * 2008-04-24 2009-10-29 Xelerated Ab A traffic manager and a method for a traffic manager
CN101997692A (en) * 2009-08-09 2011-03-30 朱烽 Friend information generating method of instant messaging (IM) software based on voice communication records

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127735A (en) * 2007-09-24 2008-02-20 腾讯科技(深圳)有限公司 A method, system and device for grouping mobile instant communication contacts
WO2009130218A1 (en) * 2008-04-24 2009-10-29 Xelerated Ab A traffic manager and a method for a traffic manager
CN101997692A (en) * 2009-08-09 2011-03-30 朱烽 Friend information generating method of instant messaging (IM) software based on voice communication records

Also Published As

Publication number Publication date
CN102769583A (en) 2012-11-07

Similar Documents

Publication Publication Date Title
EP1869868B1 (en) System, network device, method, and computer program product for active load balancing using clustered nodes as authoritative domain name servers
CN102769583B (en) User distribution device and user distribution method of instant messaging server
CN109040259B (en) CDN node distribution method and system based on MEC
CN103685603B (en) Domain name system resolution and equipment
CN103685583A (en) Method and system for resolving domain names
CN104702625A (en) Method and device for scheduling access request in CDN (Content Delivery Network)
CN103517405B (en) A kind of method and system of network positions, mobile terminal and network side equipment
CN103888277B (en) A kind of gateway disaster-tolerant backup method, device and system
CN102710419A (en) User authentication method and device
CN104995899A (en) Server load management
Hsu et al. Virtual network mapping algorithm in the cloud infrastructure
CN102333130A (en) Method and system for accessing cache server and intelligent cache scheduler
CN104144223A (en) Data obtaining method and device
Nahir et al. Workload factoring with the cloud: A game-theoretic perspective
Rawadi et al. Providing local cloud services to mobile devices with inter-cloudlet communication
CN104735103A (en) Method and device for managing distributed data and method and device for receiving distributed data
CN103326925A (en) Message push method and device
CN109376155A (en) ID generation method and device, storage medium and electronic equipment
CN105335362B (en) The processing method and system of real time data, instant disposal system for treating
CN110022375A (en) The distribution method and device of agent node
Wang et al. A clustering-based approach for Virtual Network Function Mapping and Assigning
CN103167029A (en) Method and device for discovering specific resources on eMule network
CN101674320A (en) Service addressing method and device in cluster environment
CN104283963A (en) Distributed and collaborative type CDN load balancing method
CN102932485B (en) The querying method of server connection state and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant