WO2020037909A1 - Log-based resource adjustment method, equipment, storage medium and device - Google Patents

Log-based resource adjustment method, equipment, storage medium and device Download PDF

Info

Publication number
WO2020037909A1
WO2020037909A1 PCT/CN2018/122803 CN2018122803W WO2020037909A1 WO 2020037909 A1 WO2020037909 A1 WO 2020037909A1 CN 2018122803 W CN2018122803 W CN 2018122803W WO 2020037909 A1 WO2020037909 A1 WO 2020037909A1
Authority
WO
WIPO (PCT)
Prior art keywords
request
page
hotspot
requested
user
Prior art date
Application number
PCT/CN2018/122803
Other languages
French (fr)
Chinese (zh)
Inventor
魏云鹏
袁小伟
祁明远
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020037909A1 publication Critical patent/WO2020037909A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display

Definitions

  • the present application relates to the technical field of network resource adjustment, and in particular, to a log-based resource adjustment method, device, storage medium, and device.
  • the page layout of each page level in the website may not be optimal, and the resources that the user is interested in may not be in a conspicuous position. It takes time for the user to find it, which leads to a poor user experience.
  • most websites use heat maps to perform the website. Hotspot analysis requires JavaScript code to be implemented in the foreground, which increases server load and lacks a convenient hotspot analysis method. Therefore, how to perform a hotspot analysis to optimize the location distribution of resources in a webpage is a technical problem that needs to be solved urgently.
  • the main purpose of this application is to provide a log-based resource adjustment method, device, storage medium and device, which aims to solve the technical problem of how to optimize the position distribution of resources in a webpage through hot spot analysis in the prior art.
  • the log-based resource adjustment method includes the following steps:
  • the present application also proposes a log-based resource adjustment device.
  • the log-based resource adjustment device includes a memory, a processor, and a processor that is stored on the memory and can run on the processor.
  • the log-based resource adjustment readable instruction is configured to implement the steps of the log-based resource adjustment method as described above.
  • the present application also proposes a storage medium storing a log-based resource adjustment readable instruction stored on the storage medium, and the log-based resource adjustment readable instruction is executed by a processor to achieve the above. Steps of the log-based resource tuning method described in this article.
  • the present application also proposes a log-based resource adjustment apparatus, where the log-based resource adjustment apparatus includes:
  • An extraction module configured to collect an access log generated by the statistics server, and extract uniform resource locator information requested by multiple users from the access log;
  • a sorting module configured to calculate a click amount requested by each user according to the uniform resource locator information, sort each user request according to the click amount, and obtain a request sort list;
  • a determining module configured to identify the first preset number of user requests in the request ranking list as hotspot requests
  • An adjustment module is configured to obtain a hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of a current page.
  • FIG. 1 is a schematic structural diagram of a log-based resource adjustment device for a hardware operating environment according to the solution of the embodiment of the present application;
  • FIG. 2 is a schematic flowchart of a first embodiment of a log-based resource adjustment method of the present application
  • FIG. 3 is a schematic flowchart of a second embodiment of a log-based resource adjustment method of the present application.
  • FIG. 4 is a schematic flowchart of a third embodiment of a log-based resource adjustment method of the present application.
  • FIG. 5 is a structural block diagram of a first embodiment of a log-based resource adjustment apparatus of the present application.
  • FIG. 1 is a schematic structural diagram of a log-based resource adjustment device in a hardware operating environment according to an embodiment of the present application.
  • the log-based resource adjustment device may include: a processor 1001, such as a central processing unit (Central Processing Unit (CPU), communication bus 1002, user interface 1003, network interface 1004, and memory 1005.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display screen.
  • the optional user interface 1003 may further include a standard wired interface and a wireless interface.
  • the wired interface of the user interface 1003 may be a USB interface in this application.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WIreless-FIdelity (WI-FI) interface).
  • the memory 1005 may be a high-speed random access memory (Random Access Memory (RAM) memory, or non-volatile memory Memory (NVM), such as disk storage.
  • the memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
  • FIG. 1 does not constitute a limitation on the log-based resource adjustment device, and may include more or fewer components than shown in the figure, or combine some components, or different components. Layout.
  • the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a log-based resource adjustment readable instruction.
  • the network interface 1004 is mainly used to connect to a background server and perform data communication with the background server;
  • the user interface 1003 is mainly used to connect to a user device; and the log-based resource adjustment
  • the device invokes the log-based resource adjustment readable instruction stored in the memory 1005 through the processor 1001, and executes the log-based resource adjustment method provided by the embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a first embodiment of a log-based resource adjustment method of the present application, and a first embodiment of a log-based resource adjustment method of the present application is proposed.
  • the log-based resource adjustment method includes the following steps:
  • Step S10 Collect an access log generated by the statistics server, and extract uniform resource locator information requested by multiple users from the access log.
  • the execution subject of this embodiment is the log-based resource adjustment device, where the log-based resource adjustment device may be an electronic device such as a personal computer or a server.
  • the log-based resource adjustment device may be an electronic device such as a personal computer or a server.
  • ELK is an abbreviation of three open source software, which means: Elasticsearch, Logstash, Kibana.
  • the log collection platform can periodically collect the access logs generated by the statistics server.
  • the access logs The user requested Uniform Resource Locator (Uniform Resource Locator (URL) information is a concise representation of the location and access method of resources that can be obtained from the Internet, and is the address of standard resources on the Internet. Every file on the Internet has a unique URL, which contains information indicating the location of the file and how the browser should handle it.
  • URL Uniform Resource Locator
  • Step S20 Calculate the click amount requested by each user according to the uniform resource locator information, sort each user request according to the click amount, and obtain a request ranking list.
  • the uniform resource locator information includes: a single page size accessed by each user requesting a corresponding uniform resource locator, the same total page size accessed by the uniform resource locator, and various uniform resources. Information such as the total time and total page size consumed by locator access.
  • Step S30 The first preset number of user requests in the request ranking list are identified as hotspot requests.
  • the first preset number can be set according to analysis needs. If the function is ranked in the first three positions, the first preset number may be set to three.
  • the first preset number of user requests that are ranked first in the request queuing list are functions of the first preset number of users that are ranked in the front of the user ’s attention, so the first A preset number of user requests are identified as the hotspot requests.
  • the hotspot request can be analyzed to grasp the behavior characteristics and preferences of the user.
  • Step S40 Obtain the hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of the current page.
  • the current page is the page where the function corresponding to the hotspot request is located.
  • the current page may be divided into multiple regions in advance, and each region is set with a different visibility level according to user habits.
  • the preset conspicuous area is the area with the highest conspicuous level, and it can be determined whether the position of the hot page is in the preset conspicuous area; if not, the position of the hot page is adjusted to the preset conspicuous area of the current page Area, if so, no adjustment is required.
  • the access log generated by the statistics server is collected, and the uniform resource locator information requested by multiple users is extracted from the access log, and the click amount requested by each user is extracted from the uniform resource locator information.
  • User requests are sorted according to the clicks from large to small to obtain a request sort list, and the user requests corresponding to the first preset number of clicks ranked first in the request sort list are regarded as hotspot requests, without being in the foreground
  • FIG. 3 is a schematic flowchart of a second embodiment of the log-based resource adjustment method of the present application. Based on the first embodiment shown in FIG. 2 above, a second embodiment of the log-based resource adjustment method of the present application is proposed.
  • the step S20 includes:
  • Step S201 Acquire the requested page level requested by each user.
  • a website usually includes multiple pages at the requested page level, and each page at the requested page level has a corresponding function. Clicking a function corresponds to a user request, and each user request may involve multiple request pages.
  • the user requests of pages at the same page level can be compared to obtain the hotspot request at the requested page level.
  • Step S202 Calculate the number of clicks requested by each user according to the uniform resource locator information, sort user requests at the same requested page level according to the clicks from large to small, and obtain the requested page-level correspondence. Sorted list of requests.
  • each user request may be classified and compared according to the requested page level, thereby obtaining hotspot requests corresponding to each of the requested page levels.
  • the user request with a larger number of clicks indicates that the user has a higher degree of attention.
  • the user requests at the same page level of the request are classified as a category, and the corresponding user requests are sorted according to the clicks from large to small.
  • Each user request in the request queuing list is sorted according to the number of hits, and the corresponding user ’s attention is also high to low.
  • the requested page level A users request a1, a2, a3, a4, and a5, and the corresponding hits are 10, 20, 30, 40, and 50, respectively.
  • the request ranking list corresponding to the requested page level A is: a5, a4, a3, a2, and a1
  • the request ranking list corresponding to the request page level B is: b3, b2
  • the request ranking list corresponding to the requested page level C is: c3, c2, and c1.
  • the step S30 includes:
  • Step S301 The first preset number of user requests in the request ranking list corresponding to each requested page level are identified as hotspot requests corresponding to each requested page level.
  • the first preset number may be based on analysis It is required to set, for example, to analyze the functions with the highest two attention levels in the web page requesting the page level, the first preset number may be set to two.
  • the first preset number of user requests that are ranked first in the request queuing list are functions of the first preset number of users that are ranked in the front of the web pages of each request page level. And identifying the first preset number of user requests as the hotspot requests corresponding to the requested page level.
  • the step S40 includes:
  • Step S401 Obtain the hotspot page position of the hotspot request, and extract the hotspot page level corresponding to the hotspot request from the hotspot page position.
  • the corresponding function can be determined according to the hotspot request, the page position where the function is located is the hotspot page position, and the hotspot page position is specifically in which hotspot page level and which area.
  • Step S402 Determine whether the location of the hot page is in a preset prominent area of a current page corresponding to the hot page level.
  • location analysis is performed on the hotspot requests in different hotspot page hierarchies.
  • the current page is the page where the function corresponding to the hotspot request is located.
  • the current page may be divided into multiple pages in advance. For each area, a different conspicuous level is set for each area according to user habits, and the preset conspicuous area is the area with the highest conspicuous level. It can be determined whether the position of the hot page is in the preset prominent area; if not, the position of the hot page is adjusted to the preset prominent area of the current page; if so, no adjustment is required.
  • Step S403 if not, adjust the position of the hot page to the preset prominent area of the current page.
  • the location of the hot page is not in a preset prominent area of the current page corresponding to the hot page level, the user needs to spend time to access the current page corresponding to the hot page level.
  • Find the function corresponding to the hotspot request In order to make it easier for users to quickly find the function corresponding to the hotspot request, the position of the hotspot page is adjusted to a preset prominent area of the current page, thereby ensuring that the hotspot page level corresponds to the hotspot request level.
  • the hotspot request in the current page is placed in the preset conspicuous area with the highest conspicuous level, thereby facilitating users to access corresponding functions and improving the user experience.
  • step S403 the method further includes:
  • One hotspot request is obtained from each of the first sorted list and the second sorted list, and the request sorted list includes the first sorted list and the second sorted list;
  • the hot page level includes the first page level and the second page level
  • the positions of the hotspot pages corresponding to the hotspot requests in each hotspot page hierarchy are adjusted to the preset prominent area of the current page.
  • the larger the number of hierarchies The more time-consuming to access, for example, if the hotspot page level corresponding to the hotspot request is the first level, the first page that the user sees on the website is the first level page, and the user can directly click the For access at any location, if the hotspot page level corresponding to the hotspot request is the second level, the first level must be entered through the corresponding entrance of the first level to find the second level page. Hotspot request corresponding function. In order to save user access time, the level corresponding to hotspot requests with high user attention can be adjusted to a lower level.
  • the request sort list is a list corresponding to each request page level, and the request page hierarchy is multi-layer, then there are a plurality of corresponding request sort lists, which are obtained from a plurality of the request sort lists. Any two lists serve as the first sorted list and the second sorted list.
  • the first preset number of user requests that are ranked first in the first sorted list are hotspot requests corresponding to the first page level, that is, from the first preset number of hotspots corresponding to the first page level One hotspot request is arbitrarily obtained in the request;
  • the first preset number of user requests in the second ranked list are hotspot requests corresponding to the second page level, that is, from the first preset number of One of the hotspot requests corresponding to the second page level is arbitrarily obtained;
  • the two hotspot requests obtained are compared for traffic, and the hotspot request with a larger traffic is taken as the first request, and the hotspot request with a smaller traffic is taken as Second request.
  • the first page level corresponding to the first request is higher than the second page level of the second request, and if the first page level is higher than the second page The level indicates that the first requested access is more time-consuming than the second requested access, and the first request has a larger number of clicks, indicating that the user's attention is higher.
  • the The first page level corresponding to the first request is interchanged with the second page level of the second request, so that user requests with a higher click volume are more easily accessed.
  • hotspot requests at each page level are placed in the most conspicuous areas, saving user access time and improving user experience.
  • FIG. 4 is a schematic flowchart of a third embodiment of the log-based resource adjustment method of the present application. Based on the first embodiment shown in FIG. 2 described above, a third embodiment of the log-based resource adjustment method of the present application is proposed.
  • step S40 the method further includes:
  • Step S50 Calculate network resources occupied by each user request according to the uniform resource locator information.
  • the uniform resource locator information includes the single page size of the URL access corresponding to the user request. By counting the number of times of the same URL access, the same is calculated according to the number of times and the single page size. The total page size visited by the URL. The types of the user requests that are counted, and the total time, total page size, and page size per unit time consumed by various users requesting URLs are classified and counted to indirectly calculate the network traffic and central processing occupied by the URLs corresponding to each user request. (Central Processing Unit (CPU), Input / Output (IO), and other resources. The network traffic, CPU, and IO occupied by the URL are the network resources occupied by the user request. The network traffic is the amount of data transmitted on the network.
  • CPU Central Processing Unit
  • IO Input / Output
  • the size of the network traffic is of great significance to the design of the network architecture, and the network can be designed according to the network traffic.
  • the occupied CPU refers to the CPU usage, which is actually the CPU resources occupied by the running readable instructions, which indicates that the computer is running the readable instructions at a certain point in time. The higher the utilization, the computer is running at this time. A lot of readable instructions, and less of them.
  • Occupied input and output (IO) refers to the proportion of data that a user requests to occupy the computer and transfer to any external device.
  • Step S60 Determine a network bottleneck request according to the network resources, and adjust the network bottleneck request.
  • each user request may be sorted by the network resources occupied by the user request, and the user request that ranked the occupied network resource first is determined as the network bottleneck request.
  • the network bottleneck request may be analyzed to determine whether there is room for optimization, and if it exists, the network bottleneck request may be adjusted to achieve Optimize and improve the situation that the network bottleneck request occupies network resources, reduce the network bottleneck request, and improve the utilization of network resources.
  • step S60 includes:
  • the network resources are sorted from large to small, and the network resources that are ranked in front occupy a large amount, indicating that the corresponding user requests occupy a lot of resources, which may limit the overall network bandwidth and become a network bottleneck.
  • the second preset number may be preset according to experience values, for example, the second preset number may be 20 or 50, and so on.
  • the network bottleneck request can be analyzed. From the perspective of the user, optimization can make the page load faster and respond to the user's operation more timely. , Can provide users with a more friendly experience. From the perspective of the service provider, optimization can reduce the number of page requests, or reduce the bandwidth occupied by requests, and can save considerable resources. Proper optimization can not only improve the user experience of the site, but also save considerable resource utilization.
  • the adjusting the network bottleneck request includes analyzing the network bottleneck request to determine whether the network bottleneck request can perform page-level optimization or code-level optimization. Describe the network bottleneck request for page-level optimization or code-level optimization.
  • the optimization can make the page load faster, respond to the user's operation more timely, provide a more friendly experience for the user, and the optimization can reduce the number of page requests, or reduce the bandwidth occupied by the request. Can save considerable resources.
  • the above-mentioned storage media may be a read-only memory, a magnetic disk, or an optical disk.
  • an embodiment of the present application further provides a storage medium, where the log-based resource adjustment readable instruction is stored, and the log-based resource adjustment readable instruction is implemented as described above when executed by a processor. Steps of a log-based resource tuning method.
  • an embodiment of the present application further provides a log-based resource adjustment apparatus.
  • the log-based resource adjustment apparatus includes:
  • An extraction module 10 configured to collect an access log generated by a statistics server, and extract uniform resource locator information requested by multiple users from the access log;
  • a sorting module 20 is configured to calculate the number of clicks requested by each user according to the uniform resource locator information, sort each user request according to the number of clicks, and obtain a request ranking list;
  • a determination module 30 configured to identify the first preset number of user requests in the request ranking list as hotspot requests
  • the adjusting module 40 is configured to obtain the hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of the current page.
  • the log-based resource adjustment device further includes: an obtaining module, configured to obtain a requested page level requested by each user;
  • the ranking module 20 is further configured to calculate the number of clicks requested by each user according to the uniform resource locator information, and sort the user requests at the same requested page level according to the number of clicks to obtain A request sort list corresponding to the request page level;
  • the identification module 30 is further configured to identify the first preset number of user requests in the request ranking list corresponding to each requested page level as hotspot requests corresponding to each requested page level.
  • the log-based resource adjustment device further includes: the obtaining module is further configured to obtain a hotspot page position of the hotspot request, and extract a corresponding hotspot request from the hotspot page position. Hot page level; a judging module for judging whether the position of the hot page is in a preset prominent area of the current page corresponding to the hot page level; the adjustment module 40 is further configured to, if not, change the hot page The position is adjusted to the preset prominent area of the current page.
  • the log-based resource adjustment device further includes: the obtaining module is further configured to obtain a hotspot request from a first sorted list and a second sorted list, respectively, and the request sorted list includes the request A first sorted list and the second sorted list; a comparison module is further configured to compare the number of clicks corresponding to the two hotspot requests obtained, and use the hotspot request with a larger number of hits as the first request;
  • the hotspot request is a second request;
  • the obtaining module is further configured to obtain a first page level of the first request and a second page level of the second request, and the hot page level includes the first page level And the second page level;
  • the judging module is further configured to determine whether the first page level is higher than the second page level;
  • the interchange module is further configured to, if so, the first page level With the second page hierarchy.
  • the log-based resource adjustment device further includes: a calculation module, configured to calculate network resources occupied by each user request according to the uniform resource locator information; and the adjustment module 40 is further configured to: The network resource determines a network bottleneck request, and adjusts the network bottleneck request.
  • the ranking module 20 is further configured to sort the network resources from large to small to obtain a resource occupation list; and the determination module 30 is further configured to rank the resource occupation list in the The user request corresponding to the foregoing second preset number of network resources is identified as a network bottleneck request; the adjustment module 40 is further configured to adjust the network bottleneck request.
  • the determination module is further configured to analyze the network bottleneck request to determine whether the network bottleneck request can perform page-level optimization or code-level optimization; the adjustment module 40 is further configured to: If yes, perform page-level optimization or code-level optimization on the network bottleneck request.
  • the computer software product is stored in a storage medium (such as a Read Only Memory image (ROM) / Random Access Memory (Random Access Memory (RAM), magnetic disks, and optical disks) include a number of instructions for causing a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the embodiments of this application.
  • a storage medium such as a Read Only Memory image (ROM) / Random Access Memory (Random Access Memory (RAM), magnetic disks, and optical disks
  • ROM Read Only Memory image
  • RAM Random Access Memory
  • magnetic disks magnetic disks
  • optical disks optical disks

Abstract

Disclosed by the present application are a log-based resource adjustment method, equipment, storage medium and device, the method comprising: collecting an access log generated by a statistic-compiling server, and extracting from the access log uniform resource locator information for multiple user requests; extracting click rates of each user request from the uniform resource locator information, sorting the user requests according to the click rates from the largest to the smallest, and obtaining a request sorting list; determining user requests corresponding to click rates which are ranked ahead of a first preset number in the request sorting list as hotspot requests; and obtaining the hotspot page location of the hotspot requests, and adjusting the hotspot page position to a preset conspicuous area of a current page. By means of the click rates of user requests extracted from the uniform resource locator information in the access log and adjusting the position of a requested page with a large amount of clicks to a preset conspicuous area of a current page, the position of the requested page is more in line with behavioral needs of a user, and the user experience is thus improved.

Description

基于日志的资源调整方法、设备、存储介质及装置 Log-based resource adjustment method, device, storage medium and device Ranch
本申请要求于2018年08月21日提交中国专利局、申请号为201810952260.7、发明名称为“基于日志的资源调整方法、设备、存储介质及装置”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of a Chinese patent application filed on August 21, 2018 with the Chinese Patent Office, application number 201810952260.7, and the invention name "log-based resource adjustment method, device, storage medium and device", all of which passed Citations are incorporated in the application.
技术领域Technical field
本申请涉及网络资源调整技术领域,尤其涉及一种基于日志的资源调整方法、设备、存储介质及装置。The present application relates to the technical field of network resource adjustment, and in particular, to a log-based resource adjustment method, device, storage medium, and device.
背景技术Background technique
目前,网站中各页面层级的页面布局可能不是最优的,用户感兴趣的资源可能不在显眼位置,需要用户花费时间去寻找,导致用户体验差,现有技术中大多采用热力图的方式进行网站热点分析,需要在前台加入JavaScript代码实现,加重了服务器负载,缺乏便捷的热点分析方法。因此,如何进行热点分析以优化网页中各资源的位置分布是亟待解决的技术问题。At present, the page layout of each page level in the website may not be optimal, and the resources that the user is interested in may not be in a conspicuous position. It takes time for the user to find it, which leads to a poor user experience. In the prior art, most websites use heat maps to perform the website. Hotspot analysis requires JavaScript code to be implemented in the foreground, which increases server load and lacks a convenient hotspot analysis method. Therefore, how to perform a hotspot analysis to optimize the location distribution of resources in a webpage is a technical problem that needs to be solved urgently.
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present application, and does not mean that the above content is prior art.
发明内容Summary of the Invention
本申请的主要目的在于提供一种基于日志的资源调整方法、设备、存储介质及装置,旨在解决现有技术中如何通过热点分析以优化网页中各资源的位置分布的技术问题。The main purpose of this application is to provide a log-based resource adjustment method, device, storage medium and device, which aims to solve the technical problem of how to optimize the position distribution of resources in a webpage through hot spot analysis in the prior art.
为实现上述目的,本申请提供一种基于日志的资源调整方法,所述基于日志的资源调整方法包括以下步骤:To achieve the above object, the present application provides a log-based resource adjustment method. The log-based resource adjustment method includes the following steps:
收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;Collect an access log generated by the statistics server, and extract uniform resource locator information requested by multiple users from the access log;
根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;Calculating the number of clicks requested by each user according to the uniform resource locator information, sorting each user request according to the number of clicks, and obtaining a request sort list;
将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;Identifying the first preset number of user requests in the request ranking list as hotspot requests;
获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。Obtain the hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of the current page.
此外,为实现上述目的,本申请还提出一种基于日志的资源调整设备,所述基于日志的资源调整设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于日志的资源调整可读指令,所述基于日志的资源调整可读指令配置为实现如上文所述的基于日志的资源调整方法的步骤。此外,为实现上述目的,本申请还提出一种存储介质,所述存储介质上存储有基于日志的资源调整可读指令,所述基于日志的资源调整可读指令被处理器执行,以实现如上文所述的基于日志的资源调整方法的步骤。In addition, in order to achieve the above object, the present application also proposes a log-based resource adjustment device. The log-based resource adjustment device includes a memory, a processor, and a processor that is stored on the memory and can run on the processor. The log-based resource adjustment readable instruction is configured to implement the steps of the log-based resource adjustment method as described above. In addition, in order to achieve the above-mentioned object, the present application also proposes a storage medium storing a log-based resource adjustment readable instruction stored on the storage medium, and the log-based resource adjustment readable instruction is executed by a processor to achieve the above. Steps of the log-based resource tuning method described in this article.
此外,为实现上述目的,本申请还提出一种基于日志的资源调整装置,所述基于日志的资源调整装置包括:In addition, in order to achieve the foregoing object, the present application also proposes a log-based resource adjustment apparatus, where the log-based resource adjustment apparatus includes:
提取模块,用于收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;An extraction module, configured to collect an access log generated by the statistics server, and extract uniform resource locator information requested by multiple users from the access log;
排序模块,用于根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;A sorting module, configured to calculate a click amount requested by each user according to the uniform resource locator information, sort each user request according to the click amount, and obtain a request sort list;
认定模块,用于将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;A determining module, configured to identify the first preset number of user requests in the request ranking list as hotspot requests;
调整模块,用于获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。An adjustment module is configured to obtain a hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of a current page.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例方案涉及的硬件运行环境的基于日志的资源调整设备的结构示意图;FIG. 1 is a schematic structural diagram of a log-based resource adjustment device for a hardware operating environment according to the solution of the embodiment of the present application;
图2为本申请基于日志的资源调整方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a log-based resource adjustment method of the present application;
图3为本申请基于日志的资源调整方法第二实施例的流程示意图;3 is a schematic flowchart of a second embodiment of a log-based resource adjustment method of the present application;
图4为本申请基于日志的资源调整方法第三实施例的流程示意图;4 is a schematic flowchart of a third embodiment of a log-based resource adjustment method of the present application;
图5为本申请基于日志的资源调整装置第一实施例的结构框图。FIG. 5 is a structural block diagram of a first embodiment of a log-based resource adjustment apparatus of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the purpose of this application will be further described with reference to the embodiments and the drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
参照图1,图1为本申请实施例方案涉及的硬件运行环境的基于日志的资源调整设备结构示意图。Referring to FIG. 1, FIG. 1 is a schematic structural diagram of a log-based resource adjustment device in a hardware operating environment according to an embodiment of the present application.
如图1所示,该基于日志的资源调整设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display),可选用户接口1003还可以包括标准的有线接口、无线接口,对于用户接口1003的有线接口在本申请中可为USB接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(WIreless-FIdelity,WI-FI)接口)。存储器1005可以是高速的随机存取存储器(Random Access Memory,RAM)存储器,也可以是稳定的存储器(Non-volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the log-based resource adjustment device may include: a processor 1001, such as a central processing unit (Central Processing Unit (CPU), communication bus 1002, user interface 1003, network interface 1004, and memory 1005. The communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen. The optional user interface 1003 may further include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in this application. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WIreless-FIdelity (WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory (RAM) memory, or non-volatile memory Memory (NVM), such as disk storage. The memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
本领域技术人员可以理解,图1中示出的结构并不构成对基于日志的资源调整设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation on the log-based resource adjustment device, and may include more or fewer components than shown in the figure, or combine some components, or different components. Layout.
如图1所示,认定为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及基于日志的资源调整可读指令。As shown in FIG. 1, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a log-based resource adjustment readable instruction.
在图1所示的基于日志的资源调整设备中,网络接口1004主要用于连接后台服务器,与所述后台服务器进行数据通信;用户接口1003主要用于连接用户设备;所述基于日志的资源调整设备通过处理器1001调用存储器1005中存储的基于日志的资源调整可读指令,并执行本申请实施例提供的基于日志的资源调整方法。In the log-based resource adjustment device shown in FIG. 1, the network interface 1004 is mainly used to connect to a background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to a user device; and the log-based resource adjustment The device invokes the log-based resource adjustment readable instruction stored in the memory 1005 through the processor 1001, and executes the log-based resource adjustment method provided by the embodiment of the present application.
基于上述硬件结构,提出本申请基于日志的资源调整方法的实施例。Based on the above hardware structure, an embodiment of the log-based resource adjustment method of the present application is proposed.
参照图2,图2为本申请基于日志的资源调整方法第一实施例的流程示意图,提出本申请基于日志的资源调整方法第一实施例。Referring to FIG. 2, FIG. 2 is a schematic flowchart of a first embodiment of a log-based resource adjustment method of the present application, and a first embodiment of a log-based resource adjustment method of the present application is proposed.
在第一实施例中,所述基于日志的资源调整方法包括以下步骤:In a first embodiment, the log-based resource adjustment method includes the following steps:
步骤S10:收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息。Step S10: Collect an access log generated by the statistics server, and extract uniform resource locator information requested by multiple users from the access log.
应理解的是,本实施例的执行主体是所述基于日志的资源调整设备,其中,所述基于日志的资源调整设备可为个人电脑或服务器等电子设备。首先搭建基于ELK架构的日志收集平台,ELK是三个开源软件的缩写,分别表示:Elasticsearch,Logstash,Kibana,可通过所述日志收集平台定时收集所述统计服务器产生的访问日志,所述访问日志中记录了用户请求的统一资源定位符(Uniform Resource Locator,URL)信息,是对可以从互联网上得到的资源的位置和访问方法的一种简洁的表示,是互联网上标准资源的地址。互联网上的每个文件都有一个唯一的URL,它包含的信息指出文件的位置以及浏览器应该怎么处理它。It should be understood that the execution subject of this embodiment is the log-based resource adjustment device, where the log-based resource adjustment device may be an electronic device such as a personal computer or a server. First, build a log collection platform based on the ELK architecture. ELK is an abbreviation of three open source software, which means: Elasticsearch, Logstash, Kibana. The log collection platform can periodically collect the access logs generated by the statistics server. The access logs The user requested Uniform Resource Locator (Uniform Resource Locator (URL) information is a concise representation of the location and access method of resources that can be obtained from the Internet, and is the address of standard resources on the Internet. Every file on the Internet has a unique URL, which contains information indicating the location of the file and how the browser should handle it.
步骤S20:根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表。Step S20: Calculate the click amount requested by each user according to the uniform resource locator information, sort each user request according to the click amount, and obtain a request ranking list.
可理解的是,所述统一资源定位符信息包括:各个用户请求对应的统一资源定位符访问的单次页面大小、相同的所述统一资源定位符访问的总页面大小、各种所述统一资源定位符访问分别消耗的总时间和总页面大小等信息,通过统计各个用户请求对应的URL的访问量可以确定用户做了哪些页面的点击操作,将相同操作的数量进行累加从而统计出各用户请求的点击量,所述点击量越大的用户请求说明用户关注度越高,所述请求排队列表中的各用户请求按照所述点击量从大到小进行排序,则相应的用户的关注度也是从高到低。It can be understood that the uniform resource locator information includes: a single page size accessed by each user requesting a corresponding uniform resource locator, the same total page size accessed by the uniform resource locator, and various uniform resources. Information such as the total time and total page size consumed by locator access. By counting the number of URLs corresponding to each user request, you can determine which page clicks the user has made. Add up the number of the same operation to calculate each user request. The number of clicks, the greater the number of user requests, the higher the user ’s attention. Each user request in the request queue list is sorted according to the number of clicks, and the corresponding user ’s attention is also From high to low.
步骤S30:将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求。Step S30: The first preset number of user requests in the request ranking list are identified as hotspot requests.
需要说明的是,通常用户关注度较高的功能可能就少数几个,也就是说热点请求数量不会很多,所述第一预设数量可以根据分析需求进行设置,比如,想分析网页中关注度排在前三位的功能,则可将所述第一预设数量设置为三。所述请求排队列表中排在前面的所述第一预设数量的用户请求,即是网页中用户的关注度排在前面的所述第一预设数量的功能,故可将所述第一预设数量的用户请求认定为所述热点请求。可对所述热点请求进行分析,从而掌握用户的行为特征和喜好。It should be noted that there may be only a few functions with high user attention, that is, the number of hotspot requests will not be large. The first preset number can be set according to analysis needs. If the function is ranked in the first three positions, the first preset number may be set to three. The first preset number of user requests that are ranked first in the request queuing list are functions of the first preset number of users that are ranked in the front of the user ’s attention, so the first A preset number of user requests are identified as the hotspot requests. The hotspot request can be analyzed to grasp the behavior characteristics and preferences of the user.
步骤S40:获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。Step S40: Obtain the hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of the current page.
应理解的是,所述当前页面为所述热点请求对应的功能所处的页面,可预先将所述当前页面划分成多个区域,根据用户习惯对每个区域分别设置不同的显眼等级,所述预设显眼区域为所述显眼等级最高的区域,可判断所述热点页面位置是否处于所述预设显眼区域,若不是,则将所述热点页面位置调整至所述当前页面的预设显眼区域,若是,则不需要调整。It should be understood that the current page is the page where the function corresponding to the hotspot request is located. The current page may be divided into multiple regions in advance, and each region is set with a different visibility level according to user habits. The preset conspicuous area is the area with the highest conspicuous level, and it can be determined whether the position of the hot page is in the preset conspicuous area; if not, the position of the hot page is adjusted to the preset conspicuous area of the current page Area, if so, no adjustment is required.
在第一实施例中,收集统计服务器产生的访问日志,从访问日志中提取出多个用户请求的统一资源定位符信息,从统一资源定位符信息中提取出各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表,将所述请求排序列表中排在前面的第一预设数量的点击量对应的用户请求认定为热点请求,无需在前台加入JavaScript代码实现,便捷高效地实现了基于日志的热点分析;获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域,使得请求的页面位置更符合用户行为需求,提升用户体验。In the first embodiment, the access log generated by the statistics server is collected, and the uniform resource locator information requested by multiple users is extracted from the access log, and the click amount requested by each user is extracted from the uniform resource locator information. User requests are sorted according to the clicks from large to small to obtain a request sort list, and the user requests corresponding to the first preset number of clicks ranked first in the request sort list are regarded as hotspot requests, without being in the foreground Add JavaScript code to achieve log-based hotspot analysis conveniently and efficiently; obtain the hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of the current page, making the requested page position more consistent with the user Behavioral needs to enhance user experience.
参照图3,图3为本申请基于日志的资源调整方法第二实施例的流程示意图,基于上述图2所示的第一实施例,提出本申请基于日志的资源调整方法的第二实施例。Referring to FIG. 3, FIG. 3 is a schematic flowchart of a second embodiment of the log-based resource adjustment method of the present application. Based on the first embodiment shown in FIG. 2 above, a second embodiment of the log-based resource adjustment method of the present application is proposed.
在第二实施例中,所述步骤S20,包括:In a second embodiment, the step S20 includes:
步骤S201:获取各用户请求的请求页面层级。Step S201: Acquire the requested page level requested by each user.
可理解的是,一个网站通常包括多个所述请求页面层级的页面,每个请求页面层级的页面中都有相应的功能,点击一个功能对应一个用户请求,各用户请求可能涉及多个请求页面层级的页面,在进行热点请求分析时,可将处于同一个请求页面层级的页面的用户请求进行对比,获得该请求页面层级的热点请求。Understandably, a website usually includes multiple pages at the requested page level, and each page at the requested page level has a corresponding function. Clicking a function corresponds to a user request, and each user request may involve multiple request pages. In the analysis of hotspot requests for a page at a hierarchical level, the user requests of pages at the same page level can be compared to obtain the hotspot request at the requested page level.
步骤S202:根据所述统一资源定位符信息计算各用户请求的点击量,将处于相同的所述请求页面层级的用户请求按照所述点击量从大到小进行排序,获得所述请求页面层级对应的请求排序列表。Step S202: Calculate the number of clicks requested by each user according to the uniform resource locator information, sort user requests at the same requested page level according to the clicks from large to small, and obtain the requested page-level correspondence. Sorted list of requests.
应理解的是,为了更准确的分析出热点请求,可将各用户请求按照所述请求页面层级进行分类对比,从而获得各个所述请求页面层级对应的热点请求。所述点击量越大的用户请求说明用户关注度越高,将处于相同的所述请求页面层级的用户请求作为一个分类,并按照所述点击量从大到小将对应的用户请求进行排序,从而获得该请求页面层级对应的请求排序列表。所述请求排队列表中的各用户请求按照所述点击量从大到小进行排序,则相应的用户的关注度也是从高到低。It should be understood that, in order to more accurately analyze hotspot requests, each user request may be classified and compared according to the requested page level, thereby obtaining hotspot requests corresponding to each of the requested page levels. The user request with a larger number of clicks indicates that the user has a higher degree of attention. The user requests at the same page level of the request are classified as a category, and the corresponding user requests are sorted according to the clicks from large to small. Obtain a sorted list of requests corresponding to the requested page level. Each user request in the request queuing list is sorted according to the number of hits, and the corresponding user ’s attention is also high to low.
例如,有三个所述请求页面层级:A、B和C,所述请求页面层级A中用户请求a1、a2、a3、a4和a5,对应的点击量分别为10、20、30、40和50;所述请求页面层级B中用户请求b1、b2和b3,对应的点击量分别为10、20和30,所述请求页面层级C中用户请求c1、c2和c3,对应的点击量分别为15、25和35,则获得所述请求页面层级A对应的所述请求排序列表为:a5、a4、a3、a2和a1,所述请求页面层级B对应的所述请求排序列表为:b3、b2和b1,所述请求页面层级C对应的所述请求排序列表为:c3、c2和c1。For example, there are three levels of the requested pages: A, B, and C. In the requested page level A, users request a1, a2, a3, a4, and a5, and the corresponding hits are 10, 20, 30, 40, and 50, respectively. ; The user requests b1, b2, and b3 in the request page level B, the corresponding clicks are 10, 20, and 30, and the user requests c1, c2, and c3 in the request page level C, the corresponding clicks are 15 , 25, and 35, the request ranking list corresponding to the requested page level A is: a5, a4, a3, a2, and a1, and the request ranking list corresponding to the request page level B is: b3, b2 And b1, the request ranking list corresponding to the requested page level C is: c3, c2, and c1.
在第二实施例中,所述步骤S30,包括:In a second embodiment, the step S30 includes:
步骤S301:将各请求页面层级对应的所述请求排序列表中排在前面的第一预设数量的用户请求认定为各请求页面层级对应的热点请求。Step S301: The first preset number of user requests in the request ranking list corresponding to each requested page level are identified as hotspot requests corresponding to each requested page level.
可理解的是,通常各个请求页面层级中用户关注度较高的功能可能就少数几个,也就是说各请求页面层级对应的热点请求数量不会很多,所述第一预设数量可以根据分析需求进行设置,比如,想分析所述请求页面层级的网页中关注度排在前二位的功能,则可将所述第一预设数量设置为二。所述请求排队列表中排在前面的所述第一预设数量的用户请求,即是各请求页面层级的网页中用户的关注度排在前面的所述第一预设数量的功能,故可将所述第一预设数量的用户请求认定为所述请求页面层级对应的所述热点请求。It is understandable that there may be only a few functions with high user attention in each requested page level, that is, the number of hotspot requests corresponding to each requested page level will not be large, and the first preset number may be based on analysis It is required to set, for example, to analyze the functions with the highest two attention levels in the web page requesting the page level, the first preset number may be set to two. The first preset number of user requests that are ranked first in the request queuing list are functions of the first preset number of users that are ranked in the front of the web pages of each request page level. And identifying the first preset number of user requests as the hotspot requests corresponding to the requested page level.
在第二实施例中,所述步骤S40,包括:In a second embodiment, the step S40 includes:
步骤S401:获取所述热点请求的热点页面位置,从所述热点页面位置中提取出所述热点请求对应的热点页面层级。Step S401: Obtain the hotspot page position of the hotspot request, and extract the hotspot page level corresponding to the hotspot request from the hotspot page position.
需要说明的是,根据所述热点请求可确定其对应的功能,所述功能所处的页面位置即所述热点页面位置,所述热点页面位置具体为在哪个所述热点页面层级的哪个区域。It should be noted that the corresponding function can be determined according to the hotspot request, the page position where the function is located is the hotspot page position, and the hotspot page position is specifically in which hotspot page level and which area.
步骤S402:判断所述热点页面位置是否处于所述热点页面层级对应的当前页面的预设显眼区域。Step S402: Determine whether the location of the hot page is in a preset prominent area of a current page corresponding to the hot page level.
在具体实现中,对于不同的所述热点页面层级中的所述热点请求进行位置分析,所述当前页面为所述热点请求对应的功能所处的页面,可预先将所述当前页面划分成多个区域,根据用户习惯对每个区域分别设置不同的显眼等级,所述预设显眼区域为所述显眼等级最高的区域。可判断所述热点页面位置是否处于所述预设显眼区域,若不是,则将所述热点页面位置调整至所述当前页面的预设显眼区域;若是,则不需要调整。In specific implementation, location analysis is performed on the hotspot requests in different hotspot page hierarchies. The current page is the page where the function corresponding to the hotspot request is located. The current page may be divided into multiple pages in advance. For each area, a different conspicuous level is set for each area according to user habits, and the preset conspicuous area is the area with the highest conspicuous level. It can be determined whether the position of the hot page is in the preset prominent area; if not, the position of the hot page is adjusted to the preset prominent area of the current page; if so, no adjustment is required.
步骤S403:若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域。Step S403: if not, adjust the position of the hot page to the preset prominent area of the current page.
应理解的是,若所述热点页面位置不是处于所述热点页面层级对应的当前页面的预设显眼区域,则用户在访问所述所述热点页面层级对应的当前页面时,还需要花费时间去寻找所述热点请求对应的功能,为了更方便用户快速找到所述热点请求对应的功能,所述热点页面位置调整至所述当前页面的预设显眼区域,从而保证在所述热点页面层级对应的所述当前页面中所述热点请求被放置所述显眼等级最高的所述预设显眼区域,从而便于用户访问相应的功能,提升用户体验。It should be understood that if the location of the hot page is not in a preset prominent area of the current page corresponding to the hot page level, the user needs to spend time to access the current page corresponding to the hot page level. Find the function corresponding to the hotspot request. In order to make it easier for users to quickly find the function corresponding to the hotspot request, the position of the hotspot page is adjusted to a preset prominent area of the current page, thereby ensuring that the hotspot page level corresponds to the hotspot request level. The hotspot request in the current page is placed in the preset conspicuous area with the highest conspicuous level, thereby facilitating users to access corresponding functions and improving the user experience.
在第二实施例中,所述步骤S403之后,还包括:In the second embodiment, after step S403, the method further includes:
从第一排序列表和第二排序列表中分别获取一个热点请求,所述请求排序列表包括所述第一排序列表和所述第二排序列表;One hotspot request is obtained from each of the first sorted list and the second sorted list, and the request sorted list includes the first sorted list and the second sorted list;
将获取的两个热点请求对应的点击量进行比较,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求;Comparing the obtained clicks of the two hotspot requests, with the hotspot request with a larger click as the first request, and the hotspot request with the smaller click as the second request;
获取所述第一请求的第一页面层级和所述第二请求的第二页面层级,所述热点页面层级包括所述第一页面层级和所述第二页面层级;Acquiring the first page level of the first request and the second page level of the second request, and the hot page level includes the first page level and the second page level;
判断所述第一页面层级是否高于所述第二页面层级;Determining whether the first page level is higher than the second page level;
若是,则将所述第一页面层级与所述第二页面层级进行互换。If yes, the first page level and the second page level are interchanged.
可理解的是,将各热点页面层级中的所述热点请求对应的所述热点页面位置都调整至所述当前页面的所述预设显眼区域,对于所述热点页面层级,层级数越大的访问越耗时,比如,若所述热点请求对应的所述热点页面层级为第一层,则用户在网站中首先看到的就是第一层的页面,可直接点击第一次的页面中的任何位置进行访问,若所述热点请求对应的所述热点页面层级为第二层,首先要通过第一层的对应的入口进入所述第二层,才能从第二层的页面中找到所述热点请求对应的功能。为了节省用户访问耗时,可将用户关注度高的热点请求对应的层级调整到低层级。Understandably, the positions of the hotspot pages corresponding to the hotspot requests in each hotspot page hierarchy are adjusted to the preset prominent area of the current page. For the hotspot page hierarchy, the larger the number of hierarchies The more time-consuming to access, for example, if the hotspot page level corresponding to the hotspot request is the first level, the first page that the user sees on the website is the first level page, and the user can directly click the For access at any location, if the hotspot page level corresponding to the hotspot request is the second level, the first level must be entered through the corresponding entrance of the first level to find the second level page. Hotspot request corresponding function. In order to save user access time, the level corresponding to hotspot requests with high user attention can be adjusted to a lower level.
应理解的是,所述请求排序列表为各请求页面层级对应的列表,所述请求页面层级为多层,则所述请求排序列表相应的为多个,从多个所述请求排序列表中获取任意两个列表作为所述第一排序列表和所述第二排序列表。所述第一排序列表中排在前面的第一预设数量的用户请求为所述第一页面层级对应的热点请求,即从所述第一预设数量的所述第一页面层级对应的热点请求中任意获取一个热点请求;所述第二排序列表中排在前面的第一预设数量的用户请求为所述第二页面层级对应的热点请求,即从所述第一预设数量的所述第二页面层级对应的热点请求中任意获取一个热点请求;将获取的两个热点请求进行点击量的对比,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求。It should be understood that, the request sort list is a list corresponding to each request page level, and the request page hierarchy is multi-layer, then there are a plurality of corresponding request sort lists, which are obtained from a plurality of the request sort lists. Any two lists serve as the first sorted list and the second sorted list. The first preset number of user requests that are ranked first in the first sorted list are hotspot requests corresponding to the first page level, that is, from the first preset number of hotspots corresponding to the first page level One hotspot request is arbitrarily obtained in the request; the first preset number of user requests in the second ranked list are hotspot requests corresponding to the second page level, that is, from the first preset number of One of the hotspot requests corresponding to the second page level is arbitrarily obtained; the two hotspot requests obtained are compared for traffic, and the hotspot request with a larger traffic is taken as the first request, and the hotspot request with a smaller traffic is taken as Second request.
需要说明的是,判断所述第一请求对应的所述第一页面层级是否高于所述第二请求的所述第二页面层级,若所述第一页面层级是高于所述第二页面层级,说明所述第一请求访问比所述第二请求的访问更耗时,而第一请求的点击量更大,说明用户的关注度更高,为了节省用户访问耗时,可将所述第一请求对应的所述第一页面层级与所述第二请求的所述第二页面层级进行互换,以使点击量更高的用户请求更容易被访问到。It should be noted that it is determined whether the first page level corresponding to the first request is higher than the second page level of the second request, and if the first page level is higher than the second page The level indicates that the first requested access is more time-consuming than the second requested access, and the first request has a larger number of clicks, indicating that the user's attention is higher. In order to save the user's time-consuming access, the The first page level corresponding to the first request is interchanged with the second page level of the second request, so that user requests with a higher click volume are more easily accessed.
在第二实施例中,每个页面层级的热点请求都放置在最显眼的区域,节省用户访问耗时,提升用户体验。In the second embodiment, hotspot requests at each page level are placed in the most conspicuous areas, saving user access time and improving user experience.
参照图4,图4为本申请基于日志的资源调整方法第三实施例的流程示意图,基于上述图2所示的第一实施例,提出本申请基于日志的资源调整方法的第三实施例。Referring to FIG. 4, FIG. 4 is a schematic flowchart of a third embodiment of the log-based resource adjustment method of the present application. Based on the first embodiment shown in FIG. 2 described above, a third embodiment of the log-based resource adjustment method of the present application is proposed.
在第三实施例中,所述步骤S40之后,还包括:In the third embodiment, after step S40, the method further includes:
步骤S50:根据所述统一资源定位符信息计算各用户请求所占用的网络资源。Step S50: Calculate network resources occupied by each user request according to the uniform resource locator information.
可理解的是,所述统一资源定位符信息包含了用户请求对应的URL访问的单次页面大小,通过统计相同URL访问的次数,根据所述次数和所述单次页面大小来计算所述相同URL访问的总页面大小。统计的所述用户请求的种类,分类统计各种用户请求对应的URL所消耗的总时间、总页面大小以及单位时间页面大小来间接统计到各个用户请求对应的URL所占用的网络流量、中央处理器(Central Processing Unit,CPU)、输入/输出(Input/Output,IO)等资源,所述URL所占用的网络流量、CPU以及IO即为所述用户请求所占用的网络资源。其中,所述网络流量就是网络上传输的数据量。网络流量的大小对网络架构设计具有重要意义,可根据网络流量进行网络的设计。所占用的CPU指的是CPU使用率,其实就是运行的可读指令占用的CPU资源,表示计算机在某个时间点的运行可读指令的情况,使用率越高,说明计算机在这个时间上运行了很多可读指令,反之较少。所占输入输出(IO)指的是用户请求占用计算机同任何外部设备之间的传递的数据中的比例。It can be understood that the uniform resource locator information includes the single page size of the URL access corresponding to the user request. By counting the number of times of the same URL access, the same is calculated according to the number of times and the single page size. The total page size visited by the URL. The types of the user requests that are counted, and the total time, total page size, and page size per unit time consumed by various users requesting URLs are classified and counted to indirectly calculate the network traffic and central processing occupied by the URLs corresponding to each user request. (Central Processing Unit (CPU), Input / Output (IO), and other resources. The network traffic, CPU, and IO occupied by the URL are the network resources occupied by the user request. The network traffic is the amount of data transmitted on the network. The size of the network traffic is of great significance to the design of the network architecture, and the network can be designed according to the network traffic. The occupied CPU refers to the CPU usage, which is actually the CPU resources occupied by the running readable instructions, which indicates that the computer is running the readable instructions at a certain point in time. The higher the utilization, the computer is running at this time. A lot of readable instructions, and less of them. Occupied input and output (IO) refers to the proportion of data that a user requests to occupy the computer and transfer to any external device.
步骤S60:根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整。Step S60: Determine a network bottleneck request according to the network resources, and adjust the network bottleneck request.
应理解的是,为了优化网络资源占用情况,可通过所述用户请求所占用的网络资源对各个用户请求进行排序,将所占用的网络资源排在前面的用户请求确定为所述网络瓶颈请求。为了避免所述网络瓶颈请求占用过多或长时间占用网络资源,可对所述网络瓶颈请求进行分析,判断是否存在可优化空间,若存在,则可对所述网络瓶颈请求进行调整,以实现优化,改善所述网络瓶颈请求的占用网络资源的情况,减少所述网络瓶颈请求,提高网络资源利用率。It should be understood that, in order to optimize the occupation of network resources, each user request may be sorted by the network resources occupied by the user request, and the user request that ranked the occupied network resource first is determined as the network bottleneck request. In order to prevent the network bottleneck request from occupying too much or occupying network resources for a long time, the network bottleneck request may be analyzed to determine whether there is room for optimization, and if it exists, the network bottleneck request may be adjusted to achieve Optimize and improve the situation that the network bottleneck request occupies network resources, reduce the network bottleneck request, and improve the utilization of network resources.
进一步地,所述步骤S60,包括:Further, the step S60 includes:
将所述网络资源从大到小进行排序,获得资源占用列表;Sort the network resources from large to small to obtain a resource occupation list;
将所述资源占用列表中排在前面的第二预设数量的所述网络资源对应的用户请求认定为网络瓶颈请求;Identifying a user request corresponding to the second preset number of the network resources in the resource occupation list as a network bottleneck request;
对所述网络瓶颈请求进行调整。Adjust the network bottleneck request.
需要说明的是,将所述网络资源从大到小进行排序,排在前面的网络资源占用大,说明对应的用户请求占用的资源多,可能会制约网络的整体带宽,成为网络的瓶颈,通常网络瓶颈请求为多个,所述第二预设数量可根据经验值进行预先设置,比如:所述第二预设数量可以是20或50等。为了避免所述网络瓶颈请求占用过多或长时间占用网络资源,可对所述网络瓶颈请求进行分析,从用户角度而言,优化能够让页面加载得更快、对用户的操作响应得更及时,能够给用户提供更为友好的体验。从服务商角度而言,优化能够减少页面请求数、或者减小请求所占带宽,能够节省可观的资源。恰当的优化不仅能够改善站点的用户体验并且能够节省相当的资源利用。It should be noted that the network resources are sorted from large to small, and the network resources that are ranked in front occupy a large amount, indicating that the corresponding user requests occupy a lot of resources, which may limit the overall network bandwidth and become a network bottleneck. Generally, There are multiple network bottleneck requests, and the second preset number may be preset according to experience values, for example, the second preset number may be 20 or 50, and so on. In order to avoid the network bottleneck request from occupying too much or occupying network resources for a long time, the network bottleneck request can be analyzed. From the perspective of the user, optimization can make the page load faster and respond to the user's operation more timely. , Can provide users with a more friendly experience. From the perspective of the service provider, optimization can reduce the number of page requests, or reduce the bandwidth occupied by requests, and can save considerable resources. Proper optimization can not only improve the user experience of the site, but also save considerable resource utilization.
在具体实现中,前端优化的途径有很多,可以是页面级别的优化,例如超文本传输协议(HyperText Transfer Protocol,简称HTTP)请求数、脚本的无阻塞加载、内联脚本的位置优化等;还可以是代码级别的优化,例如Javascript中的文档对象模型(Document Object Model,简称DOM)操作优化、层叠样式表(Cascading Style Sheets,简称CSS)选择符优化、图片优化以及超级文本标记语言(HyperText Markup Language,简称HTML)结构优化等。本实施例中,所述对所述网络瓶颈请求进行调整,包括:对所述网络瓶颈请求进行分析,判断所述网络瓶颈请求能否进行页面级优化或者代码级优化;若能,则对所述网络瓶颈请求进行页面级优化或者代码级优化。In specific implementation, there are many ways to optimize the front end, which can be page-level optimization, such as HyperText Transfer Protocol (HyperText Transfer Protocol (HTTP for short) requests, non-blocking loading of scripts, location optimization of inline scripts, etc .; it can also be code-level optimizations, such as the Document Object Model (Document in Javascript) Object Model (DOM for short) operation optimization, Cascading Style Sheets (CSS for short) selector optimization, image optimization, and HyperText Markup Language (HTML for short) structural optimization. In this embodiment, the adjusting the network bottleneck request includes analyzing the network bottleneck request to determine whether the network bottleneck request can perform page-level optimization or code-level optimization. Describe the network bottleneck request for page-level optimization or code-level optimization.
在第三实施例中,优化能够让页面加载得更快、对用户的操作响应得更及时,能够给用户提供更为友好的体验,并且优化能够减少页面请求数、或者减小请求所占带宽,能够节省可观的资源。In the third embodiment, the optimization can make the page load faster, respond to the user's operation more timely, provide a more friendly experience for the user, and the optimization can reduce the number of page requests, or reduce the bandwidth occupied by the request. Can save considerable resources.
需要说明的是,本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。It should be noted that a person of ordinary skill in the art can understand that all or part of the steps for implementing the foregoing embodiments may be completed by hardware, or may be performed by a program instructing related hardware. The program may be stored in a computer-readable format. Among the storage media, the above-mentioned storage media may be a read-only memory, a magnetic disk, or an optical disk.
此外,本申请实施例还提出一种存储介质,所述存储介质上存储有基于日志的资源调整可读指令,所述基于日志的资源调整可读指令被处理器执行时实现如上文所述的基于日志的资源调整方法的步骤。In addition, an embodiment of the present application further provides a storage medium, where the log-based resource adjustment readable instruction is stored, and the log-based resource adjustment readable instruction is implemented as described above when executed by a processor. Steps of a log-based resource tuning method.
此外,参照图5,本申请实施例还提出一种基于日志的资源调整装置,所述基于日志的资源调整装置包括:In addition, referring to FIG. 5, an embodiment of the present application further provides a log-based resource adjustment apparatus. The log-based resource adjustment apparatus includes:
提取模块10,用于收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;An extraction module 10, configured to collect an access log generated by a statistics server, and extract uniform resource locator information requested by multiple users from the access log;
排序模块20,用于根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;A sorting module 20 is configured to calculate the number of clicks requested by each user according to the uniform resource locator information, sort each user request according to the number of clicks, and obtain a request ranking list;
认定模块30,用于将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;A determination module 30, configured to identify the first preset number of user requests in the request ranking list as hotspot requests;
调整模块40,用于获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。The adjusting module 40 is configured to obtain the hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of the current page.
在一实施例中,所述基于日志的资源调整装置还包括:获取模块,用于获取各用户请求的请求页面层级;In an embodiment, the log-based resource adjustment device further includes: an obtaining module, configured to obtain a requested page level requested by each user;
所述排序模块20,还用于根据所述统一资源定位符信息计算各用户请求的点击量,将处于相同的所述请求页面层级的用户请求按照所述点击量从大到小进行排序,获得所述请求页面层级对应的请求排序列表;The ranking module 20 is further configured to calculate the number of clicks requested by each user according to the uniform resource locator information, and sort the user requests at the same requested page level according to the number of clicks to obtain A request sort list corresponding to the request page level;
所述认定模块30,还用于将各请求页面层级对应的所述请求排序列表中排在前面的第一预设数量的用户请求认定为各请求页面层级对应的热点请求。The identification module 30 is further configured to identify the first preset number of user requests in the request ranking list corresponding to each requested page level as hotspot requests corresponding to each requested page level.
在一实施例中,所述基于日志的资源调整装置还包括:所述获取模块,还用于获取所述热点请求的热点页面位置,从所述热点页面位置中提取出所述热点请求对应的热点页面层级;判断模块,用于判断所述热点页面位置是否处于所述热点页面层级对应的当前页面的预设显眼区域;所述调整模块40,还用于若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域。In an embodiment, the log-based resource adjustment device further includes: the obtaining module is further configured to obtain a hotspot page position of the hotspot request, and extract a corresponding hotspot request from the hotspot page position. Hot page level; a judging module for judging whether the position of the hot page is in a preset prominent area of the current page corresponding to the hot page level; the adjustment module 40 is further configured to, if not, change the hot page The position is adjusted to the preset prominent area of the current page.
在一实施例中,所述基于日志的资源调整装置还包括:所述获取模块,还用于从第一排序列表和第二排序列表中分别获取一个热点请求,所述请求排序列表包括所述第一排序列表和所述第二排序列表;比较模块,还用于将获取的两个热点请求对应的点击量进行比较,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求;所述获取模块,还用于获取所述第一请求的第一页面层级和所述第二请求的第二页面层级,所述热点页面层级包括所述第一页面层级和所述第二页面层级;所述判断模块,还用于判断所述第一页面层级是否高于所述第二页面层级;互换模块,还用于若是,则将所述第一页面层级与所述第二页面层级进行互换。In an embodiment, the log-based resource adjustment device further includes: the obtaining module is further configured to obtain a hotspot request from a first sorted list and a second sorted list, respectively, and the request sorted list includes the request A first sorted list and the second sorted list; a comparison module is further configured to compare the number of clicks corresponding to the two hotspot requests obtained, and use the hotspot request with a larger number of hits as the first request; The hotspot request is a second request; the obtaining module is further configured to obtain a first page level of the first request and a second page level of the second request, and the hot page level includes the first page level And the second page level; the judging module is further configured to determine whether the first page level is higher than the second page level; the interchange module is further configured to, if so, the first page level With the second page hierarchy.
在一实施例中,所述基于日志的资源调整装置还包括:计算模块,用于根据所述统一资源定位符信息计算各用户请求所占用的网络资源;所述调整模块40,还用于根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整。In an embodiment, the log-based resource adjustment device further includes: a calculation module, configured to calculate network resources occupied by each user request according to the uniform resource locator information; and the adjustment module 40 is further configured to: The network resource determines a network bottleneck request, and adjusts the network bottleneck request.
在一实施例中,所述排序模块20,还用于将所述网络资源从大到小进行排序,获得资源占用列表;所述认定模块30,还用于将所述资源占用列表中排在前面的第二预设数量的所述网络资源对应的用户请求认定为网络瓶颈请求;所述调整模块40,还用于对所述网络瓶颈请求进行调整。In an embodiment, the ranking module 20 is further configured to sort the network resources from large to small to obtain a resource occupation list; and the determination module 30 is further configured to rank the resource occupation list in the The user request corresponding to the foregoing second preset number of network resources is identified as a network bottleneck request; the adjustment module 40 is further configured to adjust the network bottleneck request.
在一实施例中,所述判断模块,还用于对所述网络瓶颈请求进行分析,判断所述网络瓶颈请求能否进行页面级优化或者代码级优化;所述调整模块40,还用于若能,则对所述网络瓶颈请求进行页面级优化或者代码级优化。In one embodiment, the determination module is further configured to analyze the network bottleneck request to determine whether the network bottleneck request can perform page-level optimization or code-level optimization; the adjustment module 40 is further configured to: If yes, perform page-level optimization or code-level optimization on the network bottleneck request.
本申请所述基于日志的资源调整装置的其他实施例或具体实现方式可参照上述各方法实施例,此处不再赘述。For other embodiments or specific implementations of the log-based resource adjustment apparatus described in this application, reference may be made to the foregoing method embodiments, and details are not described herein again.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, in this article, the terms "including", "including" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, It also includes other elements not explicitly listed, or elements inherent to such a process, method, article, or system. Without more restrictions, an element limited by the sentence "including a ..." does not exclude the existence of other identical elements in the process, method, article, or system that includes the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述 实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通 过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体 现出来,该计算机软件产品存储在一个存储介质(如只读存储器镜像(Read Only Memory image,ROM)/随机存取存储器(Random Access Memory,RAM)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the superiority or inferiority of the embodiments. Through the description of the above embodiments, those skilled in the art can clearly understand the above. The method of the embodiment can be implemented by means of software plus a necessary universal hardware platform. Hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application in essence or a part that contributes to the existing technology may be in the form of a software product. Now, the computer software product is stored in a storage medium (such as a Read Only Memory image (ROM) / Random Access Memory (Random Access Memory (RAM), magnetic disks, and optical disks) include a number of instructions for causing a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the embodiments of this application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。 The above are only preferred embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the specification and drawings of the present application, or directly or indirectly used in other related technical fields Are included in the scope of patent protection of this application. Ranch

Claims (20)

  1. 一种基于日志的资源调整方法,其特征在于,所述基于日志的资源调整方法包括以下步骤:A log-based resource adjustment method is characterized in that the log-based resource adjustment method includes the following steps:
    收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;Collect an access log generated by the statistics server, and extract uniform resource locator information requested by multiple users from the access log;
    根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;Calculating the number of clicks requested by each user according to the uniform resource locator information, sorting each user request according to the number of clicks, and obtaining a request sort list;
    将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;Identifying the first preset number of user requests in the request ranking list as hotspot requests;
    获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。Obtain the hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of the current page.
  2. 如权利要求1所述的基于日志的资源调整方法,其特征在于,所述根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表,包括:The method for adjusting resources based on logs according to claim 1, characterized in that, according to the uniform resource locator information, the number of clicks requested by each user is calculated, and each user request is performed according to the clicks from large to small Sort to get a list of sorted requests, including:
    获取各用户请求的请求页面层级;Get the requested page level requested by each user;
    根据所述统一资源定位符信息计算各用户请求的点击量,将处于相同的所述请求页面层级的用户请求按照所述点击量从大到小进行排序,获得所述请求页面层级对应的请求排序列表;Calculate the number of clicks requested by each user according to the uniform resource locator information, sort the user requests at the same requested page level according to the clicks from large to small, and obtain the request order corresponding to the requested page level List
    所述将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求,包括:The identifying the first preset number of user requests in the request ranking list as hotspot requests includes:
    将各请求页面层级对应的所述请求排序列表中排在前面的第一预设数量的用户请求认定为各请求页面层级对应的热点请求。The first preset number of user requests in the request ranking list corresponding to each requested page level are identified as hotspot requests corresponding to each requested page level.
  3. 如权利要求2所述的基于日志的资源调整方法,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域,包括:The log-based resource adjustment method according to claim 2, wherein the acquiring the hotspot page position requested by the hotspot and adjusting the hotspot page position to a preset prominent area of the current page comprises:
    获取所述热点请求的热点页面位置,从所述热点页面位置中提取出所述热点请求对应的热点页面层级;Obtaining the hotspot page position of the hotspot request, and extracting the hotspot page level corresponding to the hotspot request from the hotspot page position;
    判断所述热点页面位置是否处于所述热点页面层级对应的当前页面的预设显眼区域;Determining whether the location of the hot page is in a preset prominent area of a current page corresponding to the hot page level;
    若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域。If not, adjust the position of the hot page to the preset prominent area of the current page.
  4. 如权利要求2所述的基于日志的资源调整方法,其特征在于,所述若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域之后,所述基于日志的资源调整方法还包括:The log-based resource adjustment method according to claim 2, wherein if the position of the hot page is not adjusted to the preset prominent area of the current page, the log-based Resource adjustment methods also include:
    从第一排序列表和第二排序列表中分别获取一个热点请求,所述请求排序列表包括所述第一排序列表和所述第二排序列表;One hotspot request is obtained from each of the first sorted list and the second sorted list, and the request sorted list includes the first sorted list and the second sorted list;
    将获取的两个热点请求对应的点击量进行比较,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求;Comparing the obtained clicks of the two hotspot requests, with the hotspot request with a larger click as the first request, and the hotspot request with the smaller click as the second request;
    获取所述第一请求的第一页面层级和所述第二请求的第二页面层级,所述热点页面层级包括所述第一页面层级和所述第二页面层级;Acquiring the first page level of the first request and the second page level of the second request, and the hot page level includes the first page level and the second page level;
    判断所述第一页面层级是否高于所述第二页面层级;Determining whether the first page level is higher than the second page level;
    若是,则将所述第一页面层级与所述第二页面层级进行互换。If yes, the first page level and the second page level are interchanged.
  5. 如权利要求1所述的基于日志的资源调整方法,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域之后,所述基于日志的资源调整方法还包括:The log-based resource adjustment method according to claim 1, wherein after obtaining the hotspot page position of the hotspot request, adjusting the hotspot page position to a preset prominent area of the current page, the based The log resource adjustment method also includes:
    根据所述统一资源定位符信息计算各用户请求所占用的网络资源;Calculating network resources occupied by each user request according to the uniform resource locator information;
    根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整。A network bottleneck request is determined according to the network resources, and the network bottleneck request is adjusted.
  6. 如权利要求5所述的基于日志的资源调整方法,其特征在于,所述根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整,包括:The log-based resource adjustment method according to claim 5, wherein determining the network bottleneck request based on the network resource and adjusting the network bottleneck request comprises:
    将所述网络资源从大到小进行排序,获得资源占用列表;Sort the network resources from large to small to obtain a resource occupation list;
    将所述资源占用列表中排在前面的第二预设数量的所述网络资源对应的用户请求认定为网络瓶颈请求;Identifying a user request corresponding to the second preset number of the network resources in the resource occupation list as a network bottleneck request;
    对所述网络瓶颈请求进行调整。Adjust the network bottleneck request.
  7. 如权利要求6所述的基于日志的资源调整方法,其特征在于,所述对所述网络瓶颈请求进行调整,包括:The method for adjusting log-based resources according to claim 6, wherein the adjusting the network bottleneck request comprises:
    对所述网络瓶颈请求进行分析,判断所述网络瓶颈请求能否进行页面级优化或者代码级优化;Analyze the network bottleneck request to determine whether the network bottleneck request can perform page-level optimization or code-level optimization;
    若能,则对所述网络瓶颈请求进行页面级优化或者代码级优化。If it can, perform page-level optimization or code-level optimization on the network bottleneck request.
  8. 一种基于日志的资源调整设备,其特征在于,所述基于日志的资源调整设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于日志的资源调整可读指令,所述基于日志的资源调整可读指令被所述处理器执行时实现以下步骤:A log-based resource adjustment device, characterized in that the log-based resource adjustment device includes: a memory, a processor, and a log-based resource adjustment device that is stored on the memory and can run on the processor. Read instructions, the log-based resource adjustment readable instructions when executed by the processor implement the following steps:
    收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;Collect an access log generated by the statistics server, and extract uniform resource locator information requested by multiple users from the access log;
    根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;Calculating the number of clicks requested by each user according to the uniform resource locator information, sorting each user request according to the number of clicks, and obtaining a request sort list;
    将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;Identifying the first preset number of user requests in the request ranking list as hotspot requests;
    获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。Obtain the hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of the current page.
  9. 如权利要求8所述的基于日志的资源调整设备,其特征在于,所述根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表的步骤包括:The device for adjusting resources based on logs according to claim 8, characterized in that said calculating the click amount requested by each user according to the uniform resource locator information, and performing each user request according to the click amount from large to small Sorting, the steps to obtain a sorted list of requests include:
    获取各用户请求的请求页面层级;Get the requested page level requested by each user;
    根据所述统一资源定位符信息计算各用户请求的点击量,将处于相同的所述请求页面层级的用户请求按照所述点击量从大到小进行排序,获得所述请求页面层级对应的请求排序列表;Calculate the number of clicks requested by each user according to the uniform resource locator information, sort the user requests at the same requested page level according to the clicks from large to small, and obtain the request order corresponding to the requested page level List
    所述将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求的步骤包括:The step of identifying the first preset number of user requests in the request ranking list as hotspot requests includes:
    将各请求页面层级对应的所述请求排序列表中排在前面的第一预设数量的用户请求认定为各请求页面层级对应的热点请求。The first preset number of user requests in the request ranking list corresponding to each requested page level are identified as hotspot requests corresponding to each requested page level.
  10. 如权利要求9所述的基于日志的资源调整设备,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域的步骤包括:The log-based resource adjustment device according to claim 9, wherein the step of obtaining the hotspot page position requested by the hotspot and adjusting the hotspot page position to a preset prominent area of the current page comprises:
    获取所述热点请求的热点页面位置,从所述热点页面位置中提取出所述热点请求对应的热点页面层级;Obtaining the hotspot page position of the hotspot request, and extracting the hotspot page level corresponding to the hotspot request from the hotspot page position;
    判断所述热点页面位置是否处于所述热点页面层级对应的当前页面的预设显眼区域;Determining whether the location of the hot page is in a preset prominent area of a current page corresponding to the hot page level;
    若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域。If not, adjust the position of the hot page to the preset prominent area of the current page.
  11. 如权利要求9所述的基于日志的资源调整设备,其特征在于,所述若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域的步骤之后包括:The log-based resource adjustment device according to claim 9, wherein after the step of adjusting the position of the hot page to the preset conspicuous area of the current page after the step is not included, comprising:
    从第一排序列表和第二排序列表中分别获取一个热点请求,所述请求排序列表包括所述第一排序列表和所述第二排序列表;One hotspot request is obtained from each of the first sorted list and the second sorted list, and the request sorted list includes the first sorted list and the second sorted list;
    将获取的两个热点请求对应的点击量进行比较,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求;Comparing the obtained clicks of the two hotspot requests, with the hotspot request with a larger click as the first request, and the hotspot request with the smaller click as the second request;
    获取所述第一请求的第一页面层级和所述第二请求的第二页面层级,所述热点页面层级包括所述第一页面层级和所述第二页面层级;Acquiring the first page level of the first request and the second page level of the second request, and the hot page level includes the first page level and the second page level;
    判断所述第一页面层级是否高于所述第二页面层级;Determining whether the first page level is higher than the second page level;
    若是,则将所述第一页面层级与所述第二页面层级进行互换。If yes, the first page level and the second page level are interchanged.
  12. 如权利要求8所述的基于日志的资源调整设备,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域的步骤之后包括:The log-based resource adjustment device according to claim 8, wherein after the step of obtaining the hotspot page position requested by the hotspot and adjusting the hotspot page position to a preset prominent area of the current page comprises:
    根据所述统一资源定位符信息计算各用户请求所占用的网络资源;Calculating network resources occupied by each user request according to the uniform resource locator information;
    根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整。A network bottleneck request is determined according to the network resources, and the network bottleneck request is adjusted.
  13. 如权利要求12所述的基于日志的资源调整设备,其特征在于,所述根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整的步骤包括:The log-based resource adjustment device according to claim 12, wherein the step of determining a network bottleneck request based on the network resource, and adjusting the network bottleneck request comprises:
    将所述网络资源从大到小进行排序,获得资源占用列表;Sort the network resources from large to small to obtain a resource occupation list;
    将所述资源占用列表中排在前面的第二预设数量的所述网络资源对应的用户请求认定为网络瓶颈请求;Identifying a user request corresponding to the second preset number of the network resources in the resource occupation list as a network bottleneck request;
    对所述网络瓶颈请求进行调整。Adjust the network bottleneck request.
  14. 一种存储介质,其特征在于,所述存储介质上存储有基于日志的资源调整可读指令,所述基于日志的资源调整可读指令被处理器执行,以实现以下步骤:A storage medium is characterized in that log-based resource adjustment readable instructions are stored on the storage medium, and the log-based resource adjustment readable instructions are executed by a processor to implement the following steps:
    收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;Collect an access log generated by the statistics server, and extract uniform resource locator information requested by multiple users from the access log;
    根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;Calculating the number of clicks requested by each user according to the uniform resource locator information, sorting each user request according to the number of clicks, and obtaining a request sort list;
    将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;Identifying the first preset number of user requests in the request ranking list as hotspot requests;
    获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。Obtain the hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of the current page.
  15. 如权利要求14所述的存储介质,其特征在于,所述根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表的步骤包括:The storage medium according to claim 14, wherein the calculation of the number of clicks requested by each user according to the uniform resource locator information, sorting each user request according to the number of clicks, and obtaining a request The steps to sort the list include:
    获取各用户请求的请求页面层级;Get the requested page level requested by each user;
    根据所述统一资源定位符信息计算各用户请求的点击量,将处于相同的所述请求页面层级的用户请求按照所述点击量从大到小进行排序,获得所述请求页面层级对应的请求排序列表;Calculate the number of clicks requested by each user according to the uniform resource locator information, sort the user requests at the same requested page level according to the clicks from large to small, and obtain the request order corresponding to the requested page level List
    所述将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求的步骤包括:The step of identifying the first preset number of user requests in the request ranking list as hotspot requests includes:
    将各请求页面层级对应的所述请求排序列表中排在前面的第一预设数量的用户请求认定为各请求页面层级对应的热点请求。The first preset number of user requests in the request ranking list corresponding to each requested page level are identified as hotspot requests corresponding to each requested page level.
  16. 如权利要求15所述的存储介质,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域的步骤包括:The storage medium according to claim 15, wherein the step of obtaining the hotspot page position requested by the hotspot and adjusting the hotspot page position to a preset prominent area of the current page comprises:
    获取所述热点请求的热点页面位置,从所述热点页面位置中提取出所述热点请求对应的热点页面层级;Obtaining the hotspot page position of the hotspot request, and extracting the hotspot page level corresponding to the hotspot request from the hotspot page position;
    判断所述热点页面位置是否处于所述热点页面层级对应的当前页面的预设显眼区域;Determining whether the location of the hot page is in a preset prominent area of a current page corresponding to the hot page level;
    若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域。If not, adjust the position of the hot page to the preset prominent area of the current page.
  17. 如权利要求15所述的存储介质,其特征在于,所述若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域的步骤之后包括:The storage medium according to claim 15, wherein after the step of adjusting the position of the hot page to the preset conspicuous area of the current page after the step of not comprising, comprising:
    从第一排序列表和第二排序列表中分别获取一个热点请求,所述请求排序列表包括所述第一排序列表和所述第二排序列表;One hotspot request is obtained from each of the first sorted list and the second sorted list, and the request sorted list includes the first sorted list and the second sorted list;
    将获取的两个热点请求对应的点击量进行比较,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求;Comparing the obtained clicks of the two hotspot requests, with the hotspot request with a larger click as the first request, and the hotspot request with the smaller click as the second request;
    获取所述第一请求的第一页面层级和所述第二请求的第二页面层级,所述热点页面层级包括所述第一页面层级和所述第二页面层级;Acquiring the first page level of the first request and the second page level of the second request, and the hot page level includes the first page level and the second page level;
    判断所述第一页面层级是否高于所述第二页面层级;Determining whether the first page level is higher than the second page level;
    若是,则将所述第一页面层级与所述第二页面层级进行互换。If yes, the first page level and the second page level are interchanged.
  18. 如权利要求14所述的存储介质,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域的步骤之后包括:The storage medium according to claim 14, wherein after the step of obtaining the hotspot page position requested by the hotspot and adjusting the hotspot page position to a preset prominent area of the current page comprises:
    根据所述统一资源定位符信息计算各用户请求所占用的网络资源;Calculating network resources occupied by each user request according to the uniform resource locator information;
    根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整。A network bottleneck request is determined according to the network resources, and the network bottleneck request is adjusted.
  19. 如权利要求18所述的存储介质,其特征在于,所述根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整的步骤包括:The storage medium according to claim 18, wherein the step of determining a network bottleneck request according to the network resource, and adjusting the network bottleneck request comprises:
    将所述网络资源从大到小进行排序,获得资源占用列表;Sort the network resources from large to small to obtain a resource occupation list;
    将所述资源占用列表中排在前面的第二预设数量的所述网络资源对应的用户请求认定为网络瓶颈请求;Identifying a user request corresponding to the second preset number of the network resources in the resource occupation list as a network bottleneck request;
    对所述网络瓶颈请求进行调整。Adjust the network bottleneck request.
  20. 一种基于日志的资源调整装置,其特征在于,所述基于日志的资源调整装置包括:A log-based resource adjustment device is characterized in that the log-based resource adjustment device includes:
    提取模块,用于收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;An extraction module, configured to collect an access log generated by the statistics server, and extract uniform resource locator information requested by multiple users from the access log;
    排序模块,用于根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;A sorting module, configured to calculate a click amount requested by each user according to the uniform resource locator information, sort each user request according to the click amount, and obtain a request sort list;
    认定模块,用于将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;A determining module, configured to identify the first preset number of user requests in the request ranking list as hotspot requests;
    调整模块,用于获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。An adjustment module is configured to obtain a hotspot page position requested by the hotspot, and adjust the hotspot page position to a preset prominent area of a current page.
PCT/CN2018/122803 2018-08-21 2018-12-21 Log-based resource adjustment method, equipment, storage medium and device WO2020037909A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810952260.7A CN109688184B (en) 2018-08-21 2018-08-21 Resource adjusting method, equipment, storage medium and device based on log
CN201810952260.7 2018-08-21

Publications (1)

Publication Number Publication Date
WO2020037909A1 true WO2020037909A1 (en) 2020-02-27

Family

ID=66184434

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/122803 WO2020037909A1 (en) 2018-08-21 2018-12-21 Log-based resource adjustment method, equipment, storage medium and device

Country Status (2)

Country Link
CN (1) CN109688184B (en)
WO (1) WO2020037909A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966199A (en) * 2021-03-03 2021-06-15 北京百度网讯科技有限公司 Method and device for determining page adjustment income, electronic equipment and medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019451B (en) * 2019-05-29 2023-11-21 中国移动通信集团安徽有限公司 Bandwidth allocation method, debugging network element, local cache server and computing device
CN112416875B (en) * 2020-11-24 2024-04-09 平安消费金融有限公司 Log management method, device, computer equipment and storage medium
CN112651839A (en) * 2021-01-07 2021-04-13 中国农业银行股份有限公司 Product optimization method and system
CN113987372B (en) * 2021-12-27 2022-03-18 昆仑智汇数据科技(北京)有限公司 Hot data acquisition method, device and equipment of domain business object model

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130210437A1 (en) * 2012-01-30 2013-08-15 Renesas Mobile Corporation Method and apparatus for providing improved mobility procedure
CN105740466A (en) * 2016-03-04 2016-07-06 百度在线网络技术(北京)有限公司 Method and device for excavating incidence relation between hotspot concepts
CN106339447A (en) * 2016-08-23 2017-01-18 达而观信息科技(上海)有限公司 System and method for automatically predicting hot videos
CN106919669A (en) * 2017-02-20 2017-07-04 浙江大学 A kind of method being ranked up to info web display location

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9864482B2 (en) * 2012-03-13 2018-01-09 Cognilore Inc. Method of navigating through digital content
CN102984234B (en) * 2012-11-19 2016-06-01 北京奇虎科技有限公司 The access control method of a kind of communication system and Web content
CN103473282B (en) * 2013-08-29 2016-10-05 北京奇虎科技有限公司 A kind of apparatus and method generating the Hot Contents page
CN105630871B (en) * 2015-12-16 2017-09-22 广州神马移动信息科技有限公司 Search result display methods, device and search system
CN105704246A (en) * 2016-04-12 2016-06-22 上海斐讯数据通信技术有限公司 Network distribution device and method based on SDN architecture
CN107729097B (en) * 2017-09-20 2021-06-04 五八有限公司 Display page configuration method and corresponding equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130210437A1 (en) * 2012-01-30 2013-08-15 Renesas Mobile Corporation Method and apparatus for providing improved mobility procedure
CN105740466A (en) * 2016-03-04 2016-07-06 百度在线网络技术(北京)有限公司 Method and device for excavating incidence relation between hotspot concepts
CN106339447A (en) * 2016-08-23 2017-01-18 达而观信息科技(上海)有限公司 System and method for automatically predicting hot videos
CN106919669A (en) * 2017-02-20 2017-07-04 浙江大学 A kind of method being ranked up to info web display location

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966199A (en) * 2021-03-03 2021-06-15 北京百度网讯科技有限公司 Method and device for determining page adjustment income, electronic equipment and medium
CN112966199B (en) * 2021-03-03 2023-08-04 北京百度网讯科技有限公司 Page adjustment income determining method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN109688184B (en) 2021-09-21
CN109688184A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
WO2020037909A1 (en) Log-based resource adjustment method, equipment, storage medium and device
US10839038B2 (en) Generating configuration information for obtaining web resources
WO2020233077A1 (en) System service monitoring method, device, and apparatus, and storage medium
WO2017122981A1 (en) Method and system to decrease page load time by leveraging network latency
EP3259689A1 (en) Method and system for context based tab management
US9141697B2 (en) Method, system and computer-readable storage medium for detecting trap of web-based perpetual calendar and building retrieval database using the same
WO2013091346A1 (en) Webpage content preloading method, device and system
WO2017030306A1 (en) Method and system for bookmarking a webpage
CZ289563B6 (en) Server computer connectable to a network and operation method thereof
WO2013181972A1 (en) Method and device for identifying network access behaviour
CN102487403B (en) Method and device for executing JS (JavaScript) by server side
WO2020233057A1 (en) File packaging method, apparatus and device, and storage medium
WO2017074066A1 (en) Internet content providing server and computer readable recording medium embodying same method
CN102523296B (en) Method, device and system for optimizing wireless webpage browsing resources
JP2013058108A (en) Tag management device and tag management program
WO2020062655A1 (en) Crawler recognition method, apparatus and device, and non-volatile readable storage medium
WO2015068929A1 (en) Operation method of node considering packet characteristic in content-centered network and node
WO2018008861A1 (en) Html control system and method using user server
US20160020970A1 (en) Router and information-collection method thereof
WO2021003922A1 (en) Page information input optimization method, device and apparatus, and storage medium
JPWO2016075832A1 (en) Automatic page editing method, automatic page editing program and automatic page editing apparatus
JP2003271647A (en) Browsing file data providing method, browsing frequency data providing method, relay device therefor, program and storage medium
WO2013129888A1 (en) A method and system for non-ephemeral search
Ibrahim et al. A performance-oriented interface design model of web applications
JP2001125910A (en) Information source observation device, information source observation method and computer readable recording medium recording information source observation program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18930899

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18930899

Country of ref document: EP

Kind code of ref document: A1