)]}'
{"specs/newton/add-rpc-state-endpoint.rst":[{"author":{"_account_id":8770,"name":"Ken Giusti","email":"kgiusti@gmail.com","username":"kgiusti"},"change_message_id":"3c7605fb16eafd2f52be7ab52b68854180c634d2","unresolved":false,"context_lines":[{"line_number":44,"context_line":"          msg[\u0027runtime\u0027] \u003d stats.runtime"},{"line_number":45,"context_line":"          msg[\u0027average_runtime\u0027] \u003d stats.average_runtime"},{"line_number":46,"context_line":"          return msg"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Alternatives"},{"line_number":49,"context_line":"------------"},{"line_number":50,"context_line":"None"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9abb7d3a_84043318","line":47,"updated":"2016-05-31 19:45:18.000000000","message":"How would we prevent these methods from conflicting with server methods of the same name?\n\nMaybe we should reserve a well-known namespace for these - assuming we can safely pick one that does not collide with existing namespaces?","commit_id":"29a5b89b717c6e7cae85994c11695e80735cf03f"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":10,"context_line":"Sometime when RPC Servers in Openstack environment are stuck or fails,"},{"line_number":11,"context_line":"this fact may not detected timely and server can produce gigabytes"},{"line_number":12,"context_line":"of logs until e.g. it will not restarted manually. So, the problem is that"},{"line_number":13,"context_line":"currently we do\u0027t have the ability to check and respond to the state of"},{"line_number":14,"context_line":"RPC Servers."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_18cab2a1","line":13,"range":{"start_line":13,"start_character":15,"end_line":13,"end_character":16},"updated":"2016-06-03 14:22:00.000000000","message":"nit: don\u0027t","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"17b5530503c7994481bf10132f09903d6ef6d4dc","unresolved":false,"context_lines":[{"line_number":10,"context_line":"Sometime when RPC Servers in Openstack environment are stuck or fails,"},{"line_number":11,"context_line":"this fact may not detected timely and server can produce gigabytes"},{"line_number":12,"context_line":"of logs until e.g. it will not restarted manually. So, the problem is that"},{"line_number":13,"context_line":"currently we do\u0027t have the ability to check and respond to the state of"},{"line_number":14,"context_line":"RPC Servers."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dada55a8_2817a7a4","line":13,"range":{"start_line":13,"start_character":15,"end_line":13,"end_character":16},"in_reply_to":"9abb7d3a_18cab2a1","updated":"2016-07-18 14:38:57.000000000","message":"Done","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Proposed change"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This problem can solved by adding \"rpc state\" endpoint by default"},{"line_number":20,"context_line":"to any creating RPCServer. This endpoint will be responsible"},{"line_number":21,"context_line":"just for a echo reply with a timestamp::"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_bb39e0a5","line":19,"range":{"start_line":19,"start_character":16,"end_line":19,"end_character":17},"updated":"2016-06-03 14:22:00.000000000","message":"nit: can be solved","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"17b5530503c7994481bf10132f09903d6ef6d4dc","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Proposed change"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This problem can solved by adding \"rpc state\" endpoint by default"},{"line_number":20,"context_line":"to any creating RPCServer. This endpoint will be responsible"},{"line_number":21,"context_line":"just for a echo reply with a timestamp::"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dada55a8_880cd395","line":19,"range":{"start_line":19,"start_character":16,"end_line":19,"end_character":17},"in_reply_to":"9abb7d3a_bb39e0a5","updated":"2016-07-18 14:38:57.000000000","message":"Done","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":29,"context_line":"          self.server \u003d server"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"      def rpc_echo_reply(self, ctx, msg):"},{"line_number":32,"context_line":"          msg[\u0027ts\u0027] \u003d time.time()"},{"line_number":33,"context_line":"          return msg"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_18b0f2dc","line":32,"updated":"2016-06-03 14:22:00.000000000","message":"How do we handle the situation when time on different hosts diverge for about a second or more (which is really possible in spite of syncing on time)? When you calculate latency in such case you will get negative value for example.","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"a10a9c3b64875ed97857dc3ed497de164cb0a40b","unresolved":false,"context_lines":[{"line_number":29,"context_line":"          self.server \u003d server"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"      def rpc_echo_reply(self, ctx, msg):"},{"line_number":32,"context_line":"          msg[\u0027ts\u0027] \u003d time.time()"},{"line_number":33,"context_line":"          return msg"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_fd07d31a","line":32,"in_reply_to":"9abb7d3a_18b0f2dc","updated":"2016-06-03 16:18:43.000000000","message":"Agreed, I\u0027d prefer not to have \u0027time.time\u0027 here. Let\u0027s not give people the false belief that clocks will always be in sync like this.\n\nMaybe just respond with \u0027pong\u0027 or respond with something like what https://github.com/openstack/oslo.middleware/blob/master/oslo_middleware/healthcheck/__init__.py#L52 responds with (the json output of this for example).\n\nhttps://github.com/openstack/oslo.middleware/blob/master/oslo_middleware/healthcheck/__init__.py#L295","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"17b5530503c7994481bf10132f09903d6ef6d4dc","unresolved":false,"context_lines":[{"line_number":29,"context_line":"          self.server \u003d server"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"      def rpc_echo_reply(self, ctx, msg):"},{"line_number":32,"context_line":"          msg[\u0027ts\u0027] \u003d time.time()"},{"line_number":33,"context_line":"          return msg"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dada55a8_cb13655b","line":32,"in_reply_to":"9abb7d3a_18b0f2dc","updated":"2016-07-18 14:38:57.000000000","message":"yes, here is a problem and we need to use only one clock source.","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"17b5530503c7994481bf10132f09903d6ef6d4dc","unresolved":false,"context_lines":[{"line_number":29,"context_line":"          self.server \u003d server"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"      def rpc_echo_reply(self, ctx, msg):"},{"line_number":32,"context_line":"          msg[\u0027ts\u0027] \u003d time.time()"},{"line_number":33,"context_line":"          return msg"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dada55a8_4e2663bb","line":32,"in_reply_to":"9abb7d3a_fd07d31a","updated":"2016-07-18 14:38:57.000000000","message":"I add to reply message (pong) some payload like time of request (ping time), hostname, service and topic names, etc. It is helpful in cases, then rpc client uses fanout exchanges in order to get state of several RPC servers at a time.","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"On the client side we can poll specified topics of RPC Servers"},{"line_number":37,"context_line":"(neutron-l3-agent for example) and check a latency and availability"},{"line_number":38,"context_line":"of these rpc servers. If a problem is detected we can reload service"},{"line_number":39,"context_line":"or make notification for a system administrator."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_56c40b91","line":37,"range":{"start_line":37,"start_character":55,"end_line":37,"end_character":67},"updated":"2016-06-03 14:22:00.000000000","message":"About availability it looks like a heartbeat implemented in abstract o.m. layer (RPC client/server). The idea looks good to me, but we have to take into account (and check this in testing) the performance impact. So probably we need to do that in some longer interval or by request from client (not constantly)","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"On the client side we can poll specified topics of RPC Servers"},{"line_number":37,"context_line":"(neutron-l3-agent for example) and check a latency and availability"},{"line_number":38,"context_line":"of these rpc servers. If a problem is detected we can reload service"},{"line_number":39,"context_line":"or make notification for a system administrator."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_dbe82419","line":37,"range":{"start_line":37,"start_character":43,"end_line":37,"end_character":50},"updated":"2016-06-03 14:22:00.000000000","message":"Latency can be calculated more or less precisely when we get the timestamp on RPCClient and then after we received reply we get timestamp (all on the same host) and then we can calculate the message round-trip latency. I\u0027d emphasize it again that calculating something based on time.time() info from different hosts has extremely high measurement error and the result is unpredictable.","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"17b5530503c7994481bf10132f09903d6ef6d4dc","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"On the client side we can poll specified topics of RPC Servers"},{"line_number":37,"context_line":"(neutron-l3-agent for example) and check a latency and availability"},{"line_number":38,"context_line":"of these rpc servers. If a problem is detected we can reload service"},{"line_number":39,"context_line":"or make notification for a system administrator."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dada55a8_ebe2a99e","line":37,"range":{"start_line":37,"start_character":55,"end_line":37,"end_character":67},"in_reply_to":"9abb7d3a_56c40b91","updated":"2016-07-18 14:38:57.000000000","message":"I prefer to set polling time around 5-10 mins, but it\u0027s depends at cluster size, if you want to get state of all running rpc servers. At small cluster workload on rabbit is insignificant. For example neutron-server report self state every 6 seconds. So 5 mins delay is nothing.","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"a10a9c3b64875ed97857dc3ed497de164cb0a40b","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"On the client side we can poll specified topics of RPC Servers"},{"line_number":37,"context_line":"(neutron-l3-agent for example) and check a latency and availability"},{"line_number":38,"context_line":"of these rpc servers. If a problem is detected we can reload service"},{"line_number":39,"context_line":"or make notification for a system administrator."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_18b0e542","line":37,"range":{"start_line":37,"start_character":43,"end_line":37,"end_character":50},"in_reply_to":"9abb7d3a_dbe82419","updated":"2016-06-03 16:18:43.000000000","message":"+1 there has to be a better way that we can do this (something say using the inbuilt functionality of the RPC server itself; which should seem to exist outside of the zeromq kind of case).","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"17b5530503c7994481bf10132f09903d6ef6d4dc","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"On the client side we can poll specified topics of RPC Servers"},{"line_number":37,"context_line":"(neutron-l3-agent for example) and check a latency and availability"},{"line_number":38,"context_line":"of these rpc servers. If a problem is detected we can reload service"},{"line_number":39,"context_line":"or make notification for a system administrator."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dada55a8_2bc161e5","line":37,"range":{"start_line":37,"start_character":43,"end_line":37,"end_character":50},"in_reply_to":"9abb7d3a_dbe82419","updated":"2016-07-18 14:38:57.000000000","message":"Done","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":38,"context_line":"of these rpc servers. If a problem is detected we can reload service"},{"line_number":39,"context_line":"or make notification for a system administrator."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"It\u0027s not the only use-case. For example we can get information about"},{"line_number":42,"context_line":"executor\u0027s statistics if related method will be added to the endpoint ::"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"      def executor_stats(self, ctx, msg):"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_76bf8faa","line":41,"updated":"2016-06-03 14:22:00.000000000","message":"How are we going to access the information from endpoint state? Are we going to put it into client\u0027s logs? Probably we need to implement some client tool which should be running by operator in terminal and provide an interface to send requests to messaging servers?","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"17b5530503c7994481bf10132f09903d6ef6d4dc","unresolved":false,"context_lines":[{"line_number":38,"context_line":"of these rpc servers. If a problem is detected we can reload service"},{"line_number":39,"context_line":"or make notification for a system administrator."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"It\u0027s not the only use-case. For example we can get information about"},{"line_number":42,"context_line":"executor\u0027s statistics if related method will be added to the endpoint ::"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"      def executor_stats(self, ctx, msg):"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dada55a8_8e585bfc","line":41,"in_reply_to":"9abb7d3a_76bf8faa","updated":"2016-07-18 14:38:57.000000000","message":"I\u0027m describe this point in the last patch set.","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"a10a9c3b64875ed97857dc3ed497de164cb0a40b","unresolved":false,"context_lines":[{"line_number":60,"context_line":"RPCServer::"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"  class RPCServer(msg_server.MessageHandlingServer):"},{"line_number":63,"context_line":"      "},{"line_number":64,"context_line":"      def __init__(self, transport, target, dispatcher, executor\u003d\u0027blocking\u0027):"},{"line_number":65,"context_line":"          super(RPCServer, self).__init__(transport, dispatcher, executor)"},{"line_number":66,"context_line":"          self._target \u003d target"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_98e9751d","line":63,"updated":"2016-06-03 16:18:43.000000000","message":"nit: whitespace","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"17b5530503c7994481bf10132f09903d6ef6d4dc","unresolved":false,"context_lines":[{"line_number":60,"context_line":"RPCServer::"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"  class RPCServer(msg_server.MessageHandlingServer):"},{"line_number":63,"context_line":"      "},{"line_number":64,"context_line":"      def __init__(self, transport, target, dispatcher, executor\u003d\u0027blocking\u0027):"},{"line_number":65,"context_line":"          super(RPCServer, self).__init__(transport, dispatcher, executor)"},{"line_number":66,"context_line":"          self._target \u003d target"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dada55a8_aef6ffd4","line":63,"in_reply_to":"9abb7d3a_98e9751d","updated":"2016-07-18 14:38:57.000000000","message":"Done","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Performance Impact"},{"line_number":76,"context_line":"------------------"},{"line_number":77,"context_line":"None"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"Configuration Impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_b1d2a159","line":77,"updated":"2016-06-03 14:22:00.000000000","message":"IMO there will be performance impact (maybe not very hard) depending on how we implement the feature especially the access to the info (periodic updates or not) and how often the updates would take place. The impact also depends on number of nodes requesting the service.","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":77,"context_line":"None"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"Configuration Impact"},{"line_number":81,"context_line":"--------------------"},{"line_number":82,"context_line":"None"},{"line_number":83,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_31f4f1cd","line":80,"updated":"2016-06-03 14:22:00.000000000","message":"Are we going to make this feature mandatory? Probably someone prefer to check logs? :)","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":"Testing Impact"},{"line_number":91,"context_line":"--------------"},{"line_number":92,"context_line":"None"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Implementation"},{"line_number":95,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_11b44df0","line":92,"updated":"2016-06-03 14:22:00.000000000","message":"We probably will need to update some tests as far as we change the message format?","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":112,"context_line":"Work Items"},{"line_number":113,"context_line":"----------"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":" - Add a RPCStateEndpoint to oslo_messaging/rpc/server.py"},{"line_number":116,"context_line":" - Update a RPCServer constructor and add the endpoint to the dispatcher"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"Incubation"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_919f9d5e","line":115,"updated":"2016-06-03 14:22:00.000000000","message":"What about client side? Who will use the info from RPCState?","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":13290,"name":"Oleksii Zamiatin","email":"ozamiatin@mirantis.com","username":"ozamiatin"},"change_message_id":"d53b7a078c049c468b39704be9968a413922713c","unresolved":false,"context_lines":[{"line_number":125,"context_line":""},{"line_number":126,"context_line":"Library"},{"line_number":127,"context_line":"-------"},{"line_number":128,"context_line":"None"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"Anticipated API Stabilization"},{"line_number":131,"context_line":"-----------------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_f184290c","line":128,"range":{"start_line":128,"start_character":0,"end_line":128,"end_character":4},"updated":"2016-06-03 14:22:00.000000000","message":"oslo.messaging","commit_id":"eb1b8088f08b42678db35361311ac8a651d95a22"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2af5295f6ff1e455221aa17c13008c06a6d79860","unresolved":false,"context_lines":[{"line_number":25,"context_line":"information like hostname or service name (neutron-server, nova-conductor, etc)"},{"line_number":26,"context_line":"::"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"  class RPCStateEndpoint(object):"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"      # namespace is used in order to avoid a methods name conflicts"},{"line_number":31,"context_line":"      target \u003d Target(namespace\u003d\"oslo.messaging.rpc_state\")"}],"source_content_type":"text/x-rst","patch_set":6,"id":"dada55a8_19f317a0","line":28,"updated":"2016-07-18 14:57:20.000000000","message":"I like the idea of exporting oslo.messaging Server statistics.\n\nBut this solution have an issue for me it add \u0027Public API\u0027 to the lib that will be different depending of the driver that the deployer use.\n\nI think oslo.messaging should also provide the client side of this API, so the supported Public API will be the python client lib (like we do for RPC and Notification) and not the message on the wire and the wire protocol that depends on the selected driver.","commit_id":"6b913920fd05fa9cec0089ad24147a85060d920a"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"2f7bfc33ca7a0738e12eb5a766e30f8a69447753","unresolved":false,"context_lines":[{"line_number":25,"context_line":"information like hostname or service name (neutron-server, nova-conductor, etc)"},{"line_number":26,"context_line":"::"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"  class RPCStateEndpoint(object):"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"      # namespace is used in order to avoid a methods name conflicts"},{"line_number":31,"context_line":"      target \u003d Target(namespace\u003d\"oslo.messaging.rpc_state\")"}],"source_content_type":"text/x-rst","patch_set":6,"id":"dada55a8_0daea880","line":28,"in_reply_to":"dada55a8_19f317a0","updated":"2016-07-20 20:01:19.000000000","message":"I agree, but it will be oslo.messaging inside oslo.messaging, because if we really want monitoring state of all rpc servers, we can\u0027t invoke rpc.call for each host.topic.worker of the rpc servers, it is not optimal way. It\u0027s require custom rpc client for each driver. For example my current implementation of the client for rabbitmq bind all fanaout exchanges of rpc servers to the monitoring exchange \u0027rpc_state\u0027. So, in this case I\u0027m just push single rpc.call message to this exchange and it delivered to all avaliable rpc servers. Also we need mechanism of rpc servers discovering. Currently I use http api client for managment plugin of rabbitmq to get list of avaliable fanout exchanges. For zmq driver perhaps it will be redis client, depends on matchmaker impl. So, it\u0027s large codebase, and if we looking on oslo.messaging as thing like \u0027All-in-One\u0027, is okay, if not, we need move the client as separated oslo lib.","commit_id":"6b913920fd05fa9cec0089ad24147a85060d920a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2af5295f6ff1e455221aa17c13008c06a6d79860","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"RPC Monitoring Service"},{"line_number":114,"context_line":"``````````````````````"},{"line_number":115,"context_line":"The RPC State Endpoint just provide interface to rpc monitoring. Implementation of RPC Monitoring Service not part of this spec. But as example below provides screens of implementation based on InfluxDB and Grafana and running on MOS with 3 controllers and 1 compute."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":".. image:: http://i.imgur.com/DRhPvkT.png"},{"line_number":118,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"dada55a8_790e9335","line":115,"updated":"2016-07-18 14:57:20.000000000","message":"Does an opensource implementation of this interface will be provided ? \n\nLike emitting Ceilometer sample, Gnocchi measures or anything else OpenSource ? (Your example show InfluxDB where the opensource version is just a cutted/limited version of the non-opensource InfluxDB)\n\nOr will this be just a pluggable endpoint without Opensource sink ?","commit_id":"6b913920fd05fa9cec0089ad24147a85060d920a"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"2f7bfc33ca7a0738e12eb5a766e30f8a69447753","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"RPC Monitoring Service"},{"line_number":114,"context_line":"``````````````````````"},{"line_number":115,"context_line":"The RPC State Endpoint just provide interface to rpc monitoring. Implementation of RPC Monitoring Service not part of this spec. But as example below provides screens of implementation based on InfluxDB and Grafana and running on MOS with 3 controllers and 1 compute."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":".. image:: http://i.imgur.com/DRhPvkT.png"},{"line_number":118,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"dada55a8_887f26aa","line":115,"in_reply_to":"dada55a8_790e9335","updated":"2016-07-20 20:01:19.000000000","message":"OpenSource version of InfluxDB has limitation only in HA mode, we do not need this feature. We can use KairosDB as storage,  but it can have its own disadvantages, I need to talk with ceilometer team about this point. \n\nAll what must be do \u0027monitoring service\u0027 is just poll samples via api client and push them to the timeseries db, supported by grafana + event pushing to the db, if e.g. a rpc server stops responding. We can make abstraction like \u0027State Repository\u0027 with different implementation like InfluxDB, KairosDB, Ceilometer and etc.\n\nAlso if we make the client for the endpoint, ceilometer team can use it independently.","commit_id":"6b913920fd05fa9cec0089ad24147a85060d920a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2af5295f6ff1e455221aa17c13008c06a6d79860","unresolved":false,"context_lines":[{"line_number":124,"context_line":"Endpoint polling"},{"line_number":125,"context_line":"----------------"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"Polling depends on the used oslo.messaging driver: zmq, kombu or pika."},{"line_number":128,"context_line":"Here is several ways of state polling for default driver (kombu):"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"* Polling specified topics like dhcp_agent or l3_agent. RabbitMQ provides direct message routing"}],"source_content_type":"text/x-rst","patch_set":6,"id":"dada55a8_39f37b75","line":127,"updated":"2016-07-18 14:57:20.000000000","message":"We need something about each driver I think. You also have amqp1.0 to figure out.","commit_id":"6b913920fd05fa9cec0089ad24147a85060d920a"},{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"2f7bfc33ca7a0738e12eb5a766e30f8a69447753","unresolved":false,"context_lines":[{"line_number":124,"context_line":"Endpoint polling"},{"line_number":125,"context_line":"----------------"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"Polling depends on the used oslo.messaging driver: zmq, kombu or pika."},{"line_number":128,"context_line":"Here is several ways of state polling for default driver (kombu):"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"* Polling specified topics like dhcp_agent or l3_agent. RabbitMQ provides direct message routing"}],"source_content_type":"text/x-rst","patch_set":6,"id":"dada55a8_88560628","line":127,"in_reply_to":"dada55a8_39f37b75","updated":"2016-07-20 20:01:19.000000000","message":"Okay, I\u0027ll do it","commit_id":"6b913920fd05fa9cec0089ad24147a85060d920a"}]}
