CN108628918A - System deployment and dependence automatic Plotting System and method - Google Patents

System deployment and dependence automatic Plotting System and method Download PDF

Info

Publication number
CN108628918A
CN108628918A CN201710903955.1A CN201710903955A CN108628918A CN 108628918 A CN108628918 A CN 108628918A CN 201710903955 A CN201710903955 A CN 201710903955A CN 108628918 A CN108628918 A CN 108628918A
Authority
CN
China
Prior art keywords
service
deployment
dependence
domain
step2
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
CN201710903955.1A
Other languages
Chinese (zh)
Other versions
CN108628918B (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.)
Nanjing Tu Niu Science And Technology Ltd
Original Assignee
Nanjing Tu Niu Science And Technology 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 Nanjing Tu Niu Science And Technology Ltd filed Critical Nanjing Tu Niu Science And Technology Ltd
Priority to CN201710903955.1A priority Critical patent/CN108628918B/en
Publication of CN108628918A publication Critical patent/CN108628918A/en
Application granted granted Critical
Publication of CN108628918B publication Critical patent/CN108628918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/50Network service management, e.g. ensuring proper service fulfilment according to agreements

Abstract

The invention discloses system deployments and dependence automatic Plotting System and automatic drafting method, obtain deployment information, service inventory and the mutual dependence of system by the calling daily record between analysis system, and shown.System includes:Service call journal module, system deployment service and dependence analysis module, system deployment and dependence display module, static data management module between system.The present invention substantially increases manufacturing speed, and can be updated at any time as needed compared with conventional method;And accuracy higher, it is analyzed based entirely on the behavior of system, has combed out whole dependences, do not omitted and mistake.

Description

System deployment and dependence automatic Plotting System and method
Technical field
The invention belongs to data analysis technique field, relate to automatic Plotting System deployment and dependence system and Method.
Background technology
Internet enterprises generally use a large amount of application system, and in addition to the website of opening, APP etc., inside also has Operation, the management of many application system supports enterprise.Usually there is more complex call relation between internal application system, one The a certain function that system is supplied to another system to call is referred to as to service.The system type of Internet enterprises is also very complicated, has Traditional web applications also have novel micro services application.System deployment is that one kind being capable of reaction system deployment with dependence graph The figure of relationship between complication system is commonly used as the important evidence of framework decision and complication system positioning problems, and importance is not It says and explains.Industry at present generally by the way of artificial drawing system deployment and dependence graph.
Artificial mode speed of drawing is slower, and inefficiency, it is clear that there are following limitations:
1. update is slow.The development of internet is at a tremendous pace, and the dependence between the system of Internet enterprises is also a day crescent It is different;And the dependence graph work time-consuming and laborious as one can only regularly update, and can not accomplish to grow with each passing hour.In particular with The development of cloud and maturation, actual deployment more mobilism, the intelligence of system, variation is more frequent, can not manually accomplish Synchronized update.
2. objective circumstances cannot be reacted completely.After system complex, manpower can not arrange complete all relationships, common drawing Software can not also carry thousands of dependence.
Invention content
To solve the above problems, the invention discloses system deployment and dependence automatic Plotting System and automatic drafting sides Method, by call daily record data acquisition and analysis, can rapidly and accurately manufacturing system deployment and dependence graph.
In order to achieve the above object, the present invention provides the following technical solutions:
System deployment and dependence automatic drafting method, include the following steps:
Step1, acquires service call daily record between example, and daily record includes following information:Allocating time, called side IP and port Number, the service identifiers of called side IP and port numbers, calling;
Step2 arranges the service of call relation and its calling between all examples in daily record, sorts out each example and above carry All services supplied, and example and service are grouped, the example after the completion of being grouped in each group is enabled and serviced without intersection, often A group of correspondence set of system searches system or limbic system after its corresponding grouping, according to example in daily record for each example Between call relation and service, in conjunction with the mapping relations of example and system obtain the call relation between all systems;
Step3, drawing system is disposed and call graph, the rectangle frame of first arranging system grouping on figure, then drawing system Small icon, the deployment details and upstream-downstream relationship of display system are capable of in relational graph.
Further, the step2 specifically comprises the following steps:
Step2-1 obtains all called side examples and calls called square example and called clothes according to log information The relationship data of business;
Step2-2, analysis step2-1 provide the relationship of the example and service of service, sort out and provide on each example All services, are denoted as map;
Step2-3, nested searching loop map, is grouped example and service, enables after being grouped between any two group Without intersection, the data after grouping are denoted as deploy for example and service, are independently disposed on each group counterlogic a set of System, the example list of service list, deployment that each system of each grouped record provides;
Step2-4 arranges the systematic code of each system in deploy;
Step2-5 gives system unique identifier;
Step2-6 obtains all instance identifications according to data, arranges whole example list instanceList;
Step2-7 traverses each example in instanceList, searches its corresponding system in deploy, from And the relationship for obtaining example and system is charged in instanceBelong;If correspondence system is not present in example in deploy, The then correspondence of jointing edge system ip and systematic code, the mapping relations for obtaining example and limbic system are charged in cNode;
Step2-8, by client instance, the server-side example in data, in conjunction with instanceBelong, deploy, CNode is searched, and the call relation between all systems is obtained.
Further, the step2-3 includes following sub-step:
1) since a ungrouped example a, example a is put into a new grouping;
If 2) service list and be not grouped the service list intersection of example b offers not that the grouping where example a provides For sky, example b is just divided into example a and is gone in the group;The process is repeated until group and the ungrouped example where example a Until service list intersection is sky;
3) it is repeated since 1), until all examples are completed grouping.
Further, the step2-8 includes following sub-step:
Dummy variable link_temp is initialized, data is traversed:
1) client instance, client ip, server-side example, the service of client instance calling server-side example are obtained service;
2) Home System of client instance is searched from instanceBelong, if not then packet is searched from cNode The system of client instance is contained, if looking up the system for containing client ip in cNode not yet, as in aforementioned lookup Correspondence system can be found and be denoted as c;It all can not find to be put into and recycle next time;
3) system for containing service service is searched from deploy, if not then is looked for from instanceBelong Go out the corresponding system of server-side example, s be denoted as correspondence system can be found in aforementioned lookup, if it all can not find into Enter and recycles next time;
4) the service service that system c has invoked system s is recorded in link_temp;
5) link_temp data deduplications arrange data format, obtain the service list called between system.
Further, the step3 specifically includes following sub-step:
Step3-1 opens link in a browser, load necessary html, css, js and data deploy, cNode, The correspondence of link, systematic code and business domains;
Step3-2 obtains the cross between the width gw of show area, the width sw of system icon and height sh, system icon Suggest maximum system line number ml, domain region lateral separation dpw to being spaced in pw and longitudinally spaced ph, domain frame, between the longitudinal direction of domain region Every dph;
Step3-3, the system number that can be at most arranged per a line in the case of calculating show area arranging system icon: Cols=(gw+pw)/(sw+pw) and downward rounding;It calculates each domain and is expert at and recommend the system quantity of receiving:Dm=cols* ml;
Step3-4 arranges business domains since upper left, enters a new line in the place nearest from dm;
Step3-5 calculates the size of each business domains rectangle frame;
Step3-6 draws the rectangle in each domain successively since the upper left corner;
Step3-7, the drawing system icon one by one in the rectangle in each domain;
Step3-8 extracts client's method, system of the system from link, draws this in mouse activation system icon A little systems are directed toward the arrow of the system;The service method, system that the system is extracted from link, draws the system and is directed toward these and be The arrow of system;Bullet layer shows all examples of all services of system offer, deployment.
Further, the step3-4 specifically includes following sub-step:
A null is initialized, business domains are traversed:
1) system quantity is denoted as lt in current line, and system quantity is denoted as t in the current field, enables st=lt+t;
If 2) st<The domain is added to the row by=dm;Otherwise it executes 3)
3) (if st-dm)>(dm-lt), then a newline is initialized, which is added in newline, and current line becomes new Row, otherwise the domain is added in the row, initializes a newline, and subsequent system is added in newline;
4) 1) -3 are repeated), until all domains have all been handled, result is denoted as domainLines.
Further, the step3-5 specifically includes following sub-step:
Traverse domainLines:
1) quantity in domain is dc, system quantity sc in current line, after being calculate by the following formula current line deduction domain frame gap The system number that often row can at most accommodate:Cn=(gw+pw*dc-dpw* (dc-1))/(sw+pw) and downward rounding;
2) all drained required line number, rn=sc/cn's all systems simultaneously round up in calculated permutations current line;
3) rn_temp is incremented by since rn with 1
I.tcn=0 traverses each domain in the row,
1. system quantity is dsn in the current field, minCols=dsn/rn_temp simultaneously rounds up, tcn+=minCols
Ii. work as tcn<When=cn, the minCols in each domain, rn=rn_temp, end loop are recorded
4) it is calculate by the following formula row height, while being also the uniform height in all domains in the row:Height=(sh+ph) * rn;
5) row residue length tail=gw+pw*dc-dpw* (dc-1)-(sw+pw) * tcn are calculate by the following formula, quilt is obtained Quotient diffs and remainder diffNum of the divisor tail to divisor dc;
6) width in each domain is calculated, the width computational methods in preceding diffNum domain are in the row:Width=(sw+ Pw the width computational methods of) * minCols-pw+diff+1, other domains are:Width=(sw+pw) * minCols-pw+diff.
The present invention also provides system deployments and dependence automatic Plotting System, including:Service call daily record between system Module, system deployment service and dependence analysis module, system deployment and dependence display module, static data manage mould Block;Service call journal module is for acquiring service call daily record between example between the system;System deployment service and dependence are closed It is that analysis module is used to be analyzed based on the collected daily record of service call journal module between system, the practical portion of analysis system Administration, example and three parts of attaching relation of service, limbic system information data arrange all call relations in daily record, arrange institute There are system and the example and service list, final arrange to obtain call relation between system;The system deployment and dependence exhibition Show module for drawing system deployment and call graph, the rectangle frame of first arranging system grouping in display diagram, then drawing system Small icon, and the deployment details and upstream-downstream relationship of the system can be shown after clicking system icon;The static data Management module is for managing the correspondence of limbic system ip and systematic code, the correspondence of systematic code and business domains.
Further, the system deployment and dependence display module, which are plotted in, meets fixed width and is neatly arranged with group system Under conditions of being listed in together, so that required appearing is minimum using specific composition method.
Compared with prior art, the invention has the advantages that and advantageous effect:
1. the present invention can obtain the deployment information of system, service inventory and mutually by the calling daily record between analysis system Between dependence, and shown, compared with conventional method, substantially increase manufacturing speed, and can as needed at any time It is updated, manual operation can be substituted completely, reduce human cost.
2. when calling daily record between analysis system, the service abstraction for being provided system based on graph theory is point, will be deployed in Relationship is abstracted as line as the same example, constitutes a width figure;Community discovery has been carried out to point on figure, has sorted out system Inventory, example deployment inventory, offer service inventory, when calling daily record between analysis system, pass through reflecting for example and system Relationship is penetrated, the dependence between system and system has been sorted out;Accuracy higher is analyzed based entirely on the behavior of system, Whole dependences has been combed out, has not been omitted and mistake.
3. the present invention is when drawing whole system deployments and call graph, using specific composition method, after making grouping System arrangement is more compact.
Description of the drawings
Fig. 1 is system deployment provided by the invention and dependence automatic drafting method overall step flow chart.
Fig. 2 is journal format exemplary plot.
Fig. 3 is step 2 neutron flow chart of steps.
Fig. 4 call relation exemplary plots between example in daily record.
Fig. 5 is the front and back schematic diagram of map groupings.
Fig. 6 is display area schematic diagram.
Fig. 7 is step 3 neutron flow chart of steps.
Fig. 8 is the system deployment and dependence graph finally drawn out, and wherein system is by business domains grouping arrangement.
When Fig. 9 is with mouse activation system chart, page status schematic diagram.
Specific implementation mode
Technical solution provided by the invention is described in detail below with reference to specific embodiment, it should be understood that following specific Embodiment is only illustrative of the invention and is not intended to limit the scope of the invention.
The specific deployment of application system (Application) on the server is referred to as example by the present invention (Instance), example is by its occupied IP and port numbers unique mark.System deployment provided by the invention and dependence Automatic drafting method is as shown in Figure 1, include the following steps:
Step1, service call daily record between acquisition and storage example.
After an example calls a certain service of another example in the present invention, it can record and call daily record (such as figure below institute Show), include following information in daily record:Allocating time (startTime), called side IP (consumerIp) and port numbers (consumerPort), the service identifiers of called side IP (serviceIp) and port numbers (servicePort), calling (serviceName), success or not (success).Using Logstash, this Open-Source Tools stores these daily records, is calling Data can be preserved in 2 seconds after behavior, storage data format is as shown in Figure 2.
Step2 arranges all call relations in daily record, arranges all systems and the example and service list, final whole Reason obtains call relation between system.Specifically as shown in figure 3, including the following steps:
Step2-1, combination log information obtain all called side examples and call called square example and server-side real The relationship of a certain service of example.The daily record for being analyzed nearest a period of time in the present invention using Logstash is analyzed all existing Call relation, i.e. exhaustion go out the such relationship (as shown in Figure 4) of c services that all existing a examples call b examples, are remembered Make data.
Step2-2, analysis provide the relationship of the example and service of service.To data processing, by " serviceIp: Unique marks of the servicePort " as example sorts out all services (serviceName) provided on each example, makes With array (" example 1 "=>Array (" service 1 ", " service 2 ")) form preserve, be denoted as map.By service as point, deployment Service setting-out between any two on same instance, directly line contains all while providing the two between two points The example of service constitutes a width figure, as top half is not grouped preceding state in Fig. 5.
Step2-3, nested searching loop map are grouped example and service:
1) since a ungrouped example a, example a is put into a new grouping;
If 2) service list and be not grouped the service list intersection of example b offers not that the grouping where example a provides For sky, example b is just divided into example a and is gone in the group;The process is repeated until group and the ungrouped example where example a Until service list intersection is sky.
3) it is repeated since 1), until all examples are completed grouping.
After grouping, the example between any two group does not have the service between intersection, any two group without intersection yet, often One group is with regard to the set of system independently disposed on counterlogic.Data after grouping are denoted as deploy, have recorded each system The example list of service list, deployment that system provides.Community all on figure is found out after grouping, each community corresponds to one Application system, the point in community are the service that the system can provide, between two points directly line contain it is all simultaneously The example of the two services is provided, is the specific example of the system deployment after line duplicate removal, as shown in lower half portion in Fig. 5.
Step2-4 arranges the example of each system, service in deploy all in accordance with lexicographic ordering;The first of Service name Section is systematic code, systematic code of the systematic code for taking corresponding with service quantity most as system after polymerization.
Step2-5 arranges the system in deploy according to the lexicographic ordering of systematic code, first Service name;Traversal System in deploy is systematic naming method directly as system unique identifier if systematic code first appears;If not It first appears, then adds number after systematic code until generating unique identifier of the character string first appeared as system.Place The data deploy managed is exactly the data of system actual deployment.
Those skilled in the art can also use other data, information to be used as systematic code, as long as can be unique Identify each system.
Step2-6 handles the data in data, obtains all instance identifications (IP+ port numbers), i.e., all “serviceIp:ServicePort " is combined and " consumerIp:ConsumerPort " is combined, and arranges whole example row Table is denoted as instanceList.
Step2-7 traverses each example in instanceList, searches its corresponding system in deploy, from And obtain the relationship of example and system;There are correspondence systems when if searching, by example and the pass of correspondence system unique mark System charges in instanceBelong;If there is no correspondence system, then jointing edge system ip is corresponding with systematic code closes It is (being provided by static data management module), the relationship of systematic code and example is charged in cNode.InstanceBelong remembers Record which system example belongs to, cNode has recorded the example list that limbic system includes.By this step, arrange Go out the mapping relations of example and system and example and limbic system.
Step2-8 looks into client instance, the server-side example in data are all counter as system, you can obtain all systems Between call relation.In conjunction with instanceBelong, deploy, cNode, data is processed into link, wherein having recorded system Between the service list that calls, the i.e. service list of system a calling systems b.This step process specifically includes:
Dummy variable link_temp is initialized, data is traversed:
1) client instance a, client ip a1 are obtained, server-side example b, a call the service service of b;
2) Home System of example a is searched from instanceBelong, if not then is searched from cNode and contained reality The system of example a is denoted as c if looking up the system for containing a1 in cNode not yet;It all can not find to be put into and follow next time Ring;
3) system for containing service service is searched from deploy, if not then is looked for from instanceBelong Go out the corresponding systems of example b, be denoted as s, is recycled next time if all can not find to be put into;
4) the service service that system c has invoked system s is recorded in link_temp;
5) link_temp data deduplications arrange data format, obtain { " c->s":[service1,service2,...]} Such formatted data is denoted as link, i.e., the service list called between system.
Step3, using WEB technologies, drawing system deployment and call graph.First arranging system grouping in final display diagram Rectangle frame (i.e. the frames of business domains), then drawing system small icon, show the deployment details of the system after clicking system icon And upstream-downstream relationship.
As an improvement, the present invention meet fixed width with group system proper alignment together under conditions of, have found one kind Feasible composition method so that required appearing is minimum.This step is as shown in fig. 7, specifically include following process:
Step3-1 opens link in a browser, load necessary html, css, js and data deploy, cNode, The correspondence of link, systematic code and business domains.
Step3-2 obtains the cross between the width gw of show area, the width sw of system icon and height sh, system icon Suggest maximum system line number ml, domain region lateral separation dpw to being spaced in pw and longitudinally spaced ph, domain frame, between the longitudinal direction of domain region Every dph;Space of a whole page schematic diagram is as shown in Figure 6.
Step3-3, (row here refers to only being arranged on the space of a whole page to every a line in the case of calculating show area arranging system icon Row system icon, when not arranging domain frame or the entire space of a whole page is only there are one when the frame of domain, system that the row maximum of the space of a whole page can arrange Quantity) the system number that can at most arrange:Cols=(gw+pw)/(sw+pw) and downward rounding;Each domain is calculated to be expert at (domain Multirow system can be accommodated by being expert at) recommend the system quantity accommodated:Dm=cols*ml.
Step3-4 arranges business domains since upper left, enters a new line in the place nearest from dm.A null is initialized, Traverse business domains:
1) the current field middle system quantity of being expert at is denoted as lt, and system quantity is denoted as t in the current field, enables st=lt+t;
If 2) st<The domain is added to the row by=dm;Otherwise it executes 3)
3) (if st-dm)>(dm-lt), then a newline is initialized, which is added in newline, and current line becomes new Row, otherwise the domain is added in the row, initializes a newline, and subsequent system is added in newline;
4) 1) -3 are repeated), until all domains have all been handled, result is denoted as domainLines
Step3-5 calculates the size of each business domains rectangle frame.Traverse domainLines:
1) quantity in domain is dc, system quantity sc in current line, after being calculate by the following formula current line deduction domain frame gap The system number that often row can at most accommodate:Cn=(gw+pw*dc-dpw* (dc-1))/(sw+pw) and downward rounding.
2) all drained required line number, rn=sc/cn's all systems simultaneously round up in calculated permutations current line.
3) rn_temp is incremented by since rn with 1
I.tcn=0 traverses each domain in the row,
1. system quantity is dsn in the current field, minCols=dsn/rn_temp simultaneously rounds up, tcn+=minCols
Ii. work as tcn<When=cn, the minCols in each domain, rn=rn_temp, end loop are recorded
4) it is calculate by the following formula row height, while being also the uniform height in all domains in the row:Height=(sh+ph) * rn;
5) row residue length tail=gw+pw*dc-dpw* (dc-1)-(sw+pw) * tcn are calculate by the following formula, quilt is obtained Quotient diffs and remainder diffNum of the divisor tail to divisor dc;
6) width in each domain is calculated, the width computational methods in preceding diffNum domain are in the row:Width=(sw+ Pw the width computational methods of) * minCols-pw+diff+1, other domains are:Width=(sw+pw) * minCols-pw+diff
Step3-6 draws the rectangle in each domain successively since the upper left corner;
Step3-7, drawing system icon, drawn system icon are as shown in Figure 8 one by one in the rectangle in each domain;
Step3-8 extracts client's method, system of the system from link, draws this in mouse activation system icon A little systems are directed toward the arrow of the system;The service method, system that the system is extracted from link, draws the system and is directed toward these and be The arrow of system;Bullet layer shows all examples of all services of system offer, deployment, as shown in Figure 9.
In order to realize the above method, the present invention also provides system deployments and dependence automatic Plotting System, including:System Service call journal module, system deployment service and dependence analysis module, system deployment and dependence show mould between system Block, static data management module.Wherein, service call journal module makes for acquiring service call daily record between example between system With Logstash, this Open-Source Tools stores these daily records, realizes 1 function of above-mentioned steps;System deployment service and dependence Analysis module is used to be analyzed based on the collected daily record of service call journal module between system, the practical portion of timing analysis system Administration, example and three parts of attaching relation of service, limbic system information data arrange all call relations in daily record, arrange institute There are system and the example and service list, final arrange to obtain call relation between system, realize 2 function of above-mentioned steps.Timing point Analysis is preferred embodiment, can also be analyzed in real time as needed, to realize the real-time rendering of system deployment and dependence With update.System deployment and dependence display module are used to use WEB technologies, drawing system deployment and call graph, exhibition The rectangle frame of first arranging system grouping on diagram, then drawing system small icon, and this can be shown after clicking system icon The deployment details and upstream-downstream relationship of system realize 3 function of above-mentioned steps.As an improvement, system deployment and dependence displaying Module meet fixed width with group system proper alignment together under conditions of, the required space of a whole page is made using specific composition method Height is minimum.And static data management module is used to manage correspondence, systematic code and the business of limbic system ip and systematic code The correspondence in domain, these information are introduced from outside into, and by manually being safeguarded, for example limbic system difference are understood from O&M It used which ip, understood the correspondence of system and business domains from Directorate Of System Management.
The technical means disclosed in the embodiments of the present invention is not limited only to the technological means disclosed in the above embodiment, further includes By the above technical characteristic arbitrarily the formed technical solution of combination.It should be pointed out that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (9)

1. system deployment and dependence automatic drafting method, which is characterized in that include the following steps:
Step1, acquires service call daily record between example, and daily record includes following information:Allocating time, called side IP and port numbers, The service identifiers of called side IP and port numbers, calling;
Step2 arranges the service of call relation and its calling between all examples in daily record, sorts out and provides on each example All services, and being grouped to example and service enable example after the completion of grouping in each group and service without intersection, each group Corresponding set of system is searched system or limbic system after its corresponding grouping for each example, is adjusted according between example in daily record The call relation between all systems is obtained with relationship and service, in conjunction with the mapping relations of example and system;
Step3, drawing system is disposed and call graph, and the rectangle frame of first arranging system grouping on figure, then drawing system are small Icon is capable of the deployment details and upstream-downstream relationship of display system in relational graph.
2. system according to claim 1 is disposed and dependence automatic drafting method, which is characterized in that the step2 Specifically comprise the following steps:
Step2-1 obtains all called side examples and calls called square example and the service that is called according to log information Relationship data;
Step2-2, analysis step2-1 provide the relationship of the example and service of service, sort out provided on each example it is all Service, is denoted as map;
Step2-3, nested searching loop map, is grouped example and service, enables the example between any two group after being grouped With service without intersection, the data after grouping are denoted as deploy, the set of system independently disposed on each group counterlogic, The example list of service list, deployment that each system of each grouped record provides;
Step2-4 arranges the systematic code of each system in deploy;
Step2-5 gives system unique identifier;
Step2-6 obtains all instance identifications according to data, arranges whole example list instanceList;
Step2-7 traverses each example in instanceList, searches its corresponding system in deploy, to Relationship to example and system is charged in instanceBelong;If correspondence system is not present in example in deploy, tie The correspondence of limbic system ip and systematic code are closed, the mapping relations for obtaining example and limbic system are charged in cNode;
Step2-8, by client instance, the server-side example in data, in conjunction with instanceBelong, deploy, cNode into Row is searched, and the call relation between all systems is obtained.
3. system according to claim 1 is disposed and dependence automatic drafting method, which is characterized in that the step2- 3 include following sub-step:
1) since a ungrouped example a, example a is put into a new grouping;
If 2) service list that the grouping where example a provides is not sky with the service list intersection that example b is provided is not grouped, Example b is just divided into example a to go in the group;The process is repeated until group and the ungrouped example service where example a Until list intersection is sky;
3) it is repeated since 1), until all examples are completed grouping.
4. system according to claim 1 is disposed and dependence automatic drafting method, which is characterized in that the step2- 8 include following sub-step:
Dummy variable link_temp is initialized, data is traversed:
1) client instance, client ip, server-side example, the service of client instance calling server-side example are obtained service;
2) Home System of client instance is searched from instanceBelong, if not then is searched and contained from cNode The system of client instance can in such as aforementioned lookup if looking up the system for containing client ip in cNode not yet It finds correspondence system and is denoted as c;It all can not find to be put into and recycle next time;
3) system for containing service service is searched from deploy, if not then finds out clothes from instanceBelong The corresponding system of business end example is denoted as s as that can find correspondence system in aforementioned lookup, is put into down if all can not find One cycle;
4) the service service that system c has invoked system s is recorded in link_temp;
5) link_temp data deduplications arrange data format, obtain the service list called between system.
5. system according to claim 1 is disposed and dependence automatic drafting method, which is characterized in that the step3 Specifically include following sub-step:
Step3-1 opens link in a browser, load necessary html, css, js and data deploy, cNode, The correspondence of link, systematic code and business domains;
Step3-2 is obtained between the transverse direction between the width gw of show area, the width sw of system icon and height sh, system icon It is longitudinally spaced every suggestion maximum system line number ml, domain region lateral separation dpw, domain region in pw and longitudinally spaced ph, domain frame dph;
Step3-3, the system number that can be at most arranged per a line in the case of calculating show area arranging system icon:Cols= (gw+pw)/(sw+pw) and downward rounding;It calculates each domain and is expert at and recommend the system quantity of receiving:Dm=cols*ml;
Step3-4 arranges business domains since upper left, enters a new line in the place nearest from dm;
Step3-5 calculates the size of each business domains rectangle frame;
Step3-6 draws the rectangle in each domain successively since the upper left corner;
Step3-7, the drawing system icon one by one in the rectangle in each domain;
Step3-8 extracts client's method, system of the system in mouse activation system icon from link, and drawing these is System is directed toward the arrow of the system;The service method, system that the system is extracted from link draws the system and is directed toward these systems Arrow;Bullet layer shows all examples of all services of system offer, deployment.
6. system deployment according to claim 5 and dependence automatic drafting method, which is characterized in that the step3- 4 specifically include following sub-step:
A null is initialized, business domains are traversed:
1) system quantity is denoted as lt in current line, and system quantity is denoted as t in the current field, enables st=lt+t;
If 2) st<The domain is added to the row by=dm;Otherwise it executes 3)
3) (if st-dm)>(dm-lt), then a newline is initialized, which is added in newline, and current line becomes newline, no Then the domain is added in the row, initializes a newline, and subsequent system is added in newline;
4) 1) -3 are repeated), until all domains have all been handled, result is denoted as domainLines.
7. system deployment according to claim 6 and dependence automatic drafting method, which is characterized in that the step3- 5 specifically include following sub-step:
Traverse domainLines:
1) quantity in domain is dc, system quantity sc in current line, is calculate by the following formula after current line deducts domain frame gap and often goes The system number that can at most accommodate:Cn=(gw+pw*dc-dpw* (dc-1))/(sw+pw) and downward rounding;
2) all drained required line number, rn=sc/cn's all systems simultaneously round up in calculated permutations current line;
3) rn_temp is incremented by since rn with 1
I.tcn=0 traverses each domain in the row,
1. system quantity is dsn in the current field, minCols=dsn/rn_temp simultaneously rounds up, tcn+=minCols
Ii. work as tcn<When=cn, the minCols in each domain, rn=rn_temp, end loop are recorded
4) it is calculate by the following formula row height, while being also the uniform height in all domains in the row:Height=(sh+ph) * rn;
5) row residue length tail=gw+pw*dc-dpw* (dc-1)-(sw+pw) * tcn are calculate by the following formula, dividend is obtained Quotient diffs and remainder diffNum of the tail to divisor dc;
6) width in each domain is calculated, the width computational methods in preceding diffNum domain are in the row:Width=(sw+pw) * The width computational methods of minCols-pw+diff+1, other domains are:Width=(sw+pw) * minCols-pw+diff.
8. system deployment and dependence automatic Plotting System, which is characterized in that including:Service call journal module between system, System deployment service and dependence analysis module, system deployment and dependence display module, static data management module;Institute Service call journal module is for acquiring service call daily record between example between stating system;System deployment service and dependence analysis Module is used to be analyzed based on the collected daily record of service call journal module between system, analysis system actual deployment, example With three parts of attaching relation of service, limbic system information data, arrange daily record in all call relations, arrange all systems and The example and service list, final arrange obtain call relation between system;The system deployment and dependence display module are used In drawing system deployment and call graph, the small icon of the rectangle frame of first arranging system grouping in display diagram, then drawing system, And the deployment details and upstream-downstream relationship of the system can be shown after clicking system icon;The static data management module is used In the correspondence of management limbic system ip and the correspondence of systematic code, systematic code and business domains.
9. system deployment according to claim 8 and dependence automatic Plotting System, it is characterised in that:The Account Dept Administration and dependence display module, which are plotted in, meets fixed width under conditions of with organizing together with system proper alignment, using given row Version method so that required appearing is minimum.
CN201710903955.1A 2017-09-29 2017-09-29 System deployment and dependency relationship automatic drawing system and method Active CN108628918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710903955.1A CN108628918B (en) 2017-09-29 2017-09-29 System deployment and dependency relationship automatic drawing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710903955.1A CN108628918B (en) 2017-09-29 2017-09-29 System deployment and dependency relationship automatic drawing system and method

Publications (2)

Publication Number Publication Date
CN108628918A true CN108628918A (en) 2018-10-09
CN108628918B CN108628918B (en) 2022-03-25

Family

ID=63705694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710903955.1A Active CN108628918B (en) 2017-09-29 2017-09-29 System deployment and dependency relationship automatic drawing system and method

Country Status (1)

Country Link
CN (1) CN108628918B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672662A (en) * 2018-10-11 2019-04-23 中山大学 Dependence construction method is serviced in a kind of micro services environment
CN110928784A (en) * 2019-11-21 2020-03-27 中国民航信息网络股份有限公司 Software testing environment monitoring method and device
CN111831548A (en) * 2020-05-29 2020-10-27 微民保险代理有限公司 Method and device for drawing dependency relationship topological graph
CN112052026A (en) * 2020-09-03 2020-12-08 中国银行股份有限公司 Method and device for determining interaction relationship between systems
CN114564242A (en) * 2022-02-28 2022-05-31 石家庄通合电子科技股份有限公司 Method, device, terminal and storage medium for realizing self-awakening function
CN112052026B (en) * 2020-09-03 2024-04-19 中国银行股份有限公司 Method and device for determining interaction relation between systems

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090204696A1 (en) * 2008-02-13 2009-08-13 Ming Zhang Service dependency discovery in enterprise networks
CN105207806A (en) * 2015-08-20 2015-12-30 百度在线网络技术(北京)有限公司 Monitoring method and apparatus of distributed service
CN106790718A (en) * 2017-03-16 2017-05-31 北京搜狐新媒体信息技术有限公司 Service call link analysis method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090204696A1 (en) * 2008-02-13 2009-08-13 Ming Zhang Service dependency discovery in enterprise networks
CN105207806A (en) * 2015-08-20 2015-12-30 百度在线网络技术(北京)有限公司 Monitoring method and apparatus of distributed service
CN106790718A (en) * 2017-03-16 2017-05-31 北京搜狐新媒体信息技术有限公司 Service call link analysis method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WANG KE 等: "《Web service schema matching based on invocation instance duplicates》", 《 2011 7TH INTERNATIONAL CONFERENCE ON NEXT GENERATION WEB SERVICES PRACTICES》 *
张春霞 等: "《多Agent 系统中依赖关系的研究》", 《计算机应用》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672662A (en) * 2018-10-11 2019-04-23 中山大学 Dependence construction method is serviced in a kind of micro services environment
CN109672662B (en) * 2018-10-11 2021-03-26 中山大学 Method for constructing service dependency relationship in micro-service environment
CN110928784A (en) * 2019-11-21 2020-03-27 中国民航信息网络股份有限公司 Software testing environment monitoring method and device
CN110928784B (en) * 2019-11-21 2023-09-05 中国民航信息网络股份有限公司 Software testing environment monitoring method and device
CN111831548A (en) * 2020-05-29 2020-10-27 微民保险代理有限公司 Method and device for drawing dependency relationship topological graph
CN111831548B (en) * 2020-05-29 2024-04-05 微民保险代理有限公司 Dependency relationship topological graph drawing method and device
CN112052026A (en) * 2020-09-03 2020-12-08 中国银行股份有限公司 Method and device for determining interaction relationship between systems
CN112052026B (en) * 2020-09-03 2024-04-19 中国银行股份有限公司 Method and device for determining interaction relation between systems
CN114564242A (en) * 2022-02-28 2022-05-31 石家庄通合电子科技股份有限公司 Method, device, terminal and storage medium for realizing self-awakening function

Also Published As

Publication number Publication date
CN108628918B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN108628918A (en) System deployment and dependence automatic Plotting System and method
CN104036375B (en) Storage data based on the goods and materials dynamic tracking of bar code processes system and method
CN106528129A (en) Web application interface generation system and method
US6871321B2 (en) System for managing networked information contents
CN105488231B (en) A kind of big data processing method divided based on adaptive table dimension
CN109344223A (en) A kind of Building Information Model management system and method based on cloud computing technology
CN104504077B (en) The statistical method and device of web page access data
CN110674154B (en) Spark-based method for inserting, updating and deleting data in Hive
CN103577474B (en) The update method and system of a kind of database
CN106021494A (en) Master data synchronization method and device
CN103020158A (en) Report form creation method, device and system
CN1859505B (en) Bill checking system and method
CN109408699A (en) A kind of method that synchronization caching zTree tree realizes tree node quick-searching
CN103970843A (en) Conversation combining method based on UUID in Web log preprocessing
CN106897285A (en) Data Elements extract analysis system and Data Elements extract analysis method
CN109002334A (en) A kind of operation platform and its data processing method
CN109903105A (en) A kind of method and apparatus for improving end article attribute
CN108959356A (en) A kind of intelligence adapted TV university Data application system Data Mart method for building up
CN108304591A (en) A kind of method for customizing of label, system and terminal device
CN107943929A (en) The automatic generating method of wrapper being abstracted based on dom tree
CN101944150A (en) Method for automatically generating wave channel graph by programming in wavelength division system
CN108540302B (en) Big data processing method and equipment
CN103412942B (en) A kind of voltage dip data analysing method based on cloud computing technology
CN105589900A (en) Data mining method based on multi-dimensional analysis
CN114090590B (en) Multi-object label data extraction method and system

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