)]}'
{"specs/newton/cross-region-search.rst":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"1ad22168a1ec4ea4e4f50ee72e6b1dbbccbce2d4","unresolved":false,"context_lines":[{"line_number":31,"context_line":"data across the regions (with master-master database replication, for"},{"line_number":32,"context_line":"instance). All other services are isolated from one another, but Keystone is"},{"line_number":33,"context_line":"able to provide the URLs for, say, the ``nova-api`` deployments in each"},{"line_number":34,"context_line":"region. Typically a Keystone token will only allow operations on the region"},{"line_number":35,"context_line":"for which it was granted."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"**Multiple clouds** provide total isolation. Horizon supports this (though"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_1bda52e8","line":34,"updated":"2016-04-06 23:01:33.000000000","message":"I think this is the case where Horizon automatically displays the regions in the top dropdown, and you can switch between regions. Isn\u0027t it usually the case that tokens can be validated across regions with this configuration? Otherwise, selecting a different region from the dropdown in Horizon would fail because Horizon will try to use the unscoped token from one region to get a new scoped token in the other region.\n\nThere may be concepts I\u0027m confusing here.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"d6373ba0864e191b3b44e7cdf5a851b67befec92","unresolved":false,"context_lines":[{"line_number":31,"context_line":"data across the regions (with master-master database replication, for"},{"line_number":32,"context_line":"instance). All other services are isolated from one another, but Keystone is"},{"line_number":33,"context_line":"able to provide the URLs for, say, the ``nova-api`` deployments in each"},{"line_number":34,"context_line":"region. Typically a Keystone token will only allow operations on the region"},{"line_number":35,"context_line":"for which it was granted."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"**Multiple clouds** provide total isolation. Horizon supports this (though"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_316ad7b3","line":34,"in_reply_to":"9a061dce_1bda52e8","updated":"2016-04-06 23:17:40.000000000","message":"Yeah, I think I may have rewritten this later; tokens typically are valid across regions, it\u0027s just that the horizon selector is a bit clumsy and looks like it\u0027s doing more than it actually is. I\u0027ll correct this.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"1ad22168a1ec4ea4e4f50ee72e6b1dbbccbce2d4","unresolved":false,"context_lines":[{"line_number":35,"context_line":"for which it was granted."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"**Multiple clouds** provide total isolation. Horizon supports this (though"},{"line_number":38,"context_line":"confusingly also refers to it as \u0027Region\u0027) this each cloud is totally"},{"line_number":39,"context_line":"separate with no knowledge of the other."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"In both the second and third options, the ability to search aggregated data"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_9b9b0218","line":38,"updated":"2016-04-06 23:01:33.000000000","message":"suggest changing \"this each\" to \"so that each\"","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"d6373ba0864e191b3b44e7cdf5a851b67befec92","unresolved":false,"context_lines":[{"line_number":35,"context_line":"for which it was granted."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"**Multiple clouds** provide total isolation. Horizon supports this (though"},{"line_number":38,"context_line":"confusingly also refers to it as \u0027Region\u0027) this each cloud is totally"},{"line_number":39,"context_line":"separate with no knowledge of the other."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"In both the second and third options, the ability to search aggregated data"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_1167d3e9","line":38,"in_reply_to":"9a061dce_9b9b0218","updated":"2016-04-06 23:17:40.000000000","message":"Will do, thanks","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"b6c65ea912d40648fe8eeb967774e23d75e50bef","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"**Multiple clouds** provide total isolation. Horizon supports this (though"},{"line_number":38,"context_line":"confusingly also refers to it as \u0027Region\u0027) this each cloud is totally"},{"line_number":39,"context_line":"separate with no knowledge of the other."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"In both the second and third options, the ability to search aggregated data"},{"line_number":42,"context_line":"can provide value. Referring to **region** separation: since"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_73193288","line":39,"updated":"2016-04-06 02:31:39.000000000","message":"What about cells?","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"079e80c815d694ca7b2e22797310f5f63db6a3b5","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"**Multiple clouds** provide total isolation. Horizon supports this (though"},{"line_number":38,"context_line":"confusingly also refers to it as \u0027Region\u0027) this each cloud is totally"},{"line_number":39,"context_line":"separate with no knowledge of the other."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"In both the second and third options, the ability to search aggregated data"},{"line_number":42,"context_line":"can provide value. Referring to **region** separation: since"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_e2da6ee7","line":39,"in_reply_to":"9a061dce_73193288","updated":"2016-04-06 14:31:56.000000000","message":"I\u0027ll add a note. Cells are compute only and sort of a hybrid; it seems to be an approach to deal with horizontal scaling rather than resiliency by splitting the API across multiple databases and RPC backends. I don\u0027t know how that would affect notifications and I\u0027ve not looked into how to configure it fully, but I suspect until we\u0027re released from hitting APIs we would not be able to recommend deploying into an environment large enough to require cells.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"1ad22168a1ec4ea4e4f50ee72e6b1dbbccbce2d4","unresolved":false,"context_lines":[{"line_number":52,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"These are the potential deployment options for multi-region clouds. For the"},{"line_number":55,"context_line":"sake of clarity, our cloud is divided into two regions, Region-APAC with a"},{"line_number":56,"context_line":"data-center in Australia and Region-EMEA with a datacenter in Germany."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"1. Deploy Searchlight in the same fashion as Keystone. API endpoints can exist"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_16d069f5","line":55,"updated":"2016-04-06 23:01:33.000000000","message":"It doesn\u0027t seem necessary to name these two regions in the text, as you don\u0027t refer to them later on.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"d6373ba0864e191b3b44e7cdf5a851b67befec92","unresolved":false,"context_lines":[{"line_number":52,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"These are the potential deployment options for multi-region clouds. For the"},{"line_number":55,"context_line":"sake of clarity, our cloud is divided into two regions, Region-APAC with a"},{"line_number":56,"context_line":"data-center in Australia and Region-EMEA with a datacenter in Germany."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"1. Deploy Searchlight in the same fashion as Keystone. API endpoints can exist"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_b19c27c1","line":55,"in_reply_to":"9a061dce_16d069f5","updated":"2016-04-06 23:17:40.000000000","message":"Yeah, I had grandiose ideas before i got lazy","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"b6c65ea912d40648fe8eeb967774e23d75e50bef","unresolved":false,"context_lines":[{"line_number":54,"context_line":"These are the potential deployment options for multi-region clouds. For the"},{"line_number":55,"context_line":"sake of clarity, our cloud is divided into two regions, Region-APAC with a"},{"line_number":56,"context_line":"data-center in Australia and Region-EMEA with a datacenter in Germany."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"1. Deploy Searchlight in the same fashion as Keystone. API endpoints can exist"},{"line_number":59,"context_line":"   in both regions. Data will be duplicated between regions (by some external"},{"line_number":60,"context_line":"   process - Elasticsearch explicitly does not support or recommend splitting"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_f378a2c6","line":57,"updated":"2016-04-06 02:31:39.000000000","message":"I think you can move 1 and 3 to the alternatives section.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"079e80c815d694ca7b2e22797310f5f63db6a3b5","unresolved":false,"context_lines":[{"line_number":54,"context_line":"These are the potential deployment options for multi-region clouds. For the"},{"line_number":55,"context_line":"sake of clarity, our cloud is divided into two regions, Region-APAC with a"},{"line_number":56,"context_line":"data-center in Australia and Region-EMEA with a datacenter in Germany."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"1. Deploy Searchlight in the same fashion as Keystone. API endpoints can exist"},{"line_number":59,"context_line":"   in both regions. Data will be duplicated between regions (by some external"},{"line_number":60,"context_line":"   process - Elasticsearch explicitly does not support or recommend splitting"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_0205e244","line":57,"in_reply_to":"9a061dce_f378a2c6","updated":"2016-04-06 14:31:56.000000000","message":"This is meant to be for discussion right now (hence WIP); I\u0027ll tidy it up once there\u0027s some consensus.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"b6c65ea912d40648fe8eeb967774e23d75e50bef","unresolved":false,"context_lines":[{"line_number":68,"context_line":"   a federated search node; indexing operations are always performed locally."},{"line_number":69,"context_line":"   Since we\u0027re already using aliases (yay!) there will be no problems with"},{"line_number":70,"context_line":"   conflicts as there can be with identical index names across clusters."},{"line_number":71,"context_line":"   Searches run against the tribe node."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"3. Run Searchlight in both regions separately; either have clients make"},{"line_number":74,"context_line":"   queries against both regions explicitly or have Searchlight\u0027s API echo"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_33317a06","line":71,"updated":"2016-04-06 02:31:39.000000000","message":"My main question on this is how this impacts overall query performance.  If I\u0027m scoped to a certain region and project, we\u0027d want to ideally only hit the clusters for the specified regions.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"079e80c815d694ca7b2e22797310f5f63db6a3b5","unresolved":false,"context_lines":[{"line_number":68,"context_line":"   a federated search node; indexing operations are always performed locally."},{"line_number":69,"context_line":"   Since we\u0027re already using aliases (yay!) there will be no problems with"},{"line_number":70,"context_line":"   conflicts as there can be with identical index names across clusters."},{"line_number":71,"context_line":"   Searches run against the tribe node."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"3. Run Searchlight in both regions separately; either have clients make"},{"line_number":74,"context_line":"   queries against both regions explicitly or have Searchlight\u0027s API echo"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_ad07c716","line":71,"in_reply_to":"9a061dce_33317a06","updated":"2016-04-06 14:31:56.000000000","message":"Yeah - in that case we can make the API aware of its local cluster; if you\u0027re scoped to region A, you would be hitting the region A searchlight api and we can optimize it out. It will obviously have more effect than constantly syncing data but i\u0027m fearful of aiming to solve data synchronization problems unless we absolutely must have all data local, in which case this is a vastly bigger task.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"f3022b5ee0bfaae1e719ce1ee9666a8f40eaf839","unresolved":false,"context_lines":[{"line_number":68,"context_line":"   a federated search node; indexing operations are always performed locally."},{"line_number":69,"context_line":"   Since we\u0027re already using aliases (yay!) there will be no problems with"},{"line_number":70,"context_line":"   conflicts as there can be with identical index names across clusters."},{"line_number":71,"context_line":"   Searches run against the tribe node."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"3. Run Searchlight in both regions separately; either have clients make"},{"line_number":74,"context_line":"   queries against both regions explicitly or have Searchlight\u0027s API echo"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_c8e66914","line":71,"in_reply_to":"9a061dce_ad07c716","updated":"2016-04-06 14:46:13.000000000","message":"Yes, I very much would like to avoid another layer of data synchronization.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"1ad22168a1ec4ea4e4f50ee72e6b1dbbccbce2d4","unresolved":false,"context_lines":[{"line_number":74,"context_line":"   queries against both regions explicitly or have Searchlight\u0027s API echo"},{"line_number":75,"context_line":"   requests to other regions. This would be the equivalent of a \u0027union\u0027 type"},{"line_number":76,"context_line":"   query; some additional sorting would be required either client-side or"},{"line_number":77,"context_line":"   as part of the proxying process. Paging becomes tricky."},{"line_number":78,"context_line":""},{"line_number":79,"context_line":".. _tribe: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-tribe.html"},{"line_number":80,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_f6e5f5a3","line":77,"updated":"2016-04-06 23:01:33.000000000","message":"This option is potentially bad for performance compared to the other two (although maybe not compared to #2). In #3, the application has to get results from all regions in real time while the user is waiting on the info. Often, some regions are across the globe and take extra time to return results.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"d6373ba0864e191b3b44e7cdf5a851b67befec92","unresolved":false,"context_lines":[{"line_number":74,"context_line":"   queries against both regions explicitly or have Searchlight\u0027s API echo"},{"line_number":75,"context_line":"   requests to other regions. This would be the equivalent of a \u0027union\u0027 type"},{"line_number":76,"context_line":"   query; some additional sorting would be required either client-side or"},{"line_number":77,"context_line":"   as part of the proxying process. Paging becomes tricky."},{"line_number":78,"context_line":""},{"line_number":79,"context_line":".. _tribe: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-tribe.html"},{"line_number":80,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_f1f05fff","line":77,"in_reply_to":"9a061dce_f6e5f5a3","updated":"2016-04-06 23:17:40.000000000","message":"I think actually this compares somewhat favorably performance wise to option #2 because you can at least get some results back. I would argue, however, that in this case it\u0027s not really cross-region search so much as having the client fire off two requests; if this is suitable, we don\u0027t need to do anything other than have the client be region-aware. In this instance you\u0027d probably want to segregate the result view because paging and sorting wouldn\u0027t be consistent.\n\nI\u0027m going to add a paragraph above explaining that these are in descending order of complexity, and highlight the functionality differences.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"1ad22168a1ec4ea4e4f50ee72e6b1dbbccbce2d4","unresolved":false,"context_lines":[{"line_number":82,"context_line":"The devil will be in the detail; it requires first that Tribe is a long-term"},{"line_number":83,"context_line":"supported path, and more importantly that there is an adequate story for"},{"line_number":84,"context_line":"security. Tribe requires access to all Elasticsearch nodes in each cluster,"},{"line_number":85,"context_line":"which likely means it needs to support SSL at the transport level and that"},{"line_number":86,"context_line":"operators are able and willing to provide cross-data-center access. This is"},{"line_number":87,"context_line":"presumably already done with MySQL replication and so may not be a roadblock,"},{"line_number":88,"context_line":"but a simple PoC would be very useful."}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_56e2e12f","line":85,"updated":"2016-04-06 23:01:33.000000000","message":"I think SSL prevents security vulnerabilities related to eavesdropping, but SSL itself won\u0027t prevent someone from setting up a malicious tribe node to send bad data or read private data. Reading through the tribes info from the above link, I don\u0027t see anything that would prevent a node from spoofing the IP of another.\n\n\nAre there other ways of securing the tribe that I just haven\u0027t seen yet?","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"d6373ba0864e191b3b44e7cdf5a851b67befec92","unresolved":false,"context_lines":[{"line_number":82,"context_line":"The devil will be in the detail; it requires first that Tribe is a long-term"},{"line_number":83,"context_line":"supported path, and more importantly that there is an adequate story for"},{"line_number":84,"context_line":"security. Tribe requires access to all Elasticsearch nodes in each cluster,"},{"line_number":85,"context_line":"which likely means it needs to support SSL at the transport level and that"},{"line_number":86,"context_line":"operators are able and willing to provide cross-data-center access. This is"},{"line_number":87,"context_line":"presumably already done with MySQL replication and so may not be a roadblock,"},{"line_number":88,"context_line":"but a simple PoC would be very useful."}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_114a3326","line":85,"in_reply_to":"9a061dce_56e2e12f","updated":"2016-04-06 23:17:40.000000000","message":"I didn\u0027t word it well, but typically elasticsearch clusters are hosted on a secured network (the inter-node ports are heavily locked down, only allowing outside access to the API port). Tribe nodes use the transport port, which means some kind of tunnel to any remote cluster nodes. I imagine this might be a similar problem with, for instance, mysql, or other distributed systems commonly deployed cross-data-center.\n\nUnfortunately some of the security features of ES are where elastic.co makes its money.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"1ad22168a1ec4ea4e4f50ee72e6b1dbbccbce2d4","unresolved":false,"context_lines":[{"line_number":84,"context_line":"security. Tribe requires access to all Elasticsearch nodes in each cluster,"},{"line_number":85,"context_line":"which likely means it needs to support SSL at the transport level and that"},{"line_number":86,"context_line":"operators are able and willing to provide cross-data-center access. This is"},{"line_number":87,"context_line":"presumably already done with MySQL replication and so may not be a roadblock,"},{"line_number":88,"context_line":"but a simple PoC would be very useful."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"A prototype"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_96d6394d","line":87,"updated":"2016-04-06 23:01:33.000000000","message":"I think this is a good assumption. In production, we replicate MySQL DB\u0027s across regions.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"d6373ba0864e191b3b44e7cdf5a851b67befec92","unresolved":false,"context_lines":[{"line_number":84,"context_line":"security. Tribe requires access to all Elasticsearch nodes in each cluster,"},{"line_number":85,"context_line":"which likely means it needs to support SSL at the transport level and that"},{"line_number":86,"context_line":"operators are able and willing to provide cross-data-center access. This is"},{"line_number":87,"context_line":"presumably already done with MySQL replication and so may not be a roadblock,"},{"line_number":88,"context_line":"but a simple PoC would be very useful."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"A prototype"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_f155ffc1","line":87,"in_reply_to":"9a061dce_96d6394d","updated":"2016-04-06 23:17:40.000000000","message":"It\u0027d be interesting to come up with a deployment mode for this for E-S; whether it\u0027s over a VPN, or behind stunnel or something for the remote access.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"b6c65ea912d40648fe8eeb967774e23d75e50bef","unresolved":false,"context_lines":[{"line_number":108,"context_line":"This technique will suffer from the same problem that resulted in us disabling"},{"line_number":109,"context_line":"`multi-index support`_; if the index mappings are different errors will"},{"line_number":110,"context_line":"result. The solution (as I suspect there) is to ensure identical mappings"},{"line_number":111,"context_line":"across indices even if no data is indexed into a given index."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"The work required here in addition to setting up Elasticsearch would be to"},{"line_number":114,"context_line":"make ``searchlight-api`` use the tribe node (potentially one in every region)"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_76000002","line":111,"updated":"2016-04-06 02:31:39.000000000","message":"This will present some problems for cross cloud searching.  I suspect that for that use case we\u0027d need option 3 above where the results are a union.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"d6373ba0864e191b3b44e7cdf5a851b67befec92","unresolved":false,"context_lines":[{"line_number":108,"context_line":"This technique will suffer from the same problem that resulted in us disabling"},{"line_number":109,"context_line":"`multi-index support`_; if the index mappings are different errors will"},{"line_number":110,"context_line":"result. The solution (as I suspect there) is to ensure identical mappings"},{"line_number":111,"context_line":"across indices even if no data is indexed into a given index."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"The work required here in addition to setting up Elasticsearch would be to"},{"line_number":114,"context_line":"make ``searchlight-api`` use the tribe node (potentially one in every region)"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_51678bb6","line":111,"in_reply_to":"9a061dce_76000002","updated":"2016-04-06 23:17:40.000000000","message":"I\u0027m not so sure; i think it would require an option to make SL aware that you don\u0027t want any data indexed but that it\u0027s part of a cross-cloud deployment. We could eliminate plugins marked as such from listings and faceting.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"1ad22168a1ec4ea4e4f50ee72e6b1dbbccbce2d4","unresolved":false,"context_lines":[{"line_number":114,"context_line":"make ``searchlight-api`` use the tribe node (potentially one in every region)"},{"line_number":115,"context_line":"rather than the cluster the listener uses (or perhaps both depending on"},{"line_number":116,"context_line":"search context). This change is relatively minor. We would also need to make"},{"line_number":117,"context_line":"all resources region aware (which is a sensible change) and make sure"},{"line_number":118,"context_line":"Searchlight itself is aware of its own region (also a sensible change)."},{"line_number":119,"context_line":""},{"line_number":120,"context_line":".. _`multi-index support`: (https://blueprints.launchpad.net/searchlight/+spec/reenable-multiple-indices)"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_16cd0985","line":117,"updated":"2016-04-06 23:01:33.000000000","message":"Does this imply changes to services such as Nova to make resources region aware, or just adding region info to what\u0027s stored in Elasticsearch?\n\n\nI\u0027m guessing it\u0027s the latter, or this doesn\u0027t sound like a sensible change.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"d6373ba0864e191b3b44e7cdf5a851b67befec92","unresolved":false,"context_lines":[{"line_number":114,"context_line":"make ``searchlight-api`` use the tribe node (potentially one in every region)"},{"line_number":115,"context_line":"rather than the cluster the listener uses (or perhaps both depending on"},{"line_number":116,"context_line":"search context). This change is relatively minor. We would also need to make"},{"line_number":117,"context_line":"all resources region aware (which is a sensible change) and make sure"},{"line_number":118,"context_line":"Searchlight itself is aware of its own region (also a sensible change)."},{"line_number":119,"context_line":""},{"line_number":120,"context_line":".. _`multi-index support`: (https://blueprints.launchpad.net/searchlight/+spec/reenable-multiple-indices)"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_f10cdfed","line":117,"in_reply_to":"9a061dce_16cd0985","updated":"2016-04-06 23:17:40.000000000","message":"I am a pragmatic realist. Yeah, the former - I\u0027ll clarify. The information\u0027s already available to e-s, we just don\u0027t record it because currently it\u0027s redundant.","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"1ad22168a1ec4ea4e4f50ee72e6b1dbbccbce2d4","unresolved":false,"context_lines":[{"line_number":124,"context_line":"Alternatives"},{"line_number":125,"context_line":"------------"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"Don\u0027t do multi-region searching."},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"References"},{"line_number":130,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_f6a8558e","line":127,"updated":"2016-04-06 23:01:33.000000000","message":"lol. \"It\u0027s my way or the highway!\"","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"d6373ba0864e191b3b44e7cdf5a851b67befec92","unresolved":false,"context_lines":[{"line_number":124,"context_line":"Alternatives"},{"line_number":125,"context_line":"------------"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"Don\u0027t do multi-region searching."},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"References"},{"line_number":130,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a061dce_7101efae","line":127,"in_reply_to":"9a061dce_f6a8558e","updated":"2016-04-06 23:17:40.000000000","message":"This whole thing is an invitation for alternatives, but i will make this section mention that. I\u0027m beholden to the spec template!","commit_id":"65b59f55d24278827d285d9a7fff5be1e35af7e6"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"94ce0e7846dc9272a56ac4506e56b75ebe6edeab","unresolved":false,"context_lines":[{"line_number":46,"context_line":"and message queues in a way that\u0027s mostly transparent to users. Cells will"},{"line_number":47,"context_line":"be considered beyond the scope of this document since they address performance"},{"line_number":48,"context_line":"rather than resilience, and thus aren\u0027t directly related to this feature"},{"line_number":49,"context_line":"(though may be the basis of another)."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"In both the second and third options, the ability to search aggregated data"},{"line_number":52,"context_line":"can provide value. Referring to **region** separation: since"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_8156d403","line":49,"updated":"2016-04-07 13:46:56.000000000","message":"I agree, it\u0027s a good idea to hold off on this until the cells v2 effort is completed, at which time, all nova deployments will contain at least one cell.","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"46b2b5cc75ab2d5e5ec37f88a4310a9d30a1521d","unresolved":false,"context_lines":[{"line_number":46,"context_line":"and message queues in a way that\u0027s mostly transparent to users. Cells will"},{"line_number":47,"context_line":"be considered beyond the scope of this document since they address performance"},{"line_number":48,"context_line":"rather than resilience, and thus aren\u0027t directly related to this feature"},{"line_number":49,"context_line":"(though may be the basis of another)."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"In both the second and third options, the ability to search aggregated data"},{"line_number":52,"context_line":"can provide value. Referring to **region** separation: since"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a1b2928_abba6fdf","line":49,"in_reply_to":"7a1b2928_2b1dc273","updated":"2016-04-11 18:08:54.000000000","message":"I\u0027ll see if I can dig something up.  There\u0027s no single spec, and the wiki pages/etherpads I looked at are a bit dated.  There are 2 cells-related specs in Nova\u0027s Newton-approved directory, though, so the effort is ongoing [0,1].\n\nA synopsis would be that cells were introduced as a way to scale Nova, but they were optional.  As a result, new Nova features sometimes weren\u0027t implemented to work in cells, causing much sadness.  The cells v2 effort is a refactoring of cells building on what\u0027s been learned since Grizzly, plus restructuring Nova so that all deployments are cells-based (using one cell by default).\n\nI\u0027m not sure Steve needs to link to nova cells info here; as he says, cells aren\u0027t directly related to this feature.\n\n[0] http://specs.openstack.org/openstack/nova-specs/specs/newton/approved/cells-cell0.html\n[1] http://specs.openstack.org/openstack/nova-specs/specs/newton/approved/cells-scheduling-interaction.html","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"c2cd0419c9f3407ba7b973ef69b6897cd01b005f","unresolved":false,"context_lines":[{"line_number":46,"context_line":"and message queues in a way that\u0027s mostly transparent to users. Cells will"},{"line_number":47,"context_line":"be considered beyond the scope of this document since they address performance"},{"line_number":48,"context_line":"rather than resilience, and thus aren\u0027t directly related to this feature"},{"line_number":49,"context_line":"(though may be the basis of another)."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"In both the second and third options, the ability to search aggregated data"},{"line_number":52,"context_line":"can provide value. Referring to **region** separation: since"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a1b2928_2b1dc273","line":49,"in_reply_to":"9a061dce_8156d403","updated":"2016-04-11 17:24:56.000000000","message":"Brian, what is this v2 effort? Just a synopsis? Or a spec link?  Maybe Steve should include a link to that spec.","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"94ce0e7846dc9272a56ac4506e56b75ebe6edeab","unresolved":false,"context_lines":[{"line_number":48,"context_line":"rather than resilience, and thus aren\u0027t directly related to this feature"},{"line_number":49,"context_line":"(though may be the basis of another)."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"In both the second and third options, the ability to search aggregated data"},{"line_number":52,"context_line":"can provide value. Referring to **region** separation: since"},{"line_number":53,"context_line":"a Nova deployments in a fictional Region-A is unaware of resources in a"},{"line_number":54,"context_line":"fictional Region-B, a user must make requests to each region to get"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_8181b4fd","line":51,"range":{"start_line":51,"start_character":0,"end_line":51,"end_character":36},"updated":"2016-04-07 13:46:56.000000000","message":"How about replacing this with:\n\"For deployments using regions, or for federated multiple clouds,\"\n(I got confused by your reference to \"options 1 and 2\" at line 69, below, which I think are talking about the change options, not these deployment options.)","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"329ab47efc755517e4ade010c59e64764f8c27c5","unresolved":false,"context_lines":[{"line_number":48,"context_line":"rather than resilience, and thus aren\u0027t directly related to this feature"},{"line_number":49,"context_line":"(though may be the basis of another)."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"In both the second and third options, the ability to search aggregated data"},{"line_number":52,"context_line":"can provide value. Referring to **region** separation: since"},{"line_number":53,"context_line":"a Nova deployments in a fictional Region-A is unaware of resources in a"},{"line_number":54,"context_line":"fictional Region-B, a user must make requests to each region to get"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_dfba0a0a","line":51,"range":{"start_line":51,"start_character":0,"end_line":51,"end_character":36},"in_reply_to":"9a061dce_8181b4fd","updated":"2016-04-08 19:26:03.000000000","message":"Done","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"94ce0e7846dc9272a56ac4506e56b75ebe6edeab","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"In both the second and third options, the ability to search aggregated data"},{"line_number":52,"context_line":"can provide value. Referring to **region** separation: since"},{"line_number":53,"context_line":"a Nova deployments in a fictional Region-A is unaware of resources in a"},{"line_number":54,"context_line":"fictional Region-B, a user must make requests to each region to get"},{"line_number":55,"context_line":"information. This makes Horizon somewhat cumbersome (changing region triggers"},{"line_number":56,"context_line":"reloading pages to change the context, although authentication status"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_81a41408","line":53,"range":{"start_line":53,"start_character":17,"end_line":53,"end_character":18},"updated":"2016-04-07 13:46:56.000000000","message":"nit: remove the \u0027s\u0027","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"329ab47efc755517e4ade010c59e64764f8c27c5","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"In both the second and third options, the ability to search aggregated data"},{"line_number":52,"context_line":"can provide value. Referring to **region** separation: since"},{"line_number":53,"context_line":"a Nova deployments in a fictional Region-A is unaware of resources in a"},{"line_number":54,"context_line":"fictional Region-B, a user must make requests to each region to get"},{"line_number":55,"context_line":"information. This makes Horizon somewhat cumbersome (changing region triggers"},{"line_number":56,"context_line":"reloading pages to change the context, although authentication status"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_bff8f6c5","line":53,"range":{"start_line":53,"start_character":17,"end_line":53,"end_character":18},"in_reply_to":"9a061dce_81a41408","updated":"2016-04-08 19:26:03.000000000","message":"Done","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"94ce0e7846dc9272a56ac4506e56b75ebe6edeab","unresolved":false,"context_lines":[{"line_number":66,"context_line":"that follow are presented in order of effort and complexity. Relative"},{"line_number":67,"context_line":"performance is noted."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"It should be noted that options 1 and 2 provide a similar"},{"line_number":70,"context_line":"functional experience; searches will appear to run against a single API"},{"line_number":71,"context_line":"endpoint returning data in multiple regions (sorting and paging"},{"line_number":72,"context_line":"appropriately). Option 3 treats each region separately; paging and sorting"},{"line_number":73,"context_line":"would apply to each region\u0027s results. There is a decision to be made even at"},{"line_number":74,"context_line":"that level what is actually desirable; should the UI segregate results by"},{"line_number":75,"context_line":"region or is a merged view more desirable?"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"1. Deploy Searchlight in the same fashion as Keystone. API endpoints can exist"},{"line_number":78,"context_line":"   in both regions. Data will be duplicated between regions (by some external"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_217f08e1","line":75,"range":{"start_line":69,"start_character":0,"end_line":75,"end_character":42},"updated":"2016-04-07 13:46:56.000000000","message":"This paragraph might be better placed after you describe the options.","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"329ab47efc755517e4ade010c59e64764f8c27c5","unresolved":false,"context_lines":[{"line_number":66,"context_line":"that follow are presented in order of effort and complexity. Relative"},{"line_number":67,"context_line":"performance is noted."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"It should be noted that options 1 and 2 provide a similar"},{"line_number":70,"context_line":"functional experience; searches will appear to run against a single API"},{"line_number":71,"context_line":"endpoint returning data in multiple regions (sorting and paging"},{"line_number":72,"context_line":"appropriately). Option 3 treats each region separately; paging and sorting"},{"line_number":73,"context_line":"would apply to each region\u0027s results. There is a decision to be made even at"},{"line_number":74,"context_line":"that level what is actually desirable; should the UI segregate results by"},{"line_number":75,"context_line":"region or is a merged view more desirable?"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"1. Deploy Searchlight in the same fashion as Keystone. API endpoints can exist"},{"line_number":78,"context_line":"   in both regions. Data will be duplicated between regions (by some external"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_9f1c1215","line":75,"range":{"start_line":69,"start_character":0,"end_line":75,"end_character":42},"in_reply_to":"9a061dce_217f08e1","updated":"2016-04-08 19:26:03.000000000","message":"Agree, done","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"94ce0e7846dc9272a56ac4506e56b75ebe6edeab","unresolved":false,"context_lines":[{"line_number":80,"context_line":"   clusters across geographical locations); Searchlight indexing will write to"},{"line_number":81,"context_line":"   its local cluster and queries will be run against a local cluster. All"},{"line_number":82,"context_line":"   region-aware resources will have a region id attached to them."},{"line_number":83,"context_line":"   **Best performance**, **most difficult maintenance**."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"2. Searchlight will run in each location, but data will not be duplicated"},{"line_number":86,"context_line":"   across locations (similar to how nova and glance work). To allow searching"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_846d42ce","line":83,"updated":"2016-04-07 13:46:56.000000000","message":"Are you envisioning that each \"global\" cluster will be identical across regions (i.e., same exact index in region-A and in region-B), or will the cluster in region-A contain some region-A-specific data along with the region-B global data?","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"329ab47efc755517e4ade010c59e64764f8c27c5","unresolved":false,"context_lines":[{"line_number":80,"context_line":"   clusters across geographical locations); Searchlight indexing will write to"},{"line_number":81,"context_line":"   its local cluster and queries will be run against a local cluster. All"},{"line_number":82,"context_line":"   region-aware resources will have a region id attached to them."},{"line_number":83,"context_line":"   **Best performance**, **most difficult maintenance**."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"2. Searchlight will run in each location, but data will not be duplicated"},{"line_number":86,"context_line":"   across locations (similar to how nova and glance work). To allow searching"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_dfedeaf0","line":83,"in_reply_to":"9a061dce_846d42ce","updated":"2016-04-08 19:26:03.000000000","message":"Under this model i would assume everything would be identical (like keystone) so that all functionality is available for all regions in any given region","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"94ce0e7846dc9272a56ac4506e56b75ebe6edeab","unresolved":false,"context_lines":[{"line_number":86,"context_line":"   across locations (similar to how nova and glance work). To allow searching"},{"line_number":87,"context_line":"   across regions, Elasticsearch is configured with a tribe_ node that acts as"},{"line_number":88,"context_line":"   a federated search node; indexing operations are always performed locally."},{"line_number":89,"context_line":"   Since we\u0027re already using aliases (yay!) there will be no problems with"},{"line_number":90,"context_line":"   conflicts as there can be with identical index names across clusters."},{"line_number":91,"context_line":"   Searches run against the tribe node."},{"line_number":92,"context_line":"   **Worst performance** (as bad as the slowest node, though single region"},{"line_number":93,"context_line":"   searches can be optimized), **easier maintenance**."}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_44632a42","line":90,"range":{"start_line":89,"start_character":3,"end_line":90,"end_character":72},"updated":"2016-04-07 13:46:56.000000000","message":"I misunderstood you the first time I read this, and got more confused when I looked at the ref.  How about:\nSince we\u0027re already using aliases (yay!), we will avoid the conflicts that would otherwise be caused by indices with identical names across the various clusters.","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"329ab47efc755517e4ade010c59e64764f8c27c5","unresolved":false,"context_lines":[{"line_number":86,"context_line":"   across locations (similar to how nova and glance work). To allow searching"},{"line_number":87,"context_line":"   across regions, Elasticsearch is configured with a tribe_ node that acts as"},{"line_number":88,"context_line":"   a federated search node; indexing operations are always performed locally."},{"line_number":89,"context_line":"   Since we\u0027re already using aliases (yay!) there will be no problems with"},{"line_number":90,"context_line":"   conflicts as there can be with identical index names across clusters."},{"line_number":91,"context_line":"   Searches run against the tribe node."},{"line_number":92,"context_line":"   **Worst performance** (as bad as the slowest node, though single region"},{"line_number":93,"context_line":"   searches can be optimized), **easier maintenance**."}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_7faade86","line":90,"range":{"start_line":89,"start_character":3,"end_line":90,"end_character":72},"in_reply_to":"9a061dce_44632a42","updated":"2016-04-08 19:26:03.000000000","message":"You\u0027re right, this is confusing. I\u0027m going to reword the sentence to \u0027Searching against an alias will gather results from that alias across all regions\u0027","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"94ce0e7846dc9272a56ac4506e56b75ebe6edeab","unresolved":false,"context_lines":[{"line_number":90,"context_line":"   conflicts as there can be with identical index names across clusters."},{"line_number":91,"context_line":"   Searches run against the tribe node."},{"line_number":92,"context_line":"   **Worst performance** (as bad as the slowest node, though single region"},{"line_number":93,"context_line":"   searches can be optimized), **easier maintenance**."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"3. Run Searchlight in both regions separately; either have clients make"},{"line_number":96,"context_line":"   queries against both regions explicitly or have Searchlight\u0027s API echo"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_a7cfa854","line":93,"updated":"2016-04-07 13:46:56.000000000","message":"Another dimension to add here is how much complexity has to be handled by a client.  Not surprisingly, it\u0027s inversely related to ease-of-maintenance, but it might be worth pointing out.","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"329ab47efc755517e4ade010c59e64764f8c27c5","unresolved":false,"context_lines":[{"line_number":90,"context_line":"   conflicts as there can be with identical index names across clusters."},{"line_number":91,"context_line":"   Searches run against the tribe node."},{"line_number":92,"context_line":"   **Worst performance** (as bad as the slowest node, though single region"},{"line_number":93,"context_line":"   searches can be optimized), **easier maintenance**."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"3. Run Searchlight in both regions separately; either have clients make"},{"line_number":96,"context_line":"   queries against both regions explicitly or have Searchlight\u0027s API echo"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_5fb43ad0","line":93,"in_reply_to":"9a061dce_a7cfa854","updated":"2016-04-08 19:26:03.000000000","message":"True that","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"94ce0e7846dc9272a56ac4506e56b75ebe6edeab","unresolved":false,"context_lines":[{"line_number":97,"context_line":"   requests to other regions. Likely this would enforce segregating results by"},{"line_number":98,"context_line":"   region (which might be a good outcome)."},{"line_number":99,"context_line":"   **Variable performance** (can receive results as they are available),"},{"line_number":100,"context_line":"   **easiest maintenance**."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":".. _tribe: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-tribe.html"},{"line_number":103,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_ea14c5e9","line":100,"updated":"2016-04-07 13:46:56.000000000","message":"This option would require the most complexity on the client side, as the client would have to figure out how to collate and page the results in a sensible way, and handle global faceting.\n\nThis is a half-baked idea, but I wonder if there\u0027s an option 4, which would be to have a \"global summary\" index that would (somehow) make it easy to get just the \"user profile\" info.  (What I mean is, just using nova here, number of servers, number of servers by operating system, number of servers by flavor, etc., across all clusters.)   That way the client could display \"you have ## servers in regions X, Y, Z\", and then when the user says \"show me region X\", the client contacts the region-X Searchlight as in option 3.\n\nI don\u0027t know if the global summary index would be a copy per-region or in one location; also, I haven\u0027t thought about how updates would work.  And it could be that this idea doesn\u0027t really save complexity on either the client or server side!  The only reason I\u0027m mentioning it is that I\u0027m really worried about what the \"tribe\" performance is going to be like.","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"94ce0e7846dc9272a56ac4506e56b75ebe6edeab","unresolved":false,"context_lines":[{"line_number":139,"context_line":"The work required here in addition to setting up Elasticsearch would be to"},{"line_number":140,"context_line":"make ``searchlight-api`` use the tribe node (potentially one in every region)"},{"line_number":141,"context_line":"rather than the cluster the listener uses (or perhaps both depending on"},{"line_number":142,"context_line":"search context). This change is relatively minor. We would also need to make"},{"line_number":143,"context_line":"all resources region aware (which is a sensible change) and make sure"},{"line_number":144,"context_line":"Searchlight itself is aware of its own region (also a sensible change)."},{"line_number":145,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_8a0b897c","line":142,"range":{"start_line":142,"start_character":17,"end_line":142,"end_character":49},"updated":"2016-04-07 13:46:56.000000000","message":"Even so, I wonder whether we should do what nova is doing with cells, i.e., make *all* searchlight installations tribe-based (though maybe with a tribe of 1 by default).  I think it would simplify future Searchlight development, and we wouldn\u0027t have to worry about code changes that improve local Searchlight but break global Searchlight.","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"329ab47efc755517e4ade010c59e64764f8c27c5","unresolved":false,"context_lines":[{"line_number":139,"context_line":"The work required here in addition to setting up Elasticsearch would be to"},{"line_number":140,"context_line":"make ``searchlight-api`` use the tribe node (potentially one in every region)"},{"line_number":141,"context_line":"rather than the cluster the listener uses (or perhaps both depending on"},{"line_number":142,"context_line":"search context). This change is relatively minor. We would also need to make"},{"line_number":143,"context_line":"all resources region aware (which is a sensible change) and make sure"},{"line_number":144,"context_line":"Searchlight itself is aware of its own region (also a sensible change)."},{"line_number":145,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a061dce_df1ccac3","line":142,"range":{"start_line":142,"start_character":17,"end_line":142,"end_character":49},"in_reply_to":"9a061dce_8a0b897c","updated":"2016-04-08 19:26:03.000000000","message":"Yeah - it unfortunately requires running a second Elasticsearch process (albeit requiring much fewer resources than a full node). It IS something we could test with functional tests, and really the optimization is as simple as \"if this search is targeted at this region, use the local cluster connection, otherwise use the federated connection\". It\u0027s definitely something to bear in mind that we don\u0027t focus on one scenario (\"it works in devstack!\")","commit_id":"fbb9b9aa6c0a76f97b3985c6a72080b1c36c9b1d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"48f38993a34e43897f3d707880684db19d345b2e","unresolved":false,"context_lines":[{"line_number":54,"context_line":"each region to get information. This makes Horizon somewhat cumbersome"},{"line_number":55,"context_line":"(changing region triggers reloading pages to change the context,"},{"line_number":56,"context_line":"although authentication status is preserved)."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":".. _scaling: http://docs.openstack.org/openstack-ops/content/scaling.html"},{"line_number":59,"context_line":".. _Cells: http://docs.openstack.org/liberty/config-reference/content/section_compute-cells.html"},{"line_number":60,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a1b2928_6b721ae7","line":57,"updated":"2016-04-11 17:24:20.000000000","message":"There is another impact that comes to mind here which I don\u0027t see discussed below. The available resource types may differ between all of the above.  For example, I could see a deployer having separate bare metal regions that have ironic, but not neutron.\n\nIn these kind of scenarios, how does this affect the plugin info API?  How does it affect facets?\n\nNOTE: I just went back and read patch set 5 comments about identical keystone regions. I\u0027m not sure that this is a valid assumption to make. Even if we are making that assumption, that assumption should be documented along with limitations.","commit_id":"3305560d1ad2cb986f5285775816e28056cc4e73"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"ab364d55daeaf898f2b15b584f40978234f4e2dd","unresolved":false,"context_lines":[{"line_number":54,"context_line":"each region to get information. This makes Horizon somewhat cumbersome"},{"line_number":55,"context_line":"(changing region triggers reloading pages to change the context,"},{"line_number":56,"context_line":"although authentication status is preserved)."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":".. _scaling: http://docs.openstack.org/openstack-ops/content/scaling.html"},{"line_number":59,"context_line":".. _Cells: http://docs.openstack.org/liberty/config-reference/content/section_compute-cells.html"},{"line_number":60,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"5a18252c_d950dc34","line":57,"in_reply_to":"7a1b2928_6b721ae7","updated":"2016-04-14 20:39:52.000000000","message":"We would have to extend the solution for allowing multiple resource groups (namely, to fake missing doc types and make sure disabled plugins don\u0027t end up in faceting responses) but it should continue to work. The plugin_info API would be specific to a given region. This might need looking at in more detail.\n\nWe would not require keystone regions to be identical.","commit_id":"3305560d1ad2cb986f5285775816e28056cc4e73"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"48f38993a34e43897f3d707880684db19d345b2e","unresolved":false,"context_lines":[{"line_number":82,"context_line":"   that alias in all clusters to which the tribe node is joined."},{"line_number":83,"context_line":"   **Worst performance** (as bad as the slowest node, though single region"},{"line_number":84,"context_line":"   searches can be optimized), **easier maintenance**,"},{"line_number":85,"context_line":"   **zero client complexity**."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"3. Run Searchlight in both regions separately; either have clients make"},{"line_number":88,"context_line":"   queries against both regions explicitly or have Searchlight\u0027s API echo"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a1b2928_86584bfc","line":85,"updated":"2016-04-11 17:24:20.000000000","message":"I think we should expose search stats in the API if possible from each region. So that people (admins / developers) will be able to see why a certain search takes so much time.\n\nExpanding here, worst performance is mitigated by simply not choosing that region.  It is actually worth noting that 3 can actually be built on top of 2 just as user query options and any truly aggregate UI could still accomplish 3 anyway even with #2 by limiting region selection in the UI at query time.\n\nThis does give me some pause to wonder if we end up doing that anyway (building 3 on top of 2, whether or not we should build 2).","commit_id":"3305560d1ad2cb986f5285775816e28056cc4e73"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"ab364d55daeaf898f2b15b584f40978234f4e2dd","unresolved":false,"context_lines":[{"line_number":82,"context_line":"   that alias in all clusters to which the tribe node is joined."},{"line_number":83,"context_line":"   **Worst performance** (as bad as the slowest node, though single region"},{"line_number":84,"context_line":"   searches can be optimized), **easier maintenance**,"},{"line_number":85,"context_line":"   **zero client complexity**."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"3. Run Searchlight in both regions separately; either have clients make"},{"line_number":88,"context_line":"   queries against both regions explicitly or have Searchlight\u0027s API echo"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5a18252c_145a1b2a","line":85,"in_reply_to":"7a1b2928_86584bfc","updated":"2016-04-14 20:39:52.000000000","message":"You\u0027d get stats (the \u0027time taken\u0027) for each shard that served results. It increasingly sounds like transparent cross-region isn\u0027t going to be worth the effort, since in many cases clients will circumvent it anyway.","commit_id":"3305560d1ad2cb986f5285775816e28056cc4e73"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"48f38993a34e43897f3d707880684db19d345b2e","unresolved":false,"context_lines":[{"line_number":99,"context_line":"appropriately). Option 3 treats each region separately; paging and sorting"},{"line_number":100,"context_line":"would apply to each region\u0027s results. There is a decision to be made even at"},{"line_number":101,"context_line":"that level what is actually desirable; should the UI segregate results by"},{"line_number":102,"context_line":"region or is a merged view more desirable?"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Option 2 seems like the most attractive assuming that a fully aggregated"},{"line_number":105,"context_line":"view is what operators would find most useful."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a1b2928_464d9371","line":102,"updated":"2016-04-11 17:24:20.000000000","message":"I do think we need to talk about the horizon impact more explicitly for searchlight-ui. There is an impact on the actions which I will want to resolve with our registry concepts in horizon.\n\nHere\u0027s the basic discussion points:\n\nIn Horizon, we now are registering actions for particular resource types against a resource type registry. [0] [1]  When the resource is displayed we look up the available actions in the registry and \"ask\" the item if it is allowed to be displayed. Whether or not it is allowed right now is very similar logic to the legacy django actions.  It really just looks at it, checks policy, maybe sees if the items is owned by you (for editing), etc.  None of them have built in logic to check the currently selected region. In many cases this should not be a problem I think (e.g. delete, stop, start). However, there are other actions like launch instance from image that this will likely present a problem. It will go off and retrieve a bunch of additional resources like networks, ports, other images, snapshots, volumes, volume snapshots, keypairs, security groups, and flavors.  These will be listed according to the currently selected region.\n\nIn thinking about this, the cross project searching has a similar problem and I filed a bug for it to address it separately [3]. Possibly the solution we come up with can work for both scenarios.  I have two immediate ideas come to mind:\n\na) Register more info with the action to know its scoping limitation (current region, current project) and then pass expected scope into something like the actions directive.\n\nor\n\nb) Current actions have an informal \"allowed\" function that is called and the action returns whether or not it is allowed to be seen.  Right now, it truly is just checking data like policy, ownership, and protected (e.g. delete an image).  However, it could be enhanced to also check region and project. Ordinarily, I would think putting it in here would make sense, but in this scenario it is an external thing that happens to be displaying cross project / region search results which complicates things.\n\n[0] (Mitaka) Integration with Horizon demoː https://www.youtube.com/watch?v\u003d2feC1njvZe0\n\n[1] (Mitaka) End of Cycle Presentation on Horizon, CLI, and Searchlightː https://www.youtube.com/watch?v\u003dExzULavwvNQ\n\n[2] https://bugs.launchpad.net/searchlight/+bug/1568976","commit_id":"3305560d1ad2cb986f5285775816e28056cc4e73"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"0f219ec8ffa74dc31c30c4a0cd86e4a4be49e457","unresolved":false,"context_lines":[{"line_number":99,"context_line":"appropriately). Option 3 treats each region separately; paging and sorting"},{"line_number":100,"context_line":"would apply to each region\u0027s results. There is a decision to be made even at"},{"line_number":101,"context_line":"that level what is actually desirable; should the UI segregate results by"},{"line_number":102,"context_line":"region or is a merged view more desirable?"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Option 2 seems like the most attractive assuming that a fully aggregated"},{"line_number":105,"context_line":"view is what operators would find most useful."}],"source_content_type":"text/x-rst","patch_set":6,"id":"5a18252c_3e86c8b9","line":102,"in_reply_to":"7a1b2928_464d9371","updated":"2016-04-12 03:47:59.000000000","message":"I had discussion with Matt and Tyr about this. The short version is that we just need to figure out in the UI how to handle the actions appropriately. We shouldn\u0027t preclude cross-region searching because the actions are problematic.  If we choose to not do anything special here, it should be due to other reasons.","commit_id":"3305560d1ad2cb986f5285775816e28056cc4e73"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"0f219ec8ffa74dc31c30c4a0cd86e4a4be49e457","unresolved":false,"context_lines":[{"line_number":112,"context_line":"masquerade as a valid tribe node from a separate cluster."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"Something similar is presumably already done with MySQL replication and so may"},{"line_number":115,"context_line":"not be a roadblock, but a simple PoC would be very useful."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"A prototype"},{"line_number":118,"context_line":"-----------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5a18252c_5eb0e48b","line":115,"updated":"2016-04-12 03:47:59.000000000","message":"Should this spec address anything around notifications and the impact (or lack thereof) they might have on deployment.  Right now, the assumption and what is in many diagrams is that Searchlight is a per region service and each regional service in an OpenStack deployment should be indexed by that region\u0027s searchlight.","commit_id":"3305560d1ad2cb986f5285775816e28056cc4e73"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"ab364d55daeaf898f2b15b584f40978234f4e2dd","unresolved":false,"context_lines":[{"line_number":112,"context_line":"masquerade as a valid tribe node from a separate cluster."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"Something similar is presumably already done with MySQL replication and so may"},{"line_number":115,"context_line":"not be a roadblock, but a simple PoC would be very useful."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"A prototype"},{"line_number":118,"context_line":"-----------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5a18252c_94462b4d","line":115,"in_reply_to":"5a18252c_5eb0e48b","updated":"2016-04-14 20:39:52.000000000","message":"There will be no impact on that, aside from any requirements to sync data or allow networking between nodes. A service will continue to be indexed in its own region.","commit_id":"3305560d1ad2cb986f5285775816e28056cc4e73"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"113c3356a47402164dd814b61f549d57a4a2fd2b","unresolved":false,"context_lines":[{"line_number":105,"context_line":"was presented) it was agreed that a unified view is potentially very useful,"},{"line_number":106,"context_line":"but requires significant awareness of the security implications and a lot more"},{"line_number":107,"context_line":"testing. The general feeling given the workload for Newton was that this"},{"line_number":108,"context_line":"functionality can be adequately supported from the client."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"As such, we will document the method by which Searchlight can be run using"},{"line_number":111,"context_line":"tribe nodes, and the networking implications it brings. We will also add"}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_7747ac77","line":108,"updated":"2016-05-02 16:32:10.000000000","message":"I think it would be worth noting here that this is option 3 above.","commit_id":"494dc23a83342f2a01d2d7057ac44235fb962ee6"}]}
