WO2020037909A1 - 基于日志的资源调整方法、设备、存储介质及装置 - Google Patents
基于日志的资源调整方法、设备、存储介质及装置 Download PDFInfo
- 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
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/75—Indicating 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请公开了一种基于日志的资源调整方法、设备、存储介质及装置,该方法包括:收集统计服务器产生的访问日志,从访问日志中提取出多个用户请求的统一资源定位符信息;从统一资源定位符信息中提取出各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;将所述请求排序列表中排在前面的第一预设数量的点击量对应的用户请求认定为热点请求;获取热点请求的热点页面位置,将热点页面位置调整至当前页面的预设显眼区域。通过从访问日志中的统一资源定位符信息中提取出的用户请求的点击量,将点击量多的请求的页面位置调整至当前页面的预设显眼区域,使得请求的页面位置更符合用户行为需求,提升用户体验。
Description
本申请要求于2018年08月21日提交中国专利局、申请号为201810952260.7、发明名称为“基于日志的资源调整方法、设备、存储介质及装置”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及网络资源调整技术领域,尤其涉及一种基于日志的资源调整方法、设备、存储介质及装置。
背景技术
目前,网站中各页面层级的页面布局可能不是最优的,用户感兴趣的资源可能不在显眼位置,需要用户花费时间去寻找,导致用户体验差,现有技术中大多采用热力图的方式进行网站热点分析,需要在前台加入JavaScript代码实现,加重了服务器负载,缺乏便捷的热点分析方法。因此,如何进行热点分析以优化网页中各资源的位置分布是亟待解决的技术问题。
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。
发明内容
本申请的主要目的在于提供一种基于日志的资源调整方法、设备、存储介质及装置,旨在解决现有技术中如何通过热点分析以优化网页中各资源的位置分布的技术问题。
为实现上述目的,本申请提供一种基于日志的资源调整方法,所述基于日志的资源调整方法包括以下步骤:
收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;
根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;
将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;
获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。
此外,为实现上述目的,本申请还提出一种基于日志的资源调整设备,所述基于日志的资源调整设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于日志的资源调整可读指令,所述基于日志的资源调整可读指令配置为实现如上文所述的基于日志的资源调整方法的步骤。此外,为实现上述目的,本申请还提出一种存储介质,所述存储介质上存储有基于日志的资源调整可读指令,所述基于日志的资源调整可读指令被处理器执行,以实现如上文所述的基于日志的资源调整方法的步骤。
此外,为实现上述目的,本申请还提出一种基于日志的资源调整装置,所述基于日志的资源调整装置包括:
提取模块,用于收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;
排序模块,用于根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;
认定模块,用于将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;
调整模块,用于获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。
附图说明
图1是本申请实施例方案涉及的硬件运行环境的基于日志的资源调整设备的结构示意图;
图2为本申请基于日志的资源调整方法第一实施例的流程示意图;
图3为本申请基于日志的资源调整方法第二实施例的流程示意图;
图4为本申请基于日志的资源调整方法第三实施例的流程示意图;
图5为本申请基于日志的资源调整装置第一实施例的结构框图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
参照图1,图1为本申请实施例方案涉及的硬件运行环境的基于日志的资源调整设备结构示意图。
如图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的存储装置。
本领域技术人员可以理解,图1中示出的结构并不构成对基于日志的资源调整设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,认定为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及基于日志的资源调整可读指令。
在图1所示的基于日志的资源调整设备中,网络接口1004主要用于连接后台服务器,与所述后台服务器进行数据通信;用户接口1003主要用于连接用户设备;所述基于日志的资源调整设备通过处理器1001调用存储器1005中存储的基于日志的资源调整可读指令,并执行本申请实施例提供的基于日志的资源调整方法。
基于上述硬件结构,提出本申请基于日志的资源调整方法的实施例。
参照图2,图2为本申请基于日志的资源调整方法第一实施例的流程示意图,提出本申请基于日志的资源调整方法第一实施例。
在第一实施例中,所述基于日志的资源调整方法包括以下步骤:
步骤S10:收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息。
应理解的是,本实施例的执行主体是所述基于日志的资源调整设备,其中,所述基于日志的资源调整设备可为个人电脑或服务器等电子设备。首先搭建基于ELK架构的日志收集平台,ELK是三个开源软件的缩写,分别表示:Elasticsearch,Logstash,Kibana,可通过所述日志收集平台定时收集所述统计服务器产生的访问日志,所述访问日志中记录了用户请求的统一资源定位符(Uniform
Resource
Locator,URL)信息,是对可以从互联网上得到的资源的位置和访问方法的一种简洁的表示,是互联网上标准资源的地址。互联网上的每个文件都有一个唯一的URL,它包含的信息指出文件的位置以及浏览器应该怎么处理它。
步骤S20:根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表。
可理解的是,所述统一资源定位符信息包括:各个用户请求对应的统一资源定位符访问的单次页面大小、相同的所述统一资源定位符访问的总页面大小、各种所述统一资源定位符访问分别消耗的总时间和总页面大小等信息,通过统计各个用户请求对应的URL的访问量可以确定用户做了哪些页面的点击操作,将相同操作的数量进行累加从而统计出各用户请求的点击量,所述点击量越大的用户请求说明用户关注度越高,所述请求排队列表中的各用户请求按照所述点击量从大到小进行排序,则相应的用户的关注度也是从高到低。
步骤S30:将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求。
需要说明的是,通常用户关注度较高的功能可能就少数几个,也就是说热点请求数量不会很多,所述第一预设数量可以根据分析需求进行设置,比如,想分析网页中关注度排在前三位的功能,则可将所述第一预设数量设置为三。所述请求排队列表中排在前面的所述第一预设数量的用户请求,即是网页中用户的关注度排在前面的所述第一预设数量的功能,故可将所述第一预设数量的用户请求认定为所述热点请求。可对所述热点请求进行分析,从而掌握用户的行为特征和喜好。
步骤S40:获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。
应理解的是,所述当前页面为所述热点请求对应的功能所处的页面,可预先将所述当前页面划分成多个区域,根据用户习惯对每个区域分别设置不同的显眼等级,所述预设显眼区域为所述显眼等级最高的区域,可判断所述热点页面位置是否处于所述预设显眼区域,若不是,则将所述热点页面位置调整至所述当前页面的预设显眼区域,若是,则不需要调整。
在第一实施例中,收集统计服务器产生的访问日志,从访问日志中提取出多个用户请求的统一资源定位符信息,从统一资源定位符信息中提取出各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表,将所述请求排序列表中排在前面的第一预设数量的点击量对应的用户请求认定为热点请求,无需在前台加入JavaScript代码实现,便捷高效地实现了基于日志的热点分析;获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域,使得请求的页面位置更符合用户行为需求,提升用户体验。
参照图3,图3为本申请基于日志的资源调整方法第二实施例的流程示意图,基于上述图2所示的第一实施例,提出本申请基于日志的资源调整方法的第二实施例。
在第二实施例中,所述步骤S20,包括:
步骤S201:获取各用户请求的请求页面层级。
可理解的是,一个网站通常包括多个所述请求页面层级的页面,每个请求页面层级的页面中都有相应的功能,点击一个功能对应一个用户请求,各用户请求可能涉及多个请求页面层级的页面,在进行热点请求分析时,可将处于同一个请求页面层级的页面的用户请求进行对比,获得该请求页面层级的热点请求。
步骤S202:根据所述统一资源定位符信息计算各用户请求的点击量,将处于相同的所述请求页面层级的用户请求按照所述点击量从大到小进行排序,获得所述请求页面层级对应的请求排序列表。
应理解的是,为了更准确的分析出热点请求,可将各用户请求按照所述请求页面层级进行分类对比,从而获得各个所述请求页面层级对应的热点请求。所述点击量越大的用户请求说明用户关注度越高,将处于相同的所述请求页面层级的用户请求作为一个分类,并按照所述点击量从大到小将对应的用户请求进行排序,从而获得该请求页面层级对应的请求排序列表。所述请求排队列表中的各用户请求按照所述点击量从大到小进行排序,则相应的用户的关注度也是从高到低。
例如,有三个所述请求页面层级: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。
在第二实施例中,所述步骤S30,包括:
步骤S301:将各请求页面层级对应的所述请求排序列表中排在前面的第一预设数量的用户请求认定为各请求页面层级对应的热点请求。
可理解的是,通常各个请求页面层级中用户关注度较高的功能可能就少数几个,也就是说各请求页面层级对应的热点请求数量不会很多,所述第一预设数量可以根据分析需求进行设置,比如,想分析所述请求页面层级的网页中关注度排在前二位的功能,则可将所述第一预设数量设置为二。所述请求排队列表中排在前面的所述第一预设数量的用户请求,即是各请求页面层级的网页中用户的关注度排在前面的所述第一预设数量的功能,故可将所述第一预设数量的用户请求认定为所述请求页面层级对应的所述热点请求。
在第二实施例中,所述步骤S40,包括:
步骤S401:获取所述热点请求的热点页面位置,从所述热点页面位置中提取出所述热点请求对应的热点页面层级。
需要说明的是,根据所述热点请求可确定其对应的功能,所述功能所处的页面位置即所述热点页面位置,所述热点页面位置具体为在哪个所述热点页面层级的哪个区域。
步骤S402:判断所述热点页面位置是否处于所述热点页面层级对应的当前页面的预设显眼区域。
在具体实现中,对于不同的所述热点页面层级中的所述热点请求进行位置分析,所述当前页面为所述热点请求对应的功能所处的页面,可预先将所述当前页面划分成多个区域,根据用户习惯对每个区域分别设置不同的显眼等级,所述预设显眼区域为所述显眼等级最高的区域。可判断所述热点页面位置是否处于所述预设显眼区域,若不是,则将所述热点页面位置调整至所述当前页面的预设显眼区域;若是,则不需要调整。
步骤S403:若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域。
应理解的是,若所述热点页面位置不是处于所述热点页面层级对应的当前页面的预设显眼区域,则用户在访问所述所述热点页面层级对应的当前页面时,还需要花费时间去寻找所述热点请求对应的功能,为了更方便用户快速找到所述热点请求对应的功能,所述热点页面位置调整至所述当前页面的预设显眼区域,从而保证在所述热点页面层级对应的所述当前页面中所述热点请求被放置所述显眼等级最高的所述预设显眼区域,从而便于用户访问相应的功能,提升用户体验。
在第二实施例中,所述步骤S403之后,还包括:
从第一排序列表和第二排序列表中分别获取一个热点请求,所述请求排序列表包括所述第一排序列表和所述第二排序列表;
将获取的两个热点请求对应的点击量进行比较,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求;
获取所述第一请求的第一页面层级和所述第二请求的第二页面层级,所述热点页面层级包括所述第一页面层级和所述第二页面层级;
判断所述第一页面层级是否高于所述第二页面层级;
若是,则将所述第一页面层级与所述第二页面层级进行互换。
可理解的是,将各热点页面层级中的所述热点请求对应的所述热点页面位置都调整至所述当前页面的所述预设显眼区域,对于所述热点页面层级,层级数越大的访问越耗时,比如,若所述热点请求对应的所述热点页面层级为第一层,则用户在网站中首先看到的就是第一层的页面,可直接点击第一次的页面中的任何位置进行访问,若所述热点请求对应的所述热点页面层级为第二层,首先要通过第一层的对应的入口进入所述第二层,才能从第二层的页面中找到所述热点请求对应的功能。为了节省用户访问耗时,可将用户关注度高的热点请求对应的层级调整到低层级。
应理解的是,所述请求排序列表为各请求页面层级对应的列表,所述请求页面层级为多层,则所述请求排序列表相应的为多个,从多个所述请求排序列表中获取任意两个列表作为所述第一排序列表和所述第二排序列表。所述第一排序列表中排在前面的第一预设数量的用户请求为所述第一页面层级对应的热点请求,即从所述第一预设数量的所述第一页面层级对应的热点请求中任意获取一个热点请求;所述第二排序列表中排在前面的第一预设数量的用户请求为所述第二页面层级对应的热点请求,即从所述第一预设数量的所述第二页面层级对应的热点请求中任意获取一个热点请求;将获取的两个热点请求进行点击量的对比,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求。
需要说明的是,判断所述第一请求对应的所述第一页面层级是否高于所述第二请求的所述第二页面层级,若所述第一页面层级是高于所述第二页面层级,说明所述第一请求访问比所述第二请求的访问更耗时,而第一请求的点击量更大,说明用户的关注度更高,为了节省用户访问耗时,可将所述第一请求对应的所述第一页面层级与所述第二请求的所述第二页面层级进行互换,以使点击量更高的用户请求更容易被访问到。
在第二实施例中,每个页面层级的热点请求都放置在最显眼的区域,节省用户访问耗时,提升用户体验。
参照图4,图4为本申请基于日志的资源调整方法第三实施例的流程示意图,基于上述图2所示的第一实施例,提出本申请基于日志的资源调整方法的第三实施例。
在第三实施例中,所述步骤S40之后,还包括:
步骤S50:根据所述统一资源定位符信息计算各用户请求所占用的网络资源。
可理解的是,所述统一资源定位符信息包含了用户请求对应的URL访问的单次页面大小,通过统计相同URL访问的次数,根据所述次数和所述单次页面大小来计算所述相同URL访问的总页面大小。统计的所述用户请求的种类,分类统计各种用户请求对应的URL所消耗的总时间、总页面大小以及单位时间页面大小来间接统计到各个用户请求对应的URL所占用的网络流量、中央处理器(Central
Processing
Unit,CPU)、输入/输出(Input/Output,IO)等资源,所述URL所占用的网络流量、CPU以及IO即为所述用户请求所占用的网络资源。其中,所述网络流量就是网络上传输的数据量。网络流量的大小对网络架构设计具有重要意义,可根据网络流量进行网络的设计。所占用的CPU指的是CPU使用率,其实就是运行的可读指令占用的CPU资源,表示计算机在某个时间点的运行可读指令的情况,使用率越高,说明计算机在这个时间上运行了很多可读指令,反之较少。所占输入输出(IO)指的是用户请求占用计算机同任何外部设备之间的传递的数据中的比例。
步骤S60:根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整。
应理解的是,为了优化网络资源占用情况,可通过所述用户请求所占用的网络资源对各个用户请求进行排序,将所占用的网络资源排在前面的用户请求确定为所述网络瓶颈请求。为了避免所述网络瓶颈请求占用过多或长时间占用网络资源,可对所述网络瓶颈请求进行分析,判断是否存在可优化空间,若存在,则可对所述网络瓶颈请求进行调整,以实现优化,改善所述网络瓶颈请求的占用网络资源的情况,减少所述网络瓶颈请求,提高网络资源利用率。
进一步地,所述步骤S60,包括:
将所述网络资源从大到小进行排序,获得资源占用列表;
将所述资源占用列表中排在前面的第二预设数量的所述网络资源对应的用户请求认定为网络瓶颈请求;
对所述网络瓶颈请求进行调整。
需要说明的是,将所述网络资源从大到小进行排序,排在前面的网络资源占用大,说明对应的用户请求占用的资源多,可能会制约网络的整体带宽,成为网络的瓶颈,通常网络瓶颈请求为多个,所述第二预设数量可根据经验值进行预先设置,比如:所述第二预设数量可以是20或50等。为了避免所述网络瓶颈请求占用过多或长时间占用网络资源,可对所述网络瓶颈请求进行分析,从用户角度而言,优化能够让页面加载得更快、对用户的操作响应得更及时,能够给用户提供更为友好的体验。从服务商角度而言,优化能够减少页面请求数、或者减小请求所占带宽,能够节省可观的资源。恰当的优化不仅能够改善站点的用户体验并且能够节省相当的资源利用。
在具体实现中,前端优化的途径有很多,可以是页面级别的优化,例如超文本传输协议(HyperText
Transfer
Protocol,简称HTTP)请求数、脚本的无阻塞加载、内联脚本的位置优化等;还可以是代码级别的优化,例如Javascript中的文档对象模型(Document
Object Model,简称DOM)操作优化、层叠样式表(Cascading Style
Sheets,简称CSS)选择符优化、图片优化以及超级文本标记语言(HyperText Markup
Language,简称HTML)结构优化等。本实施例中,所述对所述网络瓶颈请求进行调整,包括:对所述网络瓶颈请求进行分析,判断所述网络瓶颈请求能否进行页面级优化或者代码级优化;若能,则对所述网络瓶颈请求进行页面级优化或者代码级优化。
在第三实施例中,优化能够让页面加载得更快、对用户的操作响应得更及时,能够给用户提供更为友好的体验,并且优化能够减少页面请求数、或者减小请求所占带宽,能够节省可观的资源。
需要说明的是,本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
此外,本申请实施例还提出一种存储介质,所述存储介质上存储有基于日志的资源调整可读指令,所述基于日志的资源调整可读指令被处理器执行时实现如上文所述的基于日志的资源调整方法的步骤。
此外,参照图5,本申请实施例还提出一种基于日志的资源调整装置,所述基于日志的资源调整装置包括:
提取模块10,用于收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;
排序模块20,用于根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;
认定模块30,用于将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;
调整模块40,用于获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。
在一实施例中,所述基于日志的资源调整装置还包括:获取模块,用于获取各用户请求的请求页面层级;
所述排序模块20,还用于根据所述统一资源定位符信息计算各用户请求的点击量,将处于相同的所述请求页面层级的用户请求按照所述点击量从大到小进行排序,获得所述请求页面层级对应的请求排序列表;
所述认定模块30,还用于将各请求页面层级对应的所述请求排序列表中排在前面的第一预设数量的用户请求认定为各请求页面层级对应的热点请求。
在一实施例中,所述基于日志的资源调整装置还包括:所述获取模块,还用于获取所述热点请求的热点页面位置,从所述热点页面位置中提取出所述热点请求对应的热点页面层级;判断模块,用于判断所述热点页面位置是否处于所述热点页面层级对应的当前页面的预设显眼区域;所述调整模块40,还用于若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域。
在一实施例中,所述基于日志的资源调整装置还包括:所述获取模块,还用于从第一排序列表和第二排序列表中分别获取一个热点请求,所述请求排序列表包括所述第一排序列表和所述第二排序列表;比较模块,还用于将获取的两个热点请求对应的点击量进行比较,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求;所述获取模块,还用于获取所述第一请求的第一页面层级和所述第二请求的第二页面层级,所述热点页面层级包括所述第一页面层级和所述第二页面层级;所述判断模块,还用于判断所述第一页面层级是否高于所述第二页面层级;互换模块,还用于若是,则将所述第一页面层级与所述第二页面层级进行互换。
在一实施例中,所述基于日志的资源调整装置还包括:计算模块,用于根据所述统一资源定位符信息计算各用户请求所占用的网络资源;所述调整模块40,还用于根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整。
在一实施例中,所述排序模块20,还用于将所述网络资源从大到小进行排序,获得资源占用列表;所述认定模块30,还用于将所述资源占用列表中排在前面的第二预设数量的所述网络资源对应的用户请求认定为网络瓶颈请求;所述调整模块40,还用于对所述网络瓶颈请求进行调整。
在一实施例中,所述判断模块,还用于对所述网络瓶颈请求进行分析,判断所述网络瓶颈请求能否进行页面级优化或者代码级优化;所述调整模块40,还用于若能,则对所述网络瓶颈请求进行页面级优化或者代码级优化。
本申请所述基于日志的资源调整装置的其他实施例或具体实现方式可参照上述各方法实施例,此处不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述
实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通
过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体
现出来,该计算机软件产品存储在一个存储介质(如只读存储器镜像(Read Only Memory image,ROM)/随机存取存储器(Random
Access
Memory,RAM)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。
Claims (20)
- 一种基于日志的资源调整方法,其特征在于,所述基于日志的资源调整方法包括以下步骤:收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。
- 如权利要求1所述的基于日志的资源调整方法,其特征在于,所述根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表,包括:获取各用户请求的请求页面层级;根据所述统一资源定位符信息计算各用户请求的点击量,将处于相同的所述请求页面层级的用户请求按照所述点击量从大到小进行排序,获得所述请求页面层级对应的请求排序列表;所述将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求,包括:将各请求页面层级对应的所述请求排序列表中排在前面的第一预设数量的用户请求认定为各请求页面层级对应的热点请求。
- 如权利要求2所述的基于日志的资源调整方法,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域,包括:获取所述热点请求的热点页面位置,从所述热点页面位置中提取出所述热点请求对应的热点页面层级;判断所述热点页面位置是否处于所述热点页面层级对应的当前页面的预设显眼区域;若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域。
- 如权利要求2所述的基于日志的资源调整方法,其特征在于,所述若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域之后,所述基于日志的资源调整方法还包括:从第一排序列表和第二排序列表中分别获取一个热点请求,所述请求排序列表包括所述第一排序列表和所述第二排序列表;将获取的两个热点请求对应的点击量进行比较,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求;获取所述第一请求的第一页面层级和所述第二请求的第二页面层级,所述热点页面层级包括所述第一页面层级和所述第二页面层级;判断所述第一页面层级是否高于所述第二页面层级;若是,则将所述第一页面层级与所述第二页面层级进行互换。
- 如权利要求1所述的基于日志的资源调整方法,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域之后,所述基于日志的资源调整方法还包括:根据所述统一资源定位符信息计算各用户请求所占用的网络资源;根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整。
- 如权利要求5所述的基于日志的资源调整方法,其特征在于,所述根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整,包括:将所述网络资源从大到小进行排序,获得资源占用列表;将所述资源占用列表中排在前面的第二预设数量的所述网络资源对应的用户请求认定为网络瓶颈请求;对所述网络瓶颈请求进行调整。
- 如权利要求6所述的基于日志的资源调整方法,其特征在于,所述对所述网络瓶颈请求进行调整,包括:对所述网络瓶颈请求进行分析,判断所述网络瓶颈请求能否进行页面级优化或者代码级优化;若能,则对所述网络瓶颈请求进行页面级优化或者代码级优化。
- 一种基于日志的资源调整设备,其特征在于,所述基于日志的资源调整设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于日志的资源调整可读指令,所述基于日志的资源调整可读指令被所述处理器执行时实现以下步骤:收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。
- 如权利要求8所述的基于日志的资源调整设备,其特征在于,所述根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表的步骤包括:获取各用户请求的请求页面层级;根据所述统一资源定位符信息计算各用户请求的点击量,将处于相同的所述请求页面层级的用户请求按照所述点击量从大到小进行排序,获得所述请求页面层级对应的请求排序列表;所述将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求的步骤包括:将各请求页面层级对应的所述请求排序列表中排在前面的第一预设数量的用户请求认定为各请求页面层级对应的热点请求。
- 如权利要求9所述的基于日志的资源调整设备,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域的步骤包括:获取所述热点请求的热点页面位置,从所述热点页面位置中提取出所述热点请求对应的热点页面层级;判断所述热点页面位置是否处于所述热点页面层级对应的当前页面的预设显眼区域;若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域。
- 如权利要求9所述的基于日志的资源调整设备,其特征在于,所述若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域的步骤之后包括:从第一排序列表和第二排序列表中分别获取一个热点请求,所述请求排序列表包括所述第一排序列表和所述第二排序列表;将获取的两个热点请求对应的点击量进行比较,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求;获取所述第一请求的第一页面层级和所述第二请求的第二页面层级,所述热点页面层级包括所述第一页面层级和所述第二页面层级;判断所述第一页面层级是否高于所述第二页面层级;若是,则将所述第一页面层级与所述第二页面层级进行互换。
- 如权利要求8所述的基于日志的资源调整设备,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域的步骤之后包括:根据所述统一资源定位符信息计算各用户请求所占用的网络资源;根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整。
- 如权利要求12所述的基于日志的资源调整设备,其特征在于,所述根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整的步骤包括:将所述网络资源从大到小进行排序,获得资源占用列表;将所述资源占用列表中排在前面的第二预设数量的所述网络资源对应的用户请求认定为网络瓶颈请求;对所述网络瓶颈请求进行调整。
- 一种存储介质,其特征在于,所述存储介质上存储有基于日志的资源调整可读指令,所述基于日志的资源调整可读指令被处理器执行,以实现以下步骤:收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。
- 如权利要求14所述的存储介质,其特征在于,所述根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表的步骤包括:获取各用户请求的请求页面层级;根据所述统一资源定位符信息计算各用户请求的点击量,将处于相同的所述请求页面层级的用户请求按照所述点击量从大到小进行排序,获得所述请求页面层级对应的请求排序列表;所述将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求的步骤包括:将各请求页面层级对应的所述请求排序列表中排在前面的第一预设数量的用户请求认定为各请求页面层级对应的热点请求。
- 如权利要求15所述的存储介质,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域的步骤包括:获取所述热点请求的热点页面位置,从所述热点页面位置中提取出所述热点请求对应的热点页面层级;判断所述热点页面位置是否处于所述热点页面层级对应的当前页面的预设显眼区域;若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域。
- 如权利要求15所述的存储介质,其特征在于,所述若不是,则将所述热点页面位置调整至所述当前页面的所述预设显眼区域的步骤之后包括:从第一排序列表和第二排序列表中分别获取一个热点请求,所述请求排序列表包括所述第一排序列表和所述第二排序列表;将获取的两个热点请求对应的点击量进行比较,将点击量较大的热点请求作为第一请求,点击量较小的热点请求作为第二请求;获取所述第一请求的第一页面层级和所述第二请求的第二页面层级,所述热点页面层级包括所述第一页面层级和所述第二页面层级;判断所述第一页面层级是否高于所述第二页面层级;若是,则将所述第一页面层级与所述第二页面层级进行互换。
- 如权利要求14所述的存储介质,其特征在于,所述获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域的步骤之后包括:根据所述统一资源定位符信息计算各用户请求所占用的网络资源;根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整。
- 如权利要求18所述的存储介质,其特征在于,所述根据所述网络资源确定网络瓶颈请求,对所述网络瓶颈请求进行调整的步骤包括:将所述网络资源从大到小进行排序,获得资源占用列表;将所述资源占用列表中排在前面的第二预设数量的所述网络资源对应的用户请求认定为网络瓶颈请求;对所述网络瓶颈请求进行调整。
- 一种基于日志的资源调整装置,其特征在于,所述基于日志的资源调整装置包括:提取模块,用于收集统计服务器产生的访问日志,从所述访问日志中提取出多个用户请求的统一资源定位符信息;排序模块,用于根据所述统一资源定位符信息计算各用户请求的点击量,将各用户请求按照所述点击量从大到小进行排序,获得请求排序列表;认定模块,用于将所述请求排序列表中排在前面的第一预设数量的用户请求认定为热点请求;调整模块,用于获取所述热点请求的热点页面位置,将所述热点页面位置调整至当前页面的预设显眼区域。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810952260.7 | 2018-08-21 | ||
| CN201810952260.7A CN109688184B (zh) | 2018-08-21 | 2018-08-21 | 基于日志的资源调整方法、设备、存储介质及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020037909A1 true WO2020037909A1 (zh) | 2020-02-27 |
Family
ID=66184434
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/122803 Ceased WO2020037909A1 (zh) | 2018-08-21 | 2018-12-21 | 基于日志的资源调整方法、设备、存储介质及装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109688184B (zh) |
| WO (1) | WO2020037909A1 (zh) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112346352A (zh) * | 2020-11-20 | 2021-02-09 | 深圳Tcl新技术有限公司 | 终端设备的控制提示方法、装置及计算机可读存储介质 |
| CN112650752A (zh) * | 2020-12-22 | 2021-04-13 | 深圳壹账通智能科技有限公司 | 热点key的确定方法、装置、设备及存储介质 |
| CN112966199A (zh) * | 2021-03-03 | 2021-06-15 | 北京百度网讯科技有限公司 | 一种页面调整收益的确定方法、装置、电子设备和介质 |
| CN113763037A (zh) * | 2021-08-23 | 2021-12-07 | 南京苏宁软件技术有限公司 | 数据处理方法、装置、计算机设备和存储介质 |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112019451B (zh) * | 2019-05-29 | 2023-11-21 | 中国移动通信集团安徽有限公司 | 带宽分配方法、调试网元、本地缓存服务器及计算设备 |
| CN112416875B (zh) * | 2020-11-24 | 2024-04-09 | 平安消费金融有限公司 | 日志管理方法、装置、计算机设备及存储介质 |
| CN112651839B (zh) * | 2021-01-07 | 2024-07-16 | 中国农业银行股份有限公司 | 一种产品优化方法及系统 |
| CN113987372B (zh) * | 2021-12-27 | 2022-03-18 | 昆仑智汇数据科技(北京)有限公司 | 一种领域业务对象模型的热点数据获取方法、装置及设备 |
| CN114817818B (zh) * | 2022-05-27 | 2025-07-25 | 绿盟科技集团股份有限公司 | 站点页面分级的方法、装置、设备及存储介质 |
Citations (4)
| 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 (zh) * | 2016-03-04 | 2016-07-06 | 百度在线网络技术(北京)有限公司 | 一种挖掘热点概念之间关联关系的方法和装置 |
| CN106339447A (zh) * | 2016-08-23 | 2017-01-18 | 达而观信息科技(上海)有限公司 | 一种自动预测热点视频的系统及方法 |
| CN106919669A (zh) * | 2017-02-20 | 2017-07-04 | 浙江大学 | 一种对网页信息展示位置进行排序的方法 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013134854A1 (en) * | 2012-03-13 | 2013-09-19 | Cognilore Inc. | Method of navigating through digital content |
| CN102984234B (zh) * | 2012-11-19 | 2016-06-01 | 北京奇虎科技有限公司 | 一种通信系统和网络内容的访问控制方法 |
| CN103473282B (zh) * | 2013-08-29 | 2016-10-05 | 北京奇虎科技有限公司 | 一种生成热点内容页面的装置和方法 |
| CN105630871B (zh) * | 2015-12-16 | 2017-09-22 | 广州神马移动信息科技有限公司 | 搜索结果显示方法、装置及搜索系统 |
| CN105704246A (zh) * | 2016-04-12 | 2016-06-22 | 上海斐讯数据通信技术有限公司 | 一种基于sdn架构的网络分流装置和方法 |
| CN107729097B (zh) * | 2017-09-20 | 2021-06-04 | 五八有限公司 | 展示页面配置方法及相应设备 |
-
2018
- 2018-08-21 CN CN201810952260.7A patent/CN109688184B/zh active Active
- 2018-12-21 WO PCT/CN2018/122803 patent/WO2020037909A1/zh not_active Ceased
Patent Citations (4)
| 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 (zh) * | 2016-03-04 | 2016-07-06 | 百度在线网络技术(北京)有限公司 | 一种挖掘热点概念之间关联关系的方法和装置 |
| CN106339447A (zh) * | 2016-08-23 | 2017-01-18 | 达而观信息科技(上海)有限公司 | 一种自动预测热点视频的系统及方法 |
| CN106919669A (zh) * | 2017-02-20 | 2017-07-04 | 浙江大学 | 一种对网页信息展示位置进行排序的方法 |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112346352A (zh) * | 2020-11-20 | 2021-02-09 | 深圳Tcl新技术有限公司 | 终端设备的控制提示方法、装置及计算机可读存储介质 |
| CN112650752A (zh) * | 2020-12-22 | 2021-04-13 | 深圳壹账通智能科技有限公司 | 热点key的确定方法、装置、设备及存储介质 |
| CN112966199A (zh) * | 2021-03-03 | 2021-06-15 | 北京百度网讯科技有限公司 | 一种页面调整收益的确定方法、装置、电子设备和介质 |
| CN112966199B (zh) * | 2021-03-03 | 2023-08-04 | 北京百度网讯科技有限公司 | 一种页面调整收益的确定方法、装置、电子设备和介质 |
| CN113763037A (zh) * | 2021-08-23 | 2021-12-07 | 南京苏宁软件技术有限公司 | 数据处理方法、装置、计算机设备和存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109688184B (zh) | 2021-09-21 |
| CN109688184A (zh) | 2019-04-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020037909A1 (zh) | 基于日志的资源调整方法、设备、存储介质及装置 | |
| WO2020233077A1 (zh) | 系统服务的监控方法、装置、设备及存储介质 | |
| CN102446222B (zh) | 一种网页内容预加载方法、装置及系统 | |
| WO2018113241A1 (zh) | 页面展示方法、装置、服务器和存储介质 | |
| US9767082B2 (en) | Method and system of retrieving ajax web page content | |
| WO2016208916A1 (en) | Method and system for context based tab management | |
| CN102932206B (zh) | 监测网站访问信息的方法和系统 | |
| CN102932207B (zh) | 监测网站访问信息的方法及服务器 | |
| WO2020233057A1 (zh) | 文件打包方法、装置、设备及存储介质 | |
| CN104750471A (zh) | 一种基于浏览器的web页面性能检测与采集分析插件以及方法 | |
| CN102663049B (zh) | 一种更新搜索引擎网址库方法及装置 | |
| CN106528659B (zh) | 浏览器跳转至应用程序的控制方法及装置 | |
| US20110320414A1 (en) | Method, system and computer-readable storage medium for detecting trap of web-based perpetual calendar and building retrieval database using the same | |
| CN101606371A (zh) | 内容发布管理装置、通信终端、程序以及内容发布系统 | |
| CN106656666A (zh) | 一种获取网页首屏时间的方法及装置 | |
| CN107241372A (zh) | 配置信息生成、发送方法及资源加载方法和装置及系统 | |
| WO2020111662A1 (ko) | 북마크관리 및 정보검색 서비스 제공시스템 및 이를 이용한 북마크관리 및 정보검색 서비스 제공방법 | |
| WO2017074066A1 (ko) | 인터넷 콘텐츠 제공 서버 및 그 방법이 구현된 컴퓨터로 판독 가능한 기록매체 | |
| WO2020062655A1 (zh) | 爬虫识别方法、装置、设备及非易失性可读存储介质 | |
| WO2015068929A1 (ko) | 컨텐츠 중심 네트워크에서 패킷 특성을 고려하는 노드의 동작 방법 및 노드 | |
| WO2021003922A1 (zh) | 页面信息录入优化方法、设备、存储介质及装置 | |
| CN107526748A (zh) | 一种识别用户点击行为的方法和设备 | |
| CN100419758C (zh) | 一种嵌入式浏览装置及方法 | |
| US20160020970A1 (en) | Router and information-collection method thereof | |
| JP2000227886A (ja) | 情報源観測装置および情報源観測方法ならびに情報源観測処理を実行させるプログラムを記録した記録媒体 |
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 |