Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15102

Implement monitoring of various pyignite's events

    XMLWordPrintableJSON

Details

    • Hide
      * Implemented event listeners to connection events and query events
      * Fixed request to failed node when querying replicated cache
      * Fixed excessive partition mapping requests
      Show
      * Implemented event listeners to connection events and query events * Fixed request to failed node when querying replicated cache * Fixed excessive partition mapping requests
    • Docs Required, Release Notes Required

    Description

      I suggest to add monitoring capabilities to pyignite similar to pymongo's

      Suggested api:

      from pyignite.monitoring import OpEventListener, ConnectionEventListener, TopologyEventListener
      from pyignite import Client
      
      client = Client(event_listeners=[OpEventListener, ConnectionEventListener, TopologyEventListener])
      with client.connect(...):
           ......
      

      I suggests to add listeners to:

      1. Connection events connect or disconnect to specific ignite server, connection errors
      2. Topology events when partition awareness is enabled, log new topology versions
      3. Operations events start,success or failure with request_id, server (address, port and uuid), operation_id, error string if presents

      This approach can implement custom metrics, tracing and other useful client-side stuff in order to make client more observable

      Attachments

        Issue Links

          Activity

            People

              ivandasch Ivan Daschinsky
              ivandasch Ivan Daschinsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m