The present disclosure relates in general to data logging, and in particular to the logging of data pertaining to the operation of a data stream processing server.
Traditional database management systems (DBMSs) execute queries in a “request-response” fashion over finite, stored data sets. For example, a traditional DBMS can receive a request to execute a query from a client, execute the query against a stored database, and return a result set to the client.
In recent years, data stream management systems (DSMSs) have been developed that can execute queries in a continuous manner over potentially unbounded, real-time data streams. For example, a typical DSMS can receive one or more data streams, register a query against the data streams, and continuously execute the query as new data appears in the streams. Since this type of query (referred to herein as a “continuous query”) is long-running, the DSMS can provide a continuous stream of updated results to a client. DSMSs are particularly suited for applications that require real-time or near real-time processing of streaming data, such as financial ticker analysis, physical probe/sensor monitoring, network traffic management, and the like.
Many DSMSs include a server application (referred to herein as a “data stream processing server”) that is configured to perform the core tasks of receiving data streams and performing various operations (e.g., executing continuous queries) on the streams. It would be desirable to have a framework for logging data pertaining to the operation of such a data stream processing server to facilitate performance tuning, debugging, and other functions.
Embodiments of the present invention provide techniques for logging data pertaining to the operation of a data stream processing server. In one set of embodiments, logging configuration information can be received specifying a functional area of a data stream processing server to be logged. Based on the logging configuration information, logging can be dynamically enabled for objects associated with the functional area that are instantiated by the data stream processing server, and logging can be dynamically disabled for objects associated with the functional area that are discarded (or no longer used) by the data stream processing server. By dynamically enabling and disabling logging for specific objects in this manner, data regarding the operation of the data stream processing server can be logged without significantly affecting the server's runtime performance. In another set of embodiments, a tool can be provided for visualizing the data logged by the data stream processing server.
According to one embodiment of the present invention, a method for facilitating logging in a data stream processing server is provided. The method comprises receiving, at a computer system, logging configuration information specifying a functional area of a data stream processing server to be logged, and identifying, by the computer system, an object associated with the functional area that has been instantiated by the data stream processing server. The method further comprises enabling, by the computer system, logging for the object, and determining, by the computer system, if the object is no longer used by the data stream processing server. If the object is no longer used, logging is disabled by the computer system for the object.
In one embodiment, enabling logging for the object comprises storing the logging configuration information for the object and generating one or more log records for the object based on the logging configuration information stored for the object.
In one embodiment, disabling logging for the object comprises deleting the logging configuration information stored for the object.
In one embodiment, the logging configuration information includes a first parameter identifying an event upon which to generate a log record and a second parameter identifying a level of detail for the log record. In this embodiment, generating one or more log records for the object comprises, upon occurrence of a predefined event related to the object, retrieving the logging configuration information stored for the object and determining if the predefined event corresponds to the event identified by first parameter. If the predefined event corresponds to the event identified by the first parameter, a log record is generated for the object, where the generated log record has the level of detail identified by the second parameter.
In one embodiment, the functional area to be logged corresponds to a type of query plan object. In this embodiment, identifying an object associated with the functional area comprises traversing a query plan generated for a continuous query, where the query plan includes a plurality of query plan objects, and identifying a query plan object in the plurality of query plan objects having the type. Further, determining if the object is no longer used comprises determining if the continuous query is dropped.
In one embodiment, the plurality of query plan objects include an operator object and one or more data structure objects associated with the operator object. In a further embodiment, if logging is enabled for the operator object, logging is automatically enabled for the one or more data structure objects associated with the operator object.
In one embodiment, the method above further comprises identifying another object associated with the functional area, where the another object was instantiated by the data stream processing server subsequently to receiving the logging configuration information, and enabling logging for the another object.
In one embodiment, the logging configuration information is received from a user and is expressed as a Continuous Query Language (CQL) statement. In another embodiment, the logging configuration information is received via an invocation of a Java Management Extensions (JMX) Applications Programming Interface (API).
According to another embodiment of the present invention, a machine-readable storage medium having stored thereon program code executable by a computer system is provided. The program code includes code that causes the computer system to receive logging configuration information specifying a functional area of a data stream processing server to be logged, and code that causes the computer system to identify an object associated with the functional area that has been instantiated by the data stream processing server. The program code further comprises code that causes the computer system to enable logging for the object, code that causes the computer system to determine if the object is no longer used by the data stream processing server, and code that causes the computer system to, if the object is no longer used, disable logging for the object.
According to another embodiment of the present invention, a logging system is provided. The logging system comprises a processing component configured to receive logging configuration information specifying a functional area of a data stream processing server to be logged and to identify an object associated with the functional area that has been instantiated by the data stream processing server. The processing component is further configured to enable logging for the object and to determine if the object is no longer used by the data stream processing server. If the object is no longer used, the processing component is configured to disable logging for the object.
According to another embodiment of the present invention, a method for visualizing log records is provided. The method comprises receiving, at a computer system, a file comprising log records generated by a data stream processing server, where the log records include information pertaining to a query plan and a sequence of one or more events executed by the data stream processing server in accordance with the query plan. The method further comprises generating, by the computer system, a graphical representation of the query plan based on the log records, and displaying, by the computer system, the graphical representation.
In one embodiment, the graphical representation of the query plan comprises one or more nodes, where each node represents an query plan object in the query plan. Examples of query plan objects include operators, queues, stores, indexes, synopses, etc.
In one embodiment, the method above further comprises, in response to a user input, displaying data information for a node.
In one embodiment, the method above further comprises, in response to a first user input, visually portraying execution of the one or more events in sequence by animating the graphical representation, where visually portraying execution of the one or more events in sequence comprises visually portraying execution of the one or more events in real-time based on timestamps associated with the one or more events. In a further embodiment, the method above further comprises, in response to a second user input, pausing the animation.
In one embodiment, the method above further comprises, if the log records indicate that an error occurred during execution of an event in the one or more events, displaying a representation of the error in the graphical representation.
In one embodiment, the method above further comprises providing the one or more events as one or more data streams to another data stream processing server and receiving a continuous query to be executed against the one or more data streams. The continuous query can then be executed by the another data stream processing server while the graphical representation is being animated.
In one embodiment, the method above further comprises, if a result for the continuous query is received from the another data stream processing server, pausing the animation. In another embodiment, the method above further comprises, if a result for the continuous query is received from the another data stream processing server, displaying an alert.
According to another embodiment of the present invention, a machine-readable storage medium having stored thereon program code executable by a computer system is provided. The program code includes code that causes the computer system to receive a file comprising log records generated by a data stream processing server, where the log records include information pertaining to a query plan and a sequence of events executed by the data stream processing server in accordance with the query plan. The program code further comprises code that causes the computer system to generate a graphical representation of the query plan based on the log records and code that causes the computer system to display the graphical representation.
According to another embodiment of the present invention, a log visualization system is provided. The log visualization system comprises a storage component configured to store a file comprising log records generated by a data stream processing server, where the log records include information pertaining to a query plan and a sequence of events executed by the data stream processing server in accordance with the query plan. The log visualization system further comprises a processing component in communication with the storage component, where the processing component is configured to generate a graphical representation of the query plan based on the log records and display the graphical representation.
A further understanding of the nature and advantages of the embodiments disclosed herein can be realized by reference to the remaining portions of the specification and the attached drawings.
In the following description, for the purposes of explanation, numerous details are set forth in order to provide an understanding of various embodiments of the present invention. It will be apparent, however, to one skilled in the art that certain embodiments can be practiced without some of these details.
Embodiments of the present invention provide techniques for logging data pertaining to the operation of a data stream processing server. In one set of embodiments, logging configuration information can be received specifying a functional area of a data stream processing server to be logged. Based on the logging configuration information, logging can be dynamically enabled for objects associated with the functional area that are instantiated by the data stream processing server, and logging can be dynamically disabled for objects associated with the functional area that are discarded (or no longer used) by the data stream processing server. By dynamically enabling and disabling logging for specific objects in this manner, data regarding the operation of the data stream processing server can be logged without significantly affecting the server's runtime performance.
In certain embodiments, the functional area specified in the logging configuration information can correspond to a type of query plan object, where a query plan object is a component of a query plan, and where a query plan is a data structure used by the data stream processing server to execute a continuous query. Examples of query plan object types include “operator,” “queue,” “store,” “synopsis,” “index,” and the like. In these embodiments, logging can be dynamically enabled or disabled for query plan objects having the specified type based on query plan changes in the data stream processing server. For instance, in one set of embodiments, logging can be dynamically enabled for query plan objects having the specified type that are instantiated upon generation of a new query plan. In another set of embodiments, logging can be dynamically disabled for query plan objects having the specified type that are discarded upon the deletion of an existing query plan.
In one set of embodiments, a tool can be provided for visualizing log records that are generated for query plan objects according to the techniques noted above. For example, the tool can receive log records containing data regarding one or more events executed by the query plan objects in accordance with a query plan. The tool can then generate a visual representation of the query plan and animate, in real-time, the visual representation to illustrate the execution of the events. Such a tool can be useful for administrators, developers, and other users in understanding and analyzing the log records.
In one set of embodiments, server 102 can log data pertaining to its runtime operation. For example, in particular embodiments, server 102 can log data pertaining to query plan objects that are used by the server to execute continuous queries. This logged information can then be used by, e.g., an administrator or other user of server 102 to debug errors or analyze performance problems that may haven arisen during query execution. This logging capability is described in greater detail below.
In various embodiments, query manager 112 can receive continuous queries from, e g., a client application or a user and generate query plans for executing the queries. As described above, a continuous query is a query that can be run in a continuous or persistent fashion against one or more data streams. A query plan is a data structure comprising one or more objects (referred to herein as “query plan objects”) that can be used by server 102 to execute a continuous query. In some embodiments, query manager 112 can generate a separate query plan for each received query. In other embodiments, query manager 112 can maintain a single, global query plan for multiple queries.
By way of example,
In one set of embodiments, each query plan object can have a particular type that indicates its functional role within the plan. For example, query plan objects 202-212 are “operator” objects that are configured to carry out specific operations, or steps, in the overall execution of the continuous query. Query plan 200 can also include various other types of query plan objects such as “store” objects 214-218, “queue” objects 220-228, and “synopsis” objects 230-238. Generally speaking, store, queue, and synopsis objects are data structure objects that can be associated with one or more operator objects and can be used to maintain an operator object's state and/or manage data flow into (or out of) an operator object. For instance, in the embodiment of
Once a query plan (such as plan 200) has been generated for a continuous query, query manager 112 (or another component of server 102) can execute the continuous query using the query plan. For example, with respect to query plan 200, query manager 112 can invoke the various query plan objects 202-238 according to the hierarchical ordering of plan 200 and thereby execute the associated query.
Returning to
For example, at runtime of server 102, the various software objects used by the server (e.g., log targets 118) can invoke log manager 114 upon the occurrence of certain predefined events. In response, log manager 114 can determine, based on the logging configuration information stored in log configuration database 120, whether logging has been enabled for those log targets. If log manager 114 determines that logging has been enabled for a particular log target 118, log manager 114 can instruct the log target to generate a log record and store the record in log record database 122.
In some embodiments, the functional area specified in the logging configuration information received by log manager 114 can correspond to a type of query plan object, such as “operator,” “queue” “store,” “synopsis,” and so on. In these embodiments, log manager 114 can interoperate with plan monitor 116 to identify query plan objects that have been instantiated by query manager 112 (via, e.g., the generation of query plans). Specifically, log manager can send the logging configuration information to plan monitor 116, which is configured to traverse the query plans generated by query manager 112 and identify query plan objects having the specified type. Plan monitor can then return IDs for the identified query plan objects to log manager 114, which can store the IDs with the logging configuration information in log configuration database 120. In this manner, logging can be enabled for these specific query plan objects.
At runtime of server 102, the query plan objects used by the server (e.g., for executing continuous queries) can invoke log manager 114 upon the occurrence of certain predefined events. In response, log manager 114 can determine, based on the logging configuration information stored in log configuration database 102, whether logging has been enabled for those query plan objects. If logging has been enabled for a particular query plan object, logging manager 114 can instruct the query plan object to generate a log record and store the record in log record database 122.
In one set of embodiments, plan monitor 116 can, upon receipt of the logging configuration information from log manager 114, keep track of “change management information” in change management database 124. As used herein, “change management information” refers to changes that should be made to the information stored in log configuration database 120 in the event that new query plan objects are instantiated (e.g., via the generation of new query plans) or existing query plan objects are discarded or rendered obsolete (e.g., via the deletion of existing query plans) by query manager 112.
For example, assume the logging configuration information specifies that logging should be enabled for all operator-type query plan objects, and assume that there are currently two operator objects (having IDs O1 and O2) instantiated in the server. In this case, the change management information can specify that the logging configuration information should be added to log configuration database 120 for any new operator objects subsequently instantiated by query manager 112. Further, the change management information can specify that the logging configuration information stored in log configuration database 120 for operator objects O1 and O2 should be deleted if either of these objects are discarded or rendered obsolete by query manager 112.
Once the change management information described above has been stored in change management database 124, plan monitor 116 can be automatically updated of any query plan changes by query manager 112. For example, query manager 112 can notify plan monitor 116 when a new query plan is generated, or when an existing query plan is discarded. Plan monitor 116 can then determine, based on the change management information stored in change management database 124, if any changes need to be applied to log configuration database 120. If changes need to be made (e.g., logging configuration information needs to be added or deleted for a specific query plan object), plan monitor 116 can instruct log manager 114 to apply those changes. In this manner, logging can be dynamically enabled and disabled for query plan objects in response to query plan changes.
It should be appreciated that
At blocks 302 and 304, query manager 112 can receive a continuous query and generate a query plan for the query. As described above, a query plan is a data structure comprising one or more objects (query plan objects) that can be used (by, e.g., server 102) to execute a continuous query. In certain embodiments, the processing of steps 302 and 304 can be repeated continuously as new queries are received.
Concurrently with blocks 302 and 304, log manager 114 can receive logging configuration information specifying a type of query plan object to be logged (block 306). In one set of embodiments, the logging configuration information can be received from a user of server 102 via, e.g., a user interface. In these embodiments, the logging configuration information can be expressed as a Continuous Query Language (CQL) statement. In other embodiments, the logging configuration information can be received from a client application or some other automated process via, e.g., an invocation of an Application Programming Interface (API) such as a Java Management Extensions (JMX) API.
In one set of embodiments, the logging configuration information received at block 306 can include at least three parameters: <AREA>, <EVENT>, and <LEVEL>, The <AREA> parameter can specify an identifier (ID) of a particular functional area of server 102 to be logged. For example, in the context of query plan objects, the <AREA> parameter can specify an ID of particular query plan object type to be logged, such as “operator,” “store,” “queue, “synopsis,” and the like. In some embodiments, the <AREA> parameter can also specify an ID of a “subtype,” where the subtype represents another level of granularity within the specified area. For example, if the specified area is “operator,” the <AREA> parameter can also include a subtype of “binjoin,” “timewindow,” or other subtypes of operator objects.
The <EVENT> parameter can specify an ID of an event, or operation, upon which logging should occur. In other words, the <EVENT> parameter can indicate when a log record should be generated for the specified area. In one set of embodiments, the permissible ID values for the <EVENT> parameter can vary based on the area specified via the <AREA> parameter. For example, if the specified area is “operator” (denoting the “operator” query plan object type), the permissible ID values for <EVENT> may be limited to those events that are typically carried out by operator objects, such as “begin execution” and “end execution.” As another example, if the specified area is “queue” (denoting the “queue” query plan object type), the permissible ID values for <EVENT> may be limited to those events that are typically carried out by queue objects, such as “enqueue” and “dequeue.”
The <LEVEL> parameter can specify an ID indicating the desired level of detail, or verbosity, of the generated log record. Like the <EVENT> parameter, the permissible ID values for the <LEVEL> parameter can vary based on the area specified via the <AREA> parameter. Further, the meaning of a particular level ID may be different based on the specified area. For example, a level ID of “1” may denote a certain level of detail for the “queue” object type and a different level of detail for the “operator” object type.
In some embodiments, if the area specified via the <AREA> corresponds to the operator object type, certain ID values for the <LEVEL> parameter can cause the generated log record to include information about data structure objects (e.g., stores, queues, synopses, etc.) associated with the operator object. In this manner, logging can be enabled for a plurality of related query plan objects via a single configuration command.
The following is a table of ID values for the <AREA>, <EVENT>, and <LEVEL> parameters that can be recognized by log manager 114 according to an embodiment of the present invention:
Once the logging configuration information is received per block 306, log manager 114 can determine, based on the <AREA> parameter in the received information, the functional area to be logged. For the purposes of process 300, it is assumed that the functional area corresponds to a type of query plan object, such as operator, queue, or the like. Log manager 114 can then send the logging configuration information to plan monitor 116 (block 308).
At block 310, plan monitor 116 can receive the logging configuration information and determine the query plan object type specified therein. Plan monitor can then traverse the query plans generated by query manager 112 and identify query plan objects in the query plans that have the specified type (blocks 314, 316). For example, if the logging configuration information specifies the “operator” object type, plan monitor 116 can identify all of the operator objects that have been instantiated by query manager 112 and are included one or more query plans.
Once plan monitor 116 has identified query plan objects per block 314, plan monitor 116 can return a list of IDs for the identified query plan objects to log manager 114 (blocks 316, 318). Log manager 114 can then store the object IDs along with the logging configuration information received at block 306 in a data store, such as log configuration database 120 of
In one set of embodiments, plan monitor can also store change management information in change management database 124 at block 322. As described above, this change management information can represent changes that should be made to the logging configuration information stored in log configuration database 120 (per block 320) in the event that new query plan objects are instantiated (e.g., via the generation of new query plans) or existing query plan objects are discarded or rendered obsolete (e.g., via the deletion of existing query plans) by query manager 112. Accordingly, this change management information can be used to dynamically enable or disable logging for query plan objects as query plan changes occur.
For instance, in one set of embodiments, plan monitor 116 can be automatically notified by query manager 112 when, e.g., a new query plan is generated, or when an existing query plan is discarded. Plan monitor 116 can then determine, based on the information stored in change management database 124, if any changes need to be made to the logging configuration information stored in log configuration database 120 to enable or disable logging for a particular query plan object. If a change need to be made (e.g., logging configuration information needs to be added or deleted for a specific object), plan monitor 116 can instruct log manager 114 to apply the change. This process is described in greater detail with respect to
It will be appreciated that process 300 is illustrative and that variations and modifications are possible. Steps described as sequential may be executed in parallel, order of steps may be varied, and steps may be modified, combined, added, or omitted. One of ordinary skill in the art would recognize many variations, modifications, and alternatives.
In some embodiments, the logging configuration information stored at block 320 of process 300 can be stored in a particular type of data structure, such as a multi-dimensional array. An example of such a multi-dimensional array 400 is illustrated in
Each value in array 402 can be a pointer to a second array 404 that is indexed by object ID. Each object ID index can correspond to a particular object instance (associated with the selected area) that can be logged by server 102.
Each value in array 404 can be a pointer to a third array 406 that is indexed by event ID. Each event ID index can correspond to a particular event that can be logged for the selected area and object.
Finally, each value in array 406 can be a pointer to a fourth array 408 that is indexed by level ID. Each level ID index can correspond to a particular level of detail for generating a log record for the selected area, object, and event. In one set of embodiments, the values in array 408 can be a binary values indicating whether logging is enabled or disabled for that particular combination of [area, object, event, level]. In alternative embodiments, the values in array 408 can be booleans, strings, or any other type of value that can indicate whether logging is enabled or disabled.
At block 502, log target 118 can invoke log manager 114 upon occurrence of a predetermined event and provide log manager 114 with information pertaining to the event and itself. In various embodiments, log target 118 can be preconfigured with code for invoking log manager 114 in this manner.
In some embodiments, the “predetermined event” that triggers invocation of log manager 114 can be different based on the object type of log target 118. For example, if log target 118 is an operator object, log target 118 can be preconfigured to invoke log manager 114 upon, e.g., the occurrence of “begin execution” and “end execution” events. As another example, if log target 118 is a queue object, log target 118 can be preconfigured to invoke log manager 114 upon, e.g., the occurrence of “enqueue” and “dequeue” events.
At block 504, log manager 114 can determine, from the information received from log target 118, the area ID and object ID for log target 118, as well as the event ID for the event that occurred at block 502. The area ID, object ID, and event ID can then be compared with the logging configuration information stored in log configuration database 120 to determine whether logging has been enabled for that particular combination of [area ID, object ID, event ID] (block 506). For example, if the logging configuration information is stored in the form of multi-dimensional array 400 of
If logging is not enabled for any levels corresponding to the [area ID, object ID, event ID] determined at block 504, process 500 can end (blocks 506, 508). On the other hand, if logging is enabled for one or more levels, log manager 114 can send the IDs for those levels to log target 118 (block 510). In response, log target 118 can generate a log record based on the specified levels and store the log record in log record database 122 (block 512).
It will be appreciated that process 500 is illustrative and not intended to limit embodiments of the present invention. Steps described as sequential may be executed in parallel, order of steps may be varied, and steps may be modified, combined, added, or omitted. One of ordinary skill in the art would recognize many variations, modifications, and alternatives.
Although not shown in
It will be appreciated that log record 600 is illustrative and not intended to limit embodiments of the present invention. For example, although log record 600 is shown as being expressed according to a particular structure and using particular naming conventions, log record 600 can also be expressed in many different ways. One of ordinary skill in the art would recognize many variations, modifications, and alternatives.
As described above, in certain embodiments logging can be dynamically enabled or disabled for query plan objects based on query plan changes in server 102.
At block 702, query manager 112 can detect a change that affects one or more query plans used by server 102. For example, query manager 112 can detect when a new query plan has been generated in response to a request to add a new continuous query. Alternatively, query manager 112 can detect when an existing query plan is discarded or obsoleted in response to a request to drop an existing continuous query. Upon detecting a query plan change, query manager 112 can send information regarding the change to plan monitor 116. For example, this query plan change information can include IDs of new query plan objects that have been instantiated (if, e.g., a query has been added), or IDs of query plan objects that have been discarded (if., e.g., an existing query has been dropped).
At block 704, plan monitor 116 can receive the query plan change information from query manager 112. Plan monitor 116 can then determine, based on the change management information stored in change management database 124, if any changes need to be made to the logging configuration information stored in log configuration database 120 (block 706).
For example, assume the change management information specifies that the logging configuration information stored in log configuration database 120 for two objects, O1 and O2, should be deleted if either of these objects are discarded or rendered obsolete by query manager 112. Further, assume that the query plan change information received at block 704 indicates that objects O1 and O2 have, in fact, been discarded. In this case, plan monitor can create a change list specifying deletion of the logging configuration information for these specific objects. In other situations, plan monitor can determine that logging configuration information should be added for certain objects to log configuration database 120, and can create a change list specifying the addition of such information accordingly.
If a change need to be made (e.g., logging configuration information needs to be added or deleted for a specific query plan object), plan monitor 116 can send a change list to log manager 114 (blocks 708, 710). Log manager 114 can then apply the changes to log configuration database 120 (block 712). Alternatively, plan monitor 116 can directly apply the changes to log configuration database 120. By modifying the stored logging configuration information in this manner, logging can be dynamically enabled or disabled for query plan objects as query plan changes occur.
It will be appreciated that process 700 is illustrative and not intended to limit embodiments of the present invention. Steps described as sequential may be executed in parallel, order of steps may be varied, and steps may be modified, combined, added, or omitted. One of ordinary skill in the art would recognize many variations, modifications, and alternatives.
In some situations, the logging techniques described above can create a voluminous amount of log data pertaining to the operation of server 102 that can be difficult to interpret and/or analyze. Accordingly, embodiments of the present invention can provide techniques for visualizing log records created by server 102. In certain embodiments, these visualization techniques allow an end user to graphical view a query plan that has been executed by server 102 and see the progression of operations/events that are performed by query plan objects within the query plan.
At block 802, a file can be received comprising log records generated by a data stream processing server, where the log records contain information pertaining to a query plan and a sequence of events executed by the server in accordance with the query plan. For example, the file can contain log records generated according to process 500 of
At block 804, a graphical representation of the query plan can be generated based on the log records and can be displayed to an end user. In one set of embodiments, the graphical representation can resemble a tree comprising a plurality of nodes, where each node corresponds to an object (e.g., operator, queue, store, etc.) in the query plan (such as the representation of plan 200 depicted in
At block 806, the graphical representation of the query plan can be animated, thereby depicting the occurrence of logged events over the course of the query's execution. For example, if the log records received at block 802 include an enqueue event and a subsequent dequeue event for a particular queue object, the occurrence of these events can be depicted and animated accordingly. In some embodiments, this animation can occur in real-time based on timestamps associated with the events in the log records. Thus, a user can understand and analyze, in a visual manner, the flow of events and data during query execution.
In certain embodiments, the animation described at block 806 can be initiated, stopped, paused, rewound, and/or fast-forwarded according to inputs received from a user. Further, if the animation is paused, the user can inspect data related each query plan object in the query plan. For example, in one embodiment the user can select a particular query plan object and view information about its state, its associated data structures, etc. at that point in the query execution.
In further embodiments, various alerts and or messages can be displayed to the user during the animation. For example, if the log records contain information about an error (such as the stack trace depicted in log record 600 of
It will be appreciated that process 800 is illustrative and not intended to limit embodiments of the present invention. Steps described as sequential may be executed in parallel, order of steps may be varied, and steps may be modified, combined, added, or omitted. One of ordinary skill in the art would recognize many variations, modifications, and alternatives.
In certain embodiments, the visualization application shown in
At block 1002, one or more events in the log file received at block 802 of process 800 can be provided to a data stream processing server. In one set of embodiments, the data stream processing server can be embedded into the visualization application performing the steps of process 1000. Alternatively, the data stream processing server can be running in a different address space or on a different machine.
At blocks 1004 and 1006, a continuous query can be to be executed against the data streams can be received, and the query can be provided to the data stream processing server for processing. Merely by way of example, once such query may relate to checking the growth of particular queue object. Another type of query may relate to correlating the size of an index to a size of a queue. Yet another type of query may relate to correlating the contents of an index to the contents of a queue. In one set of embodiments, the server can execute this query while the graphical representation of the query plan described in the log records is being animated (per block 806 of process 800).
At block 1008, a result set for the continuous query can be received from the data stream processing server. The result set can then be used to perform a specific action. For example, if the result set contains data satisfying a particular condition, the animation of the query plan can be halted, or an alert can be displayed. In this manner, the continuous query can act as a complex breakpoint condition (e.g., break playback if this condition satisfied). A user can then inspect the contents of various query plan objects to try and determine the cause of any problems that may have occurred during query execution.
It will be appreciated that process 1000 is illustrative and not intended to limit embodiments of the present invention. Steps described as sequential may be executed in parallel, order of steps may be varied, and steps may be modified, combined, added, or omitted. One of ordinary skill in the art would recognize many variations, modifications, and alternatives.
Client computing devices 1102, 1104, 1106, 1108 may be general purpose personal computers (including, for example, personal computers and/or laptop computers running various versions of Microsoft Windows and/or Apple Macintosh operating systems), cell phones or PDAs (running software such as Microsoft Windows Mobile and being Internet, e-mail, SMS, Blackberry, and/or other communication protocol enabled), and/or workstation computers running any of a variety of commercially-available UNIX or UNIX-like operating systems (including without limitation the variety of GNU/Linux operating systems). Alternatively, client computing devices 1102, 1104, 1106, 1108 may be any other electronic device capable of communicating over a network (e.g., network 1112 described below) with server computer 1110.
Server computer 1110 may be a general purpose computer, specialized server computer (including, e.g., a LINUX server, UNIX server, mid-range server, mainframe computer, rack-mounted server, etc.), server farm, server cluster, or any other appropriate arrangement and/or combination. Server computer 1110 may run an operating system including any of those discussed above, as well as any commercially available server operating system. Server computer 1110 may also run any of a variety of server applications and/or mid-tier applications, including web servers, Java virtual machines, application servers, database servers, and the like. As indicated above, in one set of embodiments, server computer 1110 is adapted to run one or more server and/or middle-tier components such as data stream processing server 102 of DSMS 100.
As shown, client computing devices 1102, 1104, 1106, 1108 and server computer 1110 are communicatively coupled via network 1112. Network 1112 may be any type of network that can support data communications using any of a variety of commercially-available protocols, including without limitation TCP/IP, SNA, IPX, AppleTalk, and the like. Merely by way of example, network 1112 may be a local area network (LAN), such as an Ethernet network, a Token-Ring network and/or the like; a wide-area network; a virtual network, including without limitation a virtual private network (VPN); the Internet; an intranet; an extranet; a public switched telephone network (PSTN); an infra-red network; a wireless network (e.g., a network operating under any of the IEEE 802.11 suite of protocols, the Bluetooth protocol known in the art, and/or any other wireless protocol); and/or any combination of these and/or other networks.
System environment 1100 may also include one or more databases 1114. In one set of embodiments, database 1114 can include any other database or data storage component discussed in the foregoing disclosure, such as log configuration database 102, log record database 122, and change management database 124 of
Computer system 1200 may additionally include a computer-readable storage media reader 1212, a communications subsystem 1214 (e.g., a modem, a network card (wireless or wired), an infra-red communication device, etc.), and working memory 1218, which may include RAM and ROM devices as described above. In some embodiments, computer system 1200 may also include a processing acceleration unit 1216, which can include a digital signal processor (DSP), a special-purpose processor, and/or the like.
Computer-readable storage media reader 1212 can further be connected to a computer-readable storage medium 1210, together (and, optionally, in combination with storage device(s) 1208) comprehensively representing remote, local, fixed, and/or removable storage devices plus storage media for temporarily and/or more permanently containing computer-readable information. Communications system 1214 may permit data to be exchanged with network 1112 of
Computer system 1200 may also comprise software elements, shown as being currently located within working memory 1218, including an operating system 1220 and/or other code 1222, such as an application program (which may be a client application, Web browser, mid-tier application, RDBMS, etc.). It should be appreciated that alternative embodiments of computer system 1200 may have numerous variations from that described above. For example, customized hardware might also be used and/or particular elements might be implemented in hardware, software (including portable software, such as applets), or both. Further, connection to other computing devices such as network input/output devices may be employed.
In one set of embodiments, the techniques described herein may be implemented as program code executable by a computer system (such as a computer system 1200) and may be stored on machine-readable storage media. Machine-readable storage media may can include any appropriate media known or used in the art, including storage media and communication media, such as (but not limited to) volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage and/or transmission of information such as machine-readable instructions, data structures, program modules, or other data, including RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store or transmit the desired information and which can be accessed by a computer.
Although specific embodiments of the present invention have been described, various modifications, alterations, alternative constructions, and equivalents are within the scope of the invention. For example, embodiments of the present invention are not restricted to operation within certain specific data processing environments, but are free to operate within a plurality of data processing environments. Additionally, although embodiments of the present invention have been described using a particular series of transactions and steps, it should be apparent to those skilled in the art that the scope of the present invention is not limited to the described series of transactions and steps.
Further, while embodiments of the present invention have been described using a particular combination of hardware and software, it should be recognized that other combinations of hardware and software are also within the scope of the present invention. Embodiments of the present invention may be implemented only in hardware, or only in software, or using combinations thereof.
The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. The scope of the invention should be determined not with reference to the above description, but instead should be determined with reference to the pending claims along with their full scope or equivalents.
The present application incorporates by reference for all purposes the entire contents of the following related application: U.S. patent application Ser. No. ______ (Attorney Docket No. 021756-055800US), entitled “LOGGING FRAMEWORK FOR A DATA STREAM PROCESSING SERVER,” filed concurrently with the present application.