Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate server background polling #32428

Closed
jbudz opened this issue Mar 4, 2019 · 11 comments
Closed

Investigate server background polling #32428

jbudz opened this issue Mar 4, 2019 · 11 comments
Labels
Feature:Telemetry Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Operations Team label for Operations Team

Comments

@jbudz
Copy link
Member

jbudz commented Mar 4, 2019

Kibana has several discrete background polling operations. In one minute from startup in 8.0 we have 57 request in a red state, and 293 requests in a green state. In practice it's enough to put load on clusters and in between networking.

"Time","Info"
"0.005699","HEAD / HTTP/1.1 "
"0.014017","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"0.024111","PUT /_template/.management-beats HTTP/1.1  (application/json)"
"0.026824","GET /_xpack HTTP/1.1 "
"0.101994","GET /.kibana/doc/kql-telemetry%3Akql-telemetry HTTP/1.1 "
"0.102245","POST /.kibana/_search HTTP/1.1  (application/json)"
"0.106132","POST /.kibana/_search?ignore_unavailable=true&filter_path=aggregations.types.buckets HTTP/1.1  (application/json)"
"0.112046","GET /.kibana/doc/config%3A8.0.0 HTTP/1.1 "
"0.116188","POST /.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-workpad HTTP/1.1  (application/json)"
"0.118323","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id HTTP/1.1  (application/json)"
"0.124698","GET /_security/privilege/kibana-.kibana HTTP/1.1 "
"0.127082","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id%2Chits.hits._source.search.kibanaSavedObjectMeta HTTP/1.1  (application/json)"
"0.127468","GET /_xpack HTTP/1.1 "
"0.132095","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._source.visualization.savedSearchRefName%2Chits.hits._source.visualization.kibanaSavedObjectMeta%2Chits.hits._source.references HTTP/1.1  (application/json)"
"0.991182","GET /_cluster/settings?include_defaults=true HTTP/1.1 "
"0.991297","HEAD / HTTP/1.1 "
"0.991383","GET /_template/.kibana_task_manager?filter_path=*.version HTTP/1.1 "
"0.997158","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"0.997320","GET /_template/.kibana_task_manager?filter_path=*.version HTTP/1.1 "
"1.001600","POST /.kibana_task_manager/_doc/Maps-maps_telemetry?refresh=true HTTP/1.1  (application/json)"
"1.400497","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"1.400606","GET /_template/.kibana_task_manager?filter_path=*.version HTTP/1.1 "
"1.405106","POST /.kibana_task_manager/_doc/oss_telemetry-vis_telemetry?refresh=true HTTP/1.1  (application/json)"
"1.431488","POST /.kibana_task_manager/_update/Maps-maps_telemetry?if_seq_no=0&if_primary_term=1&refresh=true HTTP/1.1  (application/json)"
"1.484057","GET /.kibana HTTP/1.1 "
"1.492269","GET /.kibana HTTP/1.1 "
"1.499671","POST /.kibana/_count HTTP/1.1  (application/json)"
"1.512864","GET /.kibana HTTP/1.1 "
"1.518907","POST /.kibana/_search?size=20&from=0&rest_total_hits_as_int=true HTTP/1.1  (application/json)"
"1.519012","GET /.kibana/_doc/space%3Adefault HTTP/1.1 "
"1.519119","POST /.kibana/_search?size=20&from=0&rest_total_hits_as_int=true HTTP/1.1  (application/json)"
"1.519210","GET /.kibana/_doc/ml-telemetry%3Aml-telemetry HTTP/1.1 "
"1.519297","GET /.kibana/_doc/apm-telemetry%3Aapm-telemetry HTTP/1.1 "
"1.519444","GET /.kibana/_doc/upgrade-assistant-telemetry%3Aupgrade-assistant-telemetry HTTP/1.1 "
"1.527987","GET /_cluster/settings?include_defaults=true HTTP/1.1 "
"1.529988","GET /.kibana/_doc/space%3Adefault HTTP/1.1 "
"1.546581","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"1.546722","POST /.kibana/_search?size=20&from=0&rest_total_hits_as_int=true HTTP/1.1  (application/json)"
"1.556236","POST /.kibana/_doc/maps-telemetry%3Amaps-telemetry?refresh=wait_for HTTP/1.1  (application/json)"
"1.584559","POST /_monitoring/bulk?system_id=kibana&system_api_version=6&interval=10000ms HTTP/1.1  (application/x-ndjson)"
"2.525475","HEAD / HTTP/1.1 "
"2.527630","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"2.620370","POST /.kibana_task_manager/_update/Maps-maps_telemetry?if_seq_no=2&if_primary_term=1&refresh=true HTTP/1.1  (application/json)"
"3.962769","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"3.965377","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"3.965491","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"4.006881","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"4.023969","POST /.kibana_task_manager/_update/oss_telemetry-vis_telemetry?if_seq_no=1&if_primary_term=1&refresh=true HTTP/1.1  (application/json)"
"4.088385","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"4.088504","POST /.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._id%2Chits.hits._source.visualization HTTP/1.1  (application/json)"
"4.094048","POST /.kibana_task_manager/_update/oss_telemetry-vis_telemetry?if_seq_no=4&if_primary_term=1&refresh=true HTTP/1.1  (application/json)"
"5.031667","HEAD / HTTP/1.1 "
"5.033796","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"6.970095","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"6.970276","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"6.970432","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"7.098088","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"7.539848","HEAD / HTTP/1.1 "
"7.542396","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"9.976321","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"9.976446","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"9.976547","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"10.047659","HEAD / HTTP/1.1 "
"10.049904","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"10.092385","GET /.kibana/doc/kql-telemetry%3Akql-telemetry HTTP/1.1 "
"10.092479","POST /.kibana/_search HTTP/1.1  (application/json)"
"10.092588","POST /.kibana/_search?ignore_unavailable=true&filter_path=aggregations.types.buckets HTTP/1.1  (application/json)"
"10.092703","GET /.kibana/doc/config%3A8.0.0 HTTP/1.1 "
"10.092805","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"10.092907","POST /.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-workpad HTTP/1.1  (application/json)"
"10.093003","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id HTTP/1.1  (application/json)"
"10.099154","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id%2Chits.hits._source.search.kibanaSavedObjectMeta HTTP/1.1  (application/json)"
"10.100864","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"10.102750","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._source.visualization.savedSearchRefName%2Chits.hits._source.visualization.kibanaSavedObjectMeta%2Chits.hits._source.references HTTP/1.1  (application/json)"
"10.106723","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"10.107642","POST /.kibana/_search?size=20&from=0&rest_total_hits_as_int=true HTTP/1.1  (application/json)"
"10.115975","GET /.kibana/_doc/ml-telemetry%3Aml-telemetry HTTP/1.1 "
"10.120814","GET /.kibana/_doc/apm-telemetry%3Aapm-telemetry HTTP/1.1 "
"10.123000","GET /.kibana/_doc/upgrade-assistant-telemetry%3Aupgrade-assistant-telemetry HTTP/1.1 "
"10.124240","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"10.126069","GET /_cluster/settings?include_defaults=true HTTP/1.1 "
"10.128685","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"10.130822","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"10.150283","POST /_monitoring/bulk?system_id=kibana&system_api_version=6&interval=10000ms HTTP/1.1  (application/x-ndjson)"
"12.556920","HEAD / HTTP/1.1 "
"12.559288","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"12.985715","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"12.985866","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"12.986008","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"13.117982","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"15.065469","HEAD / HTTP/1.1 "
"15.067410","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"15.994667","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"15.994917","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"15.995063","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"16.128980","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"17.570942","HEAD / HTTP/1.1 "
"17.572627","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"18.998303","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"19.000849","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"19.000979","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"19.137291","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"20.075474","HEAD / HTTP/1.1 "
"20.077521","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"20.087360","GET /.kibana/doc/kql-telemetry%3Akql-telemetry HTTP/1.1 "
"20.087484","POST /.kibana/_search HTTP/1.1  (application/json)"
"20.087549","POST /.kibana/_search?ignore_unavailable=true&filter_path=aggregations.types.buckets HTTP/1.1  (application/json)"
"20.087627","GET /.kibana/doc/config%3A8.0.0 HTTP/1.1 "
"20.087713","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"20.087855","POST /.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-workpad HTTP/1.1  (application/json)"
"20.087959","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id HTTP/1.1  (application/json)"
"20.088053","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"20.090043","POST /.kibana/_search?size=20&from=0&rest_total_hits_as_int=true HTTP/1.1  (application/json)"
"20.090191","GET /.kibana/_doc/ml-telemetry%3Aml-telemetry HTTP/1.1 "
"20.090286","GET /.kibana/_doc/apm-telemetry%3Aapm-telemetry HTTP/1.1 "
"20.090371","GET /.kibana/_doc/upgrade-assistant-telemetry%3Aupgrade-assistant-telemetry HTTP/1.1 "
"20.090478","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"20.092598","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id%2Chits.hits._source.search.kibanaSavedObjectMeta HTTP/1.1  (application/json)"
"20.096152","GET /_cluster/settings?include_defaults=true HTTP/1.1 "
"20.097140","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"20.098752","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._source.visualization.savedSearchRefName%2Chits.hits._source.visualization.kibanaSavedObjectMeta%2Chits.hits._source.references HTTP/1.1  (application/json)"
"20.099979","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"20.116748","POST /_monitoring/bulk?system_id=kibana&system_api_version=6&interval=10000ms HTTP/1.1  (application/x-ndjson)"
"22.003163","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"22.005519","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"22.005639","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"22.147534","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"22.581952","HEAD / HTTP/1.1 "
"22.584115","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"25.010884","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"25.011040","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"25.011163","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"25.089487","HEAD / HTTP/1.1 "
"25.091806","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"25.154701","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"27.599789","HEAD / HTTP/1.1 "
"27.601772","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"28.019781","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"28.019940","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"28.020082","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"28.165675","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"30.088814","GET /.kibana/doc/kql-telemetry%3Akql-telemetry HTTP/1.1 "
"30.088941","POST /.kibana/_search HTTP/1.1  (application/json)"
"30.089043","POST /.kibana/_search?ignore_unavailable=true&filter_path=aggregations.types.buckets HTTP/1.1  (application/json)"
"30.089124","GET /.kibana/doc/config%3A8.0.0 HTTP/1.1 "
"30.089210","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"30.089347","POST /.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-workpad HTTP/1.1  (application/json)"
"30.089468","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id HTTP/1.1  (application/json)"
"30.089592","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"30.092191","POST /.kibana/_search?size=20&from=0&rest_total_hits_as_int=true HTTP/1.1  (application/json)"
"30.092344","GET /.kibana/_doc/ml-telemetry%3Aml-telemetry HTTP/1.1 "
"30.092454","GET /.kibana/_doc/apm-telemetry%3Aapm-telemetry HTTP/1.1 "
"30.092547","GET /.kibana/_doc/upgrade-assistant-telemetry%3Aupgrade-assistant-telemetry HTTP/1.1 "
"30.092661","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"30.094310","GET /_xpack HTTP/1.1 "
"30.098097","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"30.099234","GET /_cluster/settings?include_defaults=true HTTP/1.1 "
"30.100268","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id%2Chits.hits._source.search.kibanaSavedObjectMeta HTTP/1.1  (application/json)"
"30.101760","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"30.103662","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._source.visualization.savedSearchRefName%2Chits.hits._source.visualization.kibanaSavedObjectMeta%2Chits.hits._source.references HTTP/1.1  (application/json)"
"30.104743","HEAD / HTTP/1.1 "
"30.106606","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"30.141222","POST /_monitoring/bulk?system_id=kibana&system_api_version=6&interval=10000ms HTTP/1.1  (application/x-ndjson)"
"30.153528","GET /_xpack HTTP/1.1 "
"31.023392","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"31.026043","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"31.026248","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"31.178346","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"31.534136","POST /.kibana/_search?size=20&from=0&rest_total_hits_as_int=true HTTP/1.1  (application/json)"
"32.613478","HEAD / HTTP/1.1 "
"32.615698","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"34.033236","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"34.033425","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"34.033554","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"34.185958","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"35.119674","HEAD / HTTP/1.1 "
"35.121613","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"37.039244","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"37.039408","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"37.039531","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"37.197048","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"37.629135","HEAD / HTTP/1.1 "
"37.632829","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"40.046376","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"40.046538","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"40.046655","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"40.099637","GET /.kibana/doc/kql-telemetry%3Akql-telemetry HTTP/1.1 "
"40.099730","POST /.kibana/_search HTTP/1.1  (application/json)"
"40.099848","POST /.kibana/_search?ignore_unavailable=true&filter_path=aggregations.types.buckets HTTP/1.1  (application/json)"
"40.099924","GET /.kibana/doc/config%3A8.0.0 HTTP/1.1 "
"40.100022","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"40.100126","POST /.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-workpad HTTP/1.1  (application/json)"
"40.100226","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id HTTP/1.1  (application/json)"
"40.100329","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"40.102131","POST /.kibana/_search?size=20&from=0&rest_total_hits_as_int=true HTTP/1.1  (application/json)"
"40.102216","GET /.kibana/_doc/ml-telemetry%3Aml-telemetry HTTP/1.1 "
"40.102356","GET /.kibana/_doc/apm-telemetry%3Aapm-telemetry HTTP/1.1 "
"40.102516","GET /.kibana/_doc/upgrade-assistant-telemetry%3Aupgrade-assistant-telemetry HTTP/1.1 "
"40.102730","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"40.105952","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"40.107864","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id%2Chits.hits._source.search.kibanaSavedObjectMeta HTTP/1.1  (application/json)"
"40.111069","GET /_cluster/settings?include_defaults=true HTTP/1.1 "
"40.112333","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"40.118369","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._source.visualization.savedSearchRefName%2Chits.hits._source.visualization.kibanaSavedObjectMeta%2Chits.hits._source.references HTTP/1.1  (application/json)"
"40.130572","POST /_monitoring/bulk?system_id=kibana&system_api_version=6&interval=10000ms HTTP/1.1  (application/x-ndjson)"
"40.136707","HEAD / HTTP/1.1 "
"40.138030","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"40.206884","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"42.644311","HEAD / HTTP/1.1 "
"42.648433","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"43.056023","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"43.056189","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"43.056306","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"43.216475","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"45.156132","HEAD / HTTP/1.1 "
"45.157918","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"46.064106","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"46.064265","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"46.064412","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"46.227640","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"47.664870","HEAD / HTTP/1.1 "
"47.667152","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"49.068382","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"49.070868","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"49.070982","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"49.237152","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"50.094510","GET /.kibana/doc/kql-telemetry%3Akql-telemetry HTTP/1.1 "
"50.094642","POST /.kibana/_search HTTP/1.1  (application/json)"
"50.094744","POST /.kibana/_search?ignore_unavailable=true&filter_path=aggregations.types.buckets HTTP/1.1  (application/json)"
"50.094823","GET /.kibana/doc/config%3A8.0.0 HTTP/1.1 "
"50.094925","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"50.095026","POST /.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-workpad HTTP/1.1  (application/json)"
"50.095143","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id HTTP/1.1  (application/json)"
"50.095402","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"50.102228","POST /.kibana/_search?size=20&from=0&rest_total_hits_as_int=true HTTP/1.1  (application/json)"
"50.102317","GET /.kibana/_doc/ml-telemetry%3Aml-telemetry HTTP/1.1 "
"50.102436","GET /.kibana/_doc/apm-telemetry%3Aapm-telemetry HTTP/1.1 "
"50.102549","GET /.kibana/_doc/upgrade-assistant-telemetry%3Aupgrade-assistant-telemetry HTTP/1.1 "
"50.102714","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"50.105227","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id%2Chits.hits._source.search.kibanaSavedObjectMeta HTTP/1.1  (application/json)"
"50.106828","GET /_cluster/settings?include_defaults=true HTTP/1.1 "
"50.108126","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"50.109283","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._source.visualization.savedSearchRefName%2Chits.hits._source.visualization.kibanaSavedObjectMeta%2Chits.hits._source.references HTTP/1.1  (application/json)"
"50.110098","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"50.125838","POST /_monitoring/bulk?system_id=kibana&system_api_version=6&interval=10000ms HTTP/1.1  (application/x-ndjson)"
"50.172767","HEAD / HTTP/1.1 "
"50.176892","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"52.076966","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"52.077121","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"52.077240","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"52.246439","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"52.682145","HEAD / HTTP/1.1 "
"52.684267","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"55.081903","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"55.082175","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"55.082305","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"55.190220","HEAD / HTTP/1.1 "
"55.192428","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"55.256737","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"57.699848","HEAD / HTTP/1.1 "
"57.701793","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "
"58.088333","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"58.088576","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"58.088816","POST /.reporting-*/_search HTTP/1.1  (application/json)"
"58.264252","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"60.098909","GET /.kibana/doc/kql-telemetry%3Akql-telemetry HTTP/1.1 "
"60.099072","POST /.kibana/_search HTTP/1.1  (application/json)"
"60.099175","POST /.kibana/_search?ignore_unavailable=true&filter_path=aggregations.types.buckets HTTP/1.1  (application/json)"
"60.099256","GET /.kibana/doc/config%3A8.0.0 HTTP/1.1 "
"60.099356","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"60.099466","POST /.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-workpad HTTP/1.1  (application/json)"
"60.099591","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id HTTP/1.1  (application/json)"
"60.099721","POST /.kibana_task_manager/_search?ignore_unavailable=true HTTP/1.1  (application/json)"
"60.103314","POST /.kibana/_search?size=20&from=0&rest_total_hits_as_int=true HTTP/1.1  (application/json)"
"60.103432","GET /.kibana/_doc/ml-telemetry%3Aml-telemetry HTTP/1.1 "
"60.103521","GET /.kibana/_doc/apm-telemetry%3Aapm-telemetry HTTP/1.1 "
"60.103622","GET /.kibana/_doc/upgrade-assistant-telemetry%3Aupgrade-assistant-telemetry HTTP/1.1 "
"60.103754","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"60.107232","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._id%2Chits.hits._source.search.kibanaSavedObjectMeta HTTP/1.1  (application/json)"
"60.109602","GET /_cluster/settings?include_defaults=true HTTP/1.1 "
"60.115312","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"60.117121","POST /.kibana/_search?size=1000&ignore_unavailable=true&filter_path=hits.hits._source.visualization.savedSearchRefName%2Chits.hits._source.visualization.kibanaSavedObjectMeta%2Chits.hits._source.references HTTP/1.1  (application/json)"
"60.118027","POST /.reporting-*/_search?rest_total_hits_as_int=true&filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets HTTP/1.1  (application/json)"
"60.123508","GET /_xpack HTTP/1.1 "
"60.133361","POST /_monitoring/bulk?system_id=kibana&system_api_version=6&interval=10000ms HTTP/1.1  (application/x-ndjson)"
"60.175766","GET /_xpack HTTP/1.1 "
"60.206494","HEAD / HTTP/1.1 "
"60.208682","GET /_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip HTTP/1.1 "

extremely rough estimates by application initiator:

  • Monitoring: 50%
    • telemetry: 90%
      • divided evenly between every application
    • other (bulk upload related fetches)
  • Health check: 17%
  • Reporting: 12.5%
  • Task manager: 10%
  • License check: 2%

This is an overview and meta issue to track high and low level improvements.

High level

Low level

@jbudz jbudz added WIP Work in progress Team:Operations Team label for Operations Team labels Mar 4, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations

@jinmu03 jinmu03 added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Mar 7, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@jinmu03
Copy link
Contributor

jinmu03 commented Mar 7, 2019

@jbudz jbudz added discuss and removed WIP Work in progress labels Mar 7, 2019
@jbudz
Copy link
Member Author

jbudz commented Mar 7, 2019

@pmoust i'm struggling to come up with a target heuristic for number of request, open connections, data transfer, etc. we depend on polling in some areas, it'll be a balance between functionality and dev time the lower we need to go. do you have any thoughts on how far we need to take this?

@tsullivan
Copy link
Member

tsullivan commented Mar 8, 2019

come up with a target heuristic for number of request, open connections, data transfer, etc. we depend on polling in some ar

Given that Kibana goes through a huge number of operation at init time, and we want to make sure those happen smoothly, would it make more sense to think about heuristics on a time scale? Example:

  • 10 seconds from startup: avoid ANY remote polling. This is where Kibana does self-checks on the installation (7.0 example: check if optimization is needed)
  • 30 seconds from startup: as many as 1 request every 3s is ok
  • 1 minute from startup: 1 requests every 5s * the number of installed plugins
  • 2 minutes from startup: 2 requests every 5s * the number of enabled plugins

BTW these are NOT real-world suggestions and probably way off.

I'd be really interested to see what a graph of startup looks like today, and think about how Kibana can throttle when its desirable to.

WDYT?

@tylersmalley tylersmalley changed the title Server background polling Investigate server background polling Mar 8, 2019
@jinmu03
Copy link
Contributor

jinmu03 commented Mar 11, 2019

@timroes @tsullivan Who will be taking care of the Reporting?

@tsullivan
Copy link
Member

@jinmu03 rewriting the reporting polling to use Task Manager is on the Reporting roadmap for 7.x

@cjcenizal
Copy link
Contributor

License check: can this be checked once on startup?

The license check is used to determine license status, e.g. whether it's expired or not. If we remove the poll-based license check, we'll need to lazily refresh license info whenever a license-restricted API endpoint is hit. We can optimize this by throttling the refresh, so we're not adding latency to every request.

The @elastic/es-ui team has created a generic license-checker (#30299). Once X-Pack apps have migrated to using this system, we can incorporate this refresh logic into the system to block access to restricted APIs once the license expires or changes.

However, this doesn't address blocking the user from accessing restricted UIs. We would probably need to update the client to poll the server and refresh the license info regularly (e.g. 1x a day).

@jbudz
Copy link
Member Author

jbudz commented Mar 18, 2019

@tsullivan is there an issue tracking reporting/task manager integration?

@tsullivan
Copy link
Member

tsullivan commented Mar 19, 2019

@jbudz it is in our roadmap spreadsheet, but there isn't an issue on it yet. It's something we are looking to do for 7.3

@jbudz
Copy link
Member Author

jbudz commented Jul 11, 2019

Remaining tasks have their own issues open, closing this out for now.

@jbudz jbudz closed this as completed Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Telemetry Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Operations Team label for Operations Team
Projects
None yet
Development

No branches or pull requests

6 participants