The present invention relates to the field of website management, and in particular, to automatically controlling website content based upon the website workload.
The growth of internet e-commerce has allowed businesses to offer goods and services to their customers on-line. Customers can now connect via the internet to websites which provide a wide array or e-commerce applications with the expectation of availability and reliability.
The operation of websites requires various computer systems such as web servers, application servers and database servers that provide services or features such as creating and displaying web content, processing database queries, providing interactive application and processing e-commerce transactions. Traditionally, the design and provisioning of these servers is determined by the expected workload of the servers during peak user traffic to ensure availability of the website.
However, a website may receive customer traffic above and beyond the provisioned capacity when there is unexpected demand or interest in the website. Under these circumstances the website operator has to react to the workload increase manually by reducing features or services available on the website or by adding hardware to increase the processing capability. Peaks in traffic can be unexpected resulting in reduced or no service for customers and users accessing the site. This usually results in the loss of traffic, which can impact the revenue generated by the website, particularly for e-commerce based applications.
According to a first aspect of the present invention, a system for providing automatic website workload management for a website comprising at least one server comprises at least one web object containing management tags for providing user interactive functionality through a website; at least one reporting module for collecting performance criteria of the at least one server associated with the website; a listener module for receiving the collected performance criteria; and a rules module for managing rules defining thresholds for selectively enabling and otherwise disabling the one or more web objects of the website based on the received performance criteria from the listener module to manage workload on the website.
According to another aspect of the present invention, a method for providing automatic website workload management for a website comprising at least one server comprises providing at least one user interactive web objects of a website with website management tags; obtaining performance criteria from the at least one server associated with the website; defining thresholds for each of the performance criteria; and selectively enabling and otherwise disabling the at least one web object as determined by the performance criteria based upon the defined thresholds to manage workload on the website.
According to yet another aspect of the present invention, a computer program product for providing automatic website workload management for a website comprising at least one server comprises a computer usable medium having computer useable program code embodied therein. The computer useable program code comprises computer usable program code configured to create at least one web object containing management tags and to provide user interactive functionality through a website; computer usable program code configured to create at least one reporting module for collecting performance criteria of at least one server associated with the website; computer usable program code configured to create a listener module for receiving the collected performance criteria; and computer usable program code configured to create a rules module for managing rules defining thresholds for selectively enabling and otherwise disabling the at least one one web object of the website based on received performance criteria from the listener module to manage workload on the website.
Other aspects and features of the present invention will become apparent to those ordinarily skilled in the art or science to which it pertains upon review of the following description in conjunction with the accompanying figures.
As will be appreciated by one of skill in the art, the present invention may be embodied as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects all generally referred to herein as a “circuit” or “module.” Furthermore, the present invention may take the form of a computer program product on a computer-usable storage medium having computer-usable program code embodied in the medium.
Any suitable computer readable medium may be utilized. The computer-usable or computer-readable medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples (a nonexhaustive list) of the computer-usable or computer-readable medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a transmission media such as those supporting the Internet or an intranet, or a magnetic storage device. Note that the computer-usable or computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
Computer program code for carrying out operations of the present invention may be written in an object oriented programming language such as Java7, Smalltalk or C++. However, the computer program code for carrying out operations of the present invention may also be written in conventional procedural programming languages, such as the “C” programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer. In the latter scenario, the remote computer may be connected to the user's computer through a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
The present invention is described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
An automatic site workload management (ASWM) system allows for website capacity to be controlled by enabling continued operation of the website for processing user requests and facilitating continued revenue generation. This is facilitated by reducing the website functionality of less critical services, thereby allowing more computing resources to be available to provide more critical services. Features available to the user of a website can be dynamically reduced or disabled depending on the current workload of the website to reduce the workload exerted on the servers (140,150 and 160) of the website.
Referring to
Memory 320 may comprise, for example, random access memory (RAM) or read only memory (ROM). Non-volatile storage of, for example, data files and programs is provided by storage 390 that may comprise, for example, disk storage. Both memory 320 and storage 390 comprise a computer useable medium that may store computer program products in the form of computer usable or readable program code.
The ASWM web objects 360 are identified by identifiers within the coding for each object. In an exemplary embodiment of JavaServer™ Pages (JSP) code, a tag of the form <aswm:if Enabled feature=“search”>. . . </aswm:ifEnabled> is utilized to define the object that is controllable by the ASWM system. In the example provided, the name “search” is used to uniquely identify a piece of code that can be disabled.
User input and output is provided by an input/output (I/O) facility 380. The I/O facility 380 may include, for example, a graphical display, a mouse and/or a keyboard. An example of a feature on a website such as a search function in a Java JSP fragment showing the ASWM identifiers is shown below.
In an exemplary embodiment such as an e-commerce implementation, an IBM® WebSphere® Application Server performance monitor interface infrastructure may be utilized in connection with the ASWM reporting module 330 to provide the ASWM listener module 340 with information (IBM and WebSphere are trademarks of International Business Machines, Inc. in the United State, other countries, or both). A separate process typically runs the ASWM listener module 340 to ensure data collection is completely asynchronous with ASWM rule module 350 execution. In an exemplary embodiment, the ASWM listener module 340 is configurable to define a mapping between a component defined in ASWM rules module 350 and an actual counter in WebSphere Application Server performance monitor interface counter in addition to the data retrieving interval.
ASWM rules module 350 defines a set of rules to determine whether a particular ASWM object (220, 230, 240, 250 and 260) should be enabled or disabled. The rules of the ASWM rules module 350 may be populated by a configuration file. The rules may define a “percentage criteria” in addition to a “duration before implementing” the rule as well as a “duration before re-enabling a service or feature”. Multiple rules may be defined for specific servers or multiple servers. In the exemplary xml file, it is defined that if the CPU or I/O utilization is more than a threshold of 80 percent, then the web object defining the search service is not enabled. In the exemplary XML sample provided below, the threshold is determined based on the weighted CPU utilization of 3 nodes, the web server 140, the database server 150 and the application server 160.
When a defined criterion is met, the objects defined within the ASWM identified web objects 360 are disabled or removed from the requested webpage 200 displayed to the user. In the above example the search feature is disabled to reduce the workload that the operation of the feature would place on the database server. The defined rules are based on how critical each feature (and the related web object) is and the benefit provided to the overall workload by disabling the feature. The rules may also be defined based on the type of user accessing the site to differentiate features available to different types of user. For example, only registered users would have access to search features during periods of high demand while non-registered users would not have access to the feature. An identifier to classify users accessing the website may be utilized to identify specific users or definable groups. This allows services or features to be disabled or access restricted commencing with the least critical services until the site is running at a predetermined workload level.
Once the workload on the servers decreases, the system, through updated information reflecting the system changes obtained by ASWM listener module 340 from ASWM reporting module 330, in communication with ASWM rule module 350 causing execution of appropriate rules, can automatically enable services and or allow users access to the services. Depending on the web object and its associated feature or service, unique criteria can also be defined for disabling specific features based on the feature's impact on each server (140, 150 and 160). For example, if the database server 160 CPU utilization is high, the search feature may be disabled, however if the application server 150 CPU usage is high, specific e-commerce functions which utilized significant resources may be disabled. The rules can be defined based on the requirements of the particular web object relative to the web site infrastructure.
It will be apparent to one skilled in the art that numerous modifications and departures from the specific embodiments described herein may be made without departing from the spirit and scope of the present invention. The data collection performed by the ASWM listener module 340 may be performed on the same system as the other components of the ASWM system or may be located on other systems as required. The ASWM listener module 340 may be implemented by any of the techniques known in the art including, but not limited to, utilities that perform a probe function taking samples or logging by way of taking continuous samples or snapshots as necessary to fulfill the data representation requirements. ASWM reporting module 330 may be implemented in similar fashion of ASWM listener module 340 to provide server specific monitoring capabilities to gather the required performance information.
ASWM listener module 340 may run in a continuous manner waiting for information from ASWM report module 330 or it may run intermittently as the case may be to provide the level of notification of system change as desired by a particular installation.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.