├── .flake8 ├── .github └── workflows │ ├── pythonapp.yml │ └── pythonrelease.yml ├── .gitignore ├── CHANGELOG.txt ├── LICENSE.txt ├── Makefile ├── README.md ├── docs ├── _config.yml ├── commands.md ├── contrib.md └── index.md ├── pysper ├── .gitignore ├── .pylintrc ├── __init__.py ├── bgrep.py ├── changelog.py ├── commands │ ├── __init__.py │ ├── core │ │ ├── __init__.py │ │ ├── bgrep.py │ │ ├── diag.py │ │ ├── gc.py │ │ ├── jarcheck.py │ │ ├── schema.py │ │ ├── slowquery.py │ │ └── statuslogger.py │ ├── flags.py │ ├── search │ │ ├── __init__.py │ │ ├── filtercache.py │ │ └── queryscore.py │ ├── sperf.py │ ├── sperf_default.py │ ├── sysbottle.py │ ├── ttop.py │ └── version.py ├── core │ ├── __init__.py │ ├── diag │ │ ├── __init__.py │ │ ├── config_diff.py │ │ ├── node_env.py │ │ ├── read_ahead.py │ │ ├── reporter.py │ │ └── table_stats.py │ ├── gcinspector.py │ ├── schema.py │ ├── slowquery.py │ └── statuslogger.py ├── dates.py ├── diag.py ├── env.py ├── humanize.py ├── jarcheck.py ├── parser │ ├── __init__.py │ ├── block_dev.py │ ├── captures.py │ ├── cases.py │ ├── cfstats.py │ ├── gc.py │ ├── outputlog.py │ ├── rules.py │ └── systemlog.py ├── perc.py ├── recs.py ├── search │ ├── __init__.py │ ├── filtercache.py │ └── queryscore.py ├── sperf_default.py ├── sysbottle.py ├── ttop.py └── util.py ├── requirements_dev.txt ├── scripts ├── doc.py ├── sperf └── update_change.py ├── setup.py ├── tests ├── __init__.py ├── commands │ ├── __init__.py │ ├── core │ │ ├── __init__.py │ │ ├── test_gc.py │ │ ├── test_jarcheck.py │ │ ├── test_schema.py │ │ └── test_statuslogger.py │ ├── test_sperf.py │ └── test_sysbottle.py ├── core │ ├── __init__.py │ ├── diag │ │ ├── __init__.py │ │ ├── test_config_diff.py │ │ ├── test_node_env.py │ │ ├── test_read_ahead.py │ │ ├── test_reporter.py │ │ └── test_table_stats.py │ ├── test_gc.py │ ├── test_schema.py │ ├── test_slowquery.py │ └── test_statuslogger.py ├── parser │ ├── __init__.py │ ├── test_block_dev.py │ ├── test_cfstats.py │ ├── test_outputlog.py │ └── test_systemlog.py ├── search │ ├── __init__.py │ ├── test_filtercache.py │ └── test_queryscore.py ├── test_bgrep.py ├── test_dates.py ├── test_diag.py ├── test_humanize.py ├── test_jarcheck.py ├── test_parser.py ├── test_recs.py ├── test_schema.py ├── test_slowquery.py ├── test_sperf_default.py ├── test_statuslogger.py ├── test_sysbottle.py ├── test_ttop.py ├── test_util.py └── testdata │ ├── busy-iostat │ ├── cassandra21 │ └── system.log │ ├── cassandra22 │ └── system.log │ ├── cassandra30 │ └── system.log │ ├── cassandra311 │ └── system.log │ ├── diag │ ├── DSE_CLUSTER │ │ ├── nodes │ │ │ ├── 10.101.33.205 │ │ │ │ ├── agent-metrics.json │ │ │ │ ├── agent_version.json │ │ │ │ ├── blockdev_report │ │ │ │ ├── conf │ │ │ │ │ ├── agent │ │ │ │ │ │ ├── address.yaml │ │ │ │ │ │ └── log4j.properties │ │ │ │ │ ├── cassandra │ │ │ │ │ │ ├── cassandra-env.sh │ │ │ │ │ │ ├── cassandra.yaml │ │ │ │ │ │ └── commitlog_archiving.properties │ │ │ │ │ ├── dse │ │ │ │ │ │ ├── dse │ │ │ │ │ │ ├── dse.yaml │ │ │ │ │ │ ├── jvm.options │ │ │ │ │ │ ├── logback-no-op.xml │ │ │ │ │ │ ├── logback-tools.xml │ │ │ │ │ │ └── logback.xml │ │ │ │ │ ├── location.json │ │ │ │ │ ├── solr │ │ │ │ │ │ └── my_solr.my_table │ │ │ │ │ │ │ ├── schema.xml │ │ │ │ │ │ │ └── solrconfig.xml │ │ │ │ │ └── system │ │ │ │ │ │ └── hosts │ │ │ │ ├── driver │ │ │ │ │ ├── metadata │ │ │ │ │ └── schema │ │ │ │ ├── dsetool │ │ │ │ │ ├── listjt │ │ │ │ │ ├── ring │ │ │ │ │ └── sparkmaster │ │ │ │ ├── java_heap.json │ │ │ │ ├── java_system_properties.json │ │ │ │ ├── logs │ │ │ │ │ ├── cassandra │ │ │ │ │ │ ├── debug.log │ │ │ │ │ │ ├── gremlin.log │ │ │ │ │ │ ├── output.log │ │ │ │ │ │ └── system.log │ │ │ │ │ ├── opsagent │ │ │ │ │ │ └── agent.log │ │ │ │ │ └── solr │ │ │ │ │ │ └── tomcat │ │ │ │ │ │ └── catalina.2020-01-10.log │ │ │ │ ├── machine-info.json │ │ │ │ ├── nodetool │ │ │ │ │ ├── cfstats │ │ │ │ │ ├── compactionhistory │ │ │ │ │ ├── compactionstats │ │ │ │ │ ├── describecluster │ │ │ │ │ ├── getcompactionthroughput │ │ │ │ │ ├── getstreamthroughput │ │ │ │ │ ├── gossipinfo │ │ │ │ │ ├── info │ │ │ │ │ ├── netstats │ │ │ │ │ ├── proxyhistograms │ │ │ │ │ ├── ring │ │ │ │ │ ├── status │ │ │ │ │ ├── statusbinary │ │ │ │ │ ├── tpstats │ │ │ │ │ └── version │ │ │ │ ├── ntp │ │ │ │ │ ├── ntpstat │ │ │ │ │ └── ntptime │ │ │ │ ├── os-info.json │ │ │ │ ├── os-metrics │ │ │ │ │ ├── cpu.json │ │ │ │ │ ├── disk.json │ │ │ │ │ ├── disk_space.json │ │ │ │ │ ├── load_avg.json │ │ │ │ │ └── memory.json │ │ │ │ ├── process_limits │ │ │ │ └── solr │ │ │ │ │ └── index_size.json │ │ │ ├── 10.101.35.102 │ │ │ │ ├── agent-metrics.json │ │ │ │ ├── agent_version.json │ │ │ │ ├── blockdev_report │ │ │ │ ├── conf │ │ │ │ │ ├── agent │ │ │ │ │ │ ├── address.yaml │ │ │ │ │ │ └── log4j.properties │ │ │ │ │ ├── cassandra │ │ │ │ │ │ ├── cassandra-env.sh │ │ │ │ │ │ ├── cassandra.yaml │ │ │ │ │ │ └── commitlog_archiving.properties │ │ │ │ │ ├── dse │ │ │ │ │ │ ├── dse │ │ │ │ │ │ ├── dse.yaml │ │ │ │ │ │ ├── jvm.options │ │ │ │ │ │ ├── logback-no-op.xml │ │ │ │ │ │ ├── logback-tools.xml │ │ │ │ │ │ └── logback.xml │ │ │ │ │ ├── location.json │ │ │ │ │ ├── solr │ │ │ │ │ │ └── my_solr.my_table │ │ │ │ │ │ │ ├── schema.xml │ │ │ │ │ │ │ └── solrconfig.xml │ │ │ │ │ └── system │ │ │ │ │ │ └── hosts │ │ │ │ ├── driver │ │ │ │ │ ├── metadata │ │ │ │ │ └── schema │ │ │ │ ├── dsetool │ │ │ │ │ ├── listjt │ │ │ │ │ ├── ring │ │ │ │ │ └── sparkmaster │ │ │ │ ├── java_heap.json │ │ │ │ ├── java_system_properties.json │ │ │ │ ├── logs │ │ │ │ │ ├── cassandra │ │ │ │ │ │ ├── debug.log │ │ │ │ │ │ ├── gremlin.log │ │ │ │ │ │ ├── output.log │ │ │ │ │ │ └── system.log │ │ │ │ │ ├── opsagent │ │ │ │ │ │ └── agent.log │ │ │ │ │ └── solr │ │ │ │ │ │ └── tomcat │ │ │ │ │ │ └── catalina.2020-01-10.log │ │ │ │ ├── machine-info.json │ │ │ │ ├── nodetool │ │ │ │ │ ├── cfstats │ │ │ │ │ ├── compactionhistory │ │ │ │ │ ├── compactionstats │ │ │ │ │ ├── describecluster │ │ │ │ │ ├── getcompactionthroughput │ │ │ │ │ ├── getstreamthroughput │ │ │ │ │ ├── gossipinfo │ │ │ │ │ ├── info │ │ │ │ │ ├── netstats │ │ │ │ │ ├── proxyhistograms │ │ │ │ │ ├── ring │ │ │ │ │ ├── status │ │ │ │ │ ├── statusbinary │ │ │ │ │ ├── tpstats │ │ │ │ │ └── version │ │ │ │ ├── ntp │ │ │ │ │ ├── ntpstat │ │ │ │ │ └── ntptime │ │ │ │ ├── os-info.json │ │ │ │ ├── os-metrics │ │ │ │ │ ├── cpu.json │ │ │ │ │ ├── disk.json │ │ │ │ │ ├── disk_space.json │ │ │ │ │ ├── load_avg.json │ │ │ │ │ └── memory.json │ │ │ │ ├── process_limits │ │ │ │ └── solr │ │ │ │ │ └── index_size.json │ │ │ └── 10.101.35.71 │ │ │ │ ├── agent-metrics.json │ │ │ │ ├── agent_version.json │ │ │ │ ├── blockdev_report │ │ │ │ ├── conf │ │ │ │ ├── agent │ │ │ │ │ ├── address.yaml │ │ │ │ │ └── log4j.properties │ │ │ │ ├── cassandra │ │ │ │ │ ├── cassandra-env.sh │ │ │ │ │ ├── cassandra.yaml │ │ │ │ │ └── commitlog_archiving.properties │ │ │ │ ├── dse │ │ │ │ │ ├── dse │ │ │ │ │ ├── dse.yaml │ │ │ │ │ ├── jvm.options │ │ │ │ │ ├── logback-no-op.xml │ │ │ │ │ ├── logback-tools.xml │ │ │ │ │ └── logback.xml │ │ │ │ ├── location.json │ │ │ │ ├── solr │ │ │ │ │ └── my_solr.my_table │ │ │ │ │ │ ├── schema.xml │ │ │ │ │ │ └── solrconfig.xml │ │ │ │ └── system │ │ │ │ │ └── hosts │ │ │ │ ├── driver │ │ │ │ ├── metadata │ │ │ │ └── schema │ │ │ │ ├── dsetool │ │ │ │ ├── listjt │ │ │ │ ├── ring │ │ │ │ └── sparkmaster │ │ │ │ ├── java_heap.json │ │ │ │ ├── java_system_properties.json │ │ │ │ ├── logs │ │ │ │ ├── cassandra │ │ │ │ │ ├── debug.log │ │ │ │ │ ├── gremlin.log │ │ │ │ │ ├── output.log │ │ │ │ │ └── system.log │ │ │ │ ├── opsagent │ │ │ │ │ └── agent.log │ │ │ │ └── solr │ │ │ │ │ └── tomcat │ │ │ │ │ └── catalina.2020-01-10.log │ │ │ │ ├── machine-info.json │ │ │ │ ├── nodetool │ │ │ │ ├── cfstats │ │ │ │ ├── compactionhistory │ │ │ │ ├── compactionstats │ │ │ │ ├── describecluster │ │ │ │ ├── getcompactionthroughput │ │ │ │ ├── getstreamthroughput │ │ │ │ ├── gossipinfo │ │ │ │ ├── info │ │ │ │ ├── netstats │ │ │ │ ├── proxyhistograms │ │ │ │ ├── ring │ │ │ │ ├── status │ │ │ │ ├── statusbinary │ │ │ │ ├── tpstats │ │ │ │ └── version │ │ │ │ ├── ntp │ │ │ │ ├── ntpstat │ │ │ │ └── ntptime │ │ │ │ ├── os-info.json │ │ │ │ ├── os-metrics │ │ │ │ ├── cpu.json │ │ │ │ ├── disk.json │ │ │ │ ├── disk_space.json │ │ │ │ ├── load_avg.json │ │ │ │ └── memory.json │ │ │ │ ├── process_limits │ │ │ │ └── solr │ │ │ │ └── index_size.json │ │ └── opscenterd │ │ │ ├── agent_requests.json │ │ │ ├── agent_status.json │ │ │ ├── best_practice_rules.json │ │ │ ├── clusters │ │ │ └── Sperf_Cluster.conf │ │ │ ├── conf.json │ │ │ ├── gc.log.0.current │ │ │ ├── http_logs │ │ │ └── http.log │ │ │ ├── logback.xml │ │ │ ├── node_info.json │ │ │ ├── opscenterd_logs │ │ │ └── opscenterd.log │ │ │ └── repair_service_logs │ │ │ └── Sperf_Cluster.log │ ├── cassandra │ │ └── nodes │ │ │ ├── 10.101.34.191 │ │ │ ├── conf │ │ │ │ └── cassandra │ │ │ │ │ ├── cassandra-env.sh │ │ │ │ │ ├── cassandra-rackdc.properties │ │ │ │ │ ├── cassandra.yaml │ │ │ │ │ ├── logback-tools.xml │ │ │ │ │ └── logback.xml │ │ │ ├── driver │ │ │ │ ├── full-schema │ │ │ │ ├── metadata │ │ │ │ └── schema │ │ │ ├── java_cmdline │ │ │ ├── java_command_line.txt │ │ │ ├── java_system_properties.txt │ │ │ ├── jmx_dump.json │ │ │ ├── logs │ │ │ │ └── cassandra │ │ │ │ │ └── system.log │ │ │ ├── nodetool │ │ │ │ ├── cfhistograms │ │ │ │ ├── cfstats │ │ │ │ ├── compactionhistory │ │ │ │ ├── compactionstats │ │ │ │ ├── describecluster │ │ │ │ ├── getcompactionthroughput │ │ │ │ ├── getstreamthroughput │ │ │ │ ├── gossipinfo │ │ │ │ ├── info │ │ │ │ ├── netstats │ │ │ │ ├── proxyhistograms │ │ │ │ ├── ring │ │ │ │ ├── status │ │ │ │ ├── statusbinary │ │ │ │ ├── tablestats.json │ │ │ │ ├── tpstats │ │ │ │ ├── tpstats.json │ │ │ │ └── version │ │ │ ├── ntp │ │ │ │ ├── ntpstat │ │ │ │ └── ntptime │ │ │ ├── os-info.txt │ │ │ ├── os-metrics │ │ │ │ ├── blockdev_report │ │ │ │ ├── cpu.txt │ │ │ │ ├── df │ │ │ │ ├── disk_config.txt │ │ │ │ ├── disk_device.txt │ │ │ │ ├── free │ │ │ │ ├── hugepage_defrag │ │ │ │ ├── iostat │ │ │ │ ├── lscpu │ │ │ │ ├── memory.txt │ │ │ │ ├── sysctl │ │ │ │ ├── wmstat-disk │ │ │ │ ├── wmstat-mem │ │ │ │ └── wmstat-stat │ │ │ └── process_limits │ │ │ ├── 10.101.34.223 │ │ │ ├── conf │ │ │ │ └── cassandra │ │ │ │ │ ├── cassandra-env.sh │ │ │ │ │ ├── cassandra-rackdc.properties │ │ │ │ │ ├── cassandra.yaml │ │ │ │ │ ├── logback-tools.xml │ │ │ │ │ └── logback.xml │ │ │ ├── driver │ │ │ │ ├── full-schema │ │ │ │ ├── metadata │ │ │ │ └── schema │ │ │ ├── java_cmdline │ │ │ ├── java_command_line.txt │ │ │ ├── java_system_properties.txt │ │ │ ├── jmx_dump.json │ │ │ ├── logs │ │ │ │ └── cassandra │ │ │ │ │ └── system.log │ │ │ ├── nodetool │ │ │ │ ├── cfhistograms │ │ │ │ ├── cfstats │ │ │ │ ├── compactionhistory │ │ │ │ ├── compactionstats │ │ │ │ ├── describecluster │ │ │ │ ├── getcompactionthroughput │ │ │ │ ├── getstreamthroughput │ │ │ │ ├── gossipinfo │ │ │ │ ├── info │ │ │ │ ├── netstats │ │ │ │ ├── proxyhistograms │ │ │ │ ├── ring │ │ │ │ ├── status │ │ │ │ ├── statusbinary │ │ │ │ ├── tablestats.json │ │ │ │ ├── tpstats │ │ │ │ ├── tpstats.json │ │ │ │ └── version │ │ │ ├── ntp │ │ │ │ ├── ntpstat │ │ │ │ └── ntptime │ │ │ ├── os-info.txt │ │ │ ├── os-metrics │ │ │ │ ├── blockdev_report │ │ │ │ ├── cpu.txt │ │ │ │ ├── df │ │ │ │ ├── disk_config.txt │ │ │ │ ├── disk_device.txt │ │ │ │ ├── free │ │ │ │ ├── hugepage_defrag │ │ │ │ ├── iostat │ │ │ │ ├── lscpu │ │ │ │ ├── memory.txt │ │ │ │ ├── sysctl │ │ │ │ ├── wmstat-disk │ │ │ │ ├── wmstat-mem │ │ │ │ └── wmstat-stat │ │ │ └── process_limits │ │ │ └── 10.101.35.67 │ │ │ ├── conf │ │ │ └── cassandra │ │ │ │ ├── cassandra-env.sh │ │ │ │ ├── cassandra-rackdc.properties │ │ │ │ ├── cassandra.yaml │ │ │ │ ├── logback-tools.xml │ │ │ │ └── logback.xml │ │ │ ├── driver │ │ │ ├── full-schema │ │ │ ├── metadata │ │ │ └── schema │ │ │ ├── java_cmdline │ │ │ ├── java_command_line.txt │ │ │ ├── java_system_properties.txt │ │ │ ├── jmx_dump.json │ │ │ ├── logs │ │ │ └── cassandra │ │ │ │ └── system.log │ │ │ ├── nodetool │ │ │ ├── cfhistograms │ │ │ ├── cfstats │ │ │ ├── compactionhistory │ │ │ ├── compactionstats │ │ │ ├── describecluster │ │ │ ├── getcompactionthroughput │ │ │ ├── getstreamthroughput │ │ │ ├── gossipinfo │ │ │ ├── info │ │ │ ├── netstats │ │ │ ├── proxyhistograms │ │ │ ├── ring │ │ │ ├── status │ │ │ ├── statusbinary │ │ │ ├── tablestats.json │ │ │ ├── tpstats │ │ │ ├── tpstats.json │ │ │ └── version │ │ │ ├── ntp │ │ │ ├── ntpstat │ │ │ └── ntptime │ │ │ ├── os-info.txt │ │ │ ├── os-metrics │ │ │ ├── blockdev_report │ │ │ ├── cpu.txt │ │ │ ├── df │ │ │ ├── disk_config.txt │ │ │ ├── disk_device.txt │ │ │ ├── free │ │ │ ├── hugepage_defrag │ │ │ ├── iostat │ │ │ ├── lscpu │ │ │ ├── memory.txt │ │ │ ├── sysctl │ │ │ ├── wmstat-disk │ │ │ ├── wmstat-mem │ │ │ └── wmstat-stat │ │ │ └── process_limits │ ├── empty │ │ └── nodes │ │ │ ├── node1 │ │ │ └── .gitkeep │ │ │ ├── node2 │ │ │ └── .gitkeep │ │ │ └── node3 │ │ │ └── .gitkeep │ ├── findfiles │ │ └── nodes │ │ │ ├── node1 │ │ │ ├── debug.log │ │ │ ├── my.log │ │ │ ├── my.log.1 │ │ │ └── my.log.2 │ │ │ └── node2 │ │ │ ├── debug.log │ │ │ └── my.log │ └── missing │ │ ├── nodes │ │ ├── node1 │ │ │ ├── blockdev_report │ │ │ ├── logs │ │ │ │ └── cassandra │ │ │ │ │ ├── output.log │ │ │ │ │ └── system.log │ │ │ └── nodetool │ │ │ │ └── cfstats │ │ └── node2 │ │ │ └── .gitkeep │ │ └── opscenterd │ │ └── node_info.json │ ├── dse68 │ └── nodes │ │ └── 172.17.0.2 │ │ ├── conf │ │ ├── cassandra │ │ │ ├── cassandra-env.sh │ │ │ ├── cassandra-rackdc.properties │ │ │ ├── cassandra.yaml │ │ │ ├── jvm-clients.options │ │ │ ├── jvm-server.options │ │ │ ├── jvm11-clients.options │ │ │ ├── jvm11-server.options │ │ │ ├── jvm8-clients.options │ │ │ ├── jvm8-server.options │ │ │ ├── logback-tools.xml │ │ │ └── logback.xml │ │ └── dse │ │ │ └── dse.yaml │ │ ├── debian_version │ │ ├── driver │ │ ├── full-schema │ │ ├── metadata │ │ └── schema │ │ ├── dsetool │ │ ├── insights_config │ │ ├── insights_filters │ │ ├── ring │ │ ├── slowest_queries │ │ └── status │ │ ├── java_cmdline │ │ ├── java_command_line.txt │ │ ├── java_system_properties.txt │ │ ├── java_version.txt │ │ ├── jmx_dump.json │ │ ├── logs │ │ └── cassandra │ │ │ ├── audit │ │ │ ├── audit.log │ │ │ └── dropped-events.log │ │ │ ├── debug.log │ │ │ ├── dse-collectd.log │ │ │ ├── dse-collectd.pid │ │ │ ├── gc.log.0.current │ │ │ ├── gremlin.log │ │ │ └── system.log │ │ ├── nodetool │ │ ├── cfhistograms │ │ ├── cfstats │ │ ├── compactionhistory │ │ ├── compactionstats │ │ ├── describecluster │ │ ├── getcompactionthroughput │ │ ├── getstreamthroughput │ │ ├── gossipinfo │ │ ├── info │ │ ├── netstats │ │ ├── nodesyncrate │ │ ├── proxyhistograms │ │ ├── ring │ │ ├── status │ │ ├── statusbinary │ │ ├── tpstats │ │ └── version │ │ ├── os-info.txt │ │ ├── os-metrics │ │ ├── clocksource │ │ ├── cloud_info │ │ ├── cpu.txt │ │ ├── cpuinfo │ │ ├── df │ │ ├── disk_config.txt │ │ ├── disk_device.txt │ │ ├── disks │ │ │ ├── vda │ │ │ └── vdb │ │ ├── dmesg │ │ ├── free │ │ ├── fstab │ │ ├── hugepage_defrag │ │ ├── hugepage_enabled │ │ ├── interrupts │ │ ├── iostat │ │ ├── limits.conf │ │ ├── lsblk │ │ ├── lsblk_custom │ │ ├── lscpu │ │ ├── meminfo │ │ ├── memory.txt │ │ ├── sar │ │ ├── sysctl │ │ ├── uptime │ │ ├── version_proc │ │ ├── wmstat-disk │ │ ├── wmstat-mem │ │ ├── wmstat-stat │ │ └── zone_reclaim_mode │ │ ├── os-release │ │ └── process_limits │ ├── empty.log │ ├── iostat │ ├── output.log │ ├── sample_table_tarball │ └── nodes │ │ └── 10.1.1.10 │ │ └── logs │ │ └── cassandra │ │ ├── debug.log │ │ └── system.log │ ├── simple-output.log │ ├── simple-output2.log │ ├── simple.log │ ├── statuslogger68_debug.log │ ├── statuslogger_68.log │ ├── statuslogger_new.log │ ├── statusloggernew_debug.log │ ├── traceback.log │ └── ttop-cpu.out └── tox.ini /.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 88 3 | select = C,E,F,W,B,B950 4 | ignore = E203, E501, W503 5 | -------------------------------------------------------------------------------- /.github/workflows/pythonapp.yml: -------------------------------------------------------------------------------- 1 | # This workflow will install Python dependencies, run tests and lint with a single version of Python 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions 3 | 4 | name: Python application 5 | 6 | on: [push, pull_request] 7 | 8 | jobs: 9 | lint: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v2 13 | - name: Set up Python 14 | uses: actions/setup-python@v2 15 | with: 16 | python-version: 3.9 17 | - uses: psf/black@stable 18 | - name: Install flake8 19 | shell: bash 20 | run: | 21 | python -m pip install --upgrade pip 22 | pip install flake8 23 | - name: Run flake8 24 | shell: bash 25 | run: | 26 | flake8 pysper tests 27 | 28 | build: 29 | runs-on: ${{ matrix.os }} 30 | strategy: 31 | matrix: 32 | os: [ ubuntu-latest, macos-latest, windows-latest ] 33 | python: [3.7, 3.8, 3.9] 34 | steps: 35 | - uses: actions/checkout@v2 36 | - name: Set up Python 37 | uses: actions/setup-python@v2 38 | with: 39 | python-version: ${{ matrix.python }} 40 | - name: Install dependencies 41 | shell: bash 42 | run: | 43 | python -m pip install --upgrade pip 44 | if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi 45 | - name: Run tests 46 | shell: bash 47 | run: make test 48 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | *.swp 3 | *~ 4 | vendor/ 5 | coverage/ 6 | *.code-workspace 7 | .vscode/ 8 | #*# 9 | .DS_Store 10 | ./venv 11 | venv 12 | *.pyc 13 | .coverage 14 | cov.html 15 | .pytest_cache 16 | *.spec 17 | 18 | # os markers 19 | *.plist 20 | 21 | #pyenv 22 | .python-version 23 | 24 | #tox 25 | .tox 26 | 27 | #setup 28 | .eggs 29 | *.egg-info 30 | build/ 31 | __pycache__ 32 | dist 33 | sperf.spec 34 | sperf.build 35 | 36 | .vagrant 37 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | 2 | 3 | .PHONY: all 4 | all: clean update_change lint cov build 5 | #do it all 6 | 7 | ifeq ($(OS),Windows_NT) 8 | exec_name := sperf.exe 9 | del_exec := rmdir /Q /S 10 | test_dir := .\\tests 11 | pysper_dir := .\\pysper 12 | sperf_script := .\\scripts\sperf 13 | sperf_zip := .\\dist\\sperf-Windows 14 | sperf_exe := .\\dist\sperf.exe 15 | update_change := .\\scripts\\update_change.py 16 | else 17 | del_exec := rm -fr 18 | test_dir := ./tests 19 | pysper_dir := ./pysper 20 | sperf_script := ./scripts/sperf 21 | sperf_zip := ./dist/sperf-$(shell sh -c 'uname 2>/dev/null || echo Unknown') 22 | sperf_exe := ./dist/sperf 23 | update_change := ./scripts/update_change.py 24 | endif 25 | 26 | .PHONY: update_change 27 | update_change: 28 | $(update_change) 29 | 30 | .PHONY: clean 31 | clean: 32 | $(del_exec) build 33 | $(del_exec) dist 34 | 35 | .PHONY: build 36 | build: 37 | pyinstaller -F $(sperf_script) 38 | 7z a -tzip $(sperf_zip) $(sperf_exe) -mx0 39 | 40 | .PHONY: cov 41 | cov: 42 | pytest --cov=$(pysper_dir) --cov-fail-under=70 $(tests_dir) 43 | 44 | .PHONY: test 45 | test: 46 | coverage run -m unittest discover $(tests_dir) 47 | coverage report 48 | 49 | .PHONY: lint 50 | lint: 51 | black . 52 | flake8 $(pysper_dir) $(tests_dir) 53 | 54 | .PHONY: setup 55 | setuppy: 56 | env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.9.6 57 | pyenv local 3.9.6 58 | python -m venv venv 59 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # sperf diagnostic tooling 2 | 3 | [User documentation](https://datastax-labs.github.io/sperf/) 4 | 5 | ![Python application](https://github.com/datastax-labs/sperf/workflows/Python%20application/badge.svg) 6 | 7 | `sperf` is a command line tool that can analyze clusters and hardware performance to help diagnose performance problems with [DataStax Enterprise](https://www.datastax.com/products/datastax-enterprise) and [Apache Cassandra™](http://cassandra.apache.org/). Originally an internal only project is has been opened sourced under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0.html) and a new public repository was created. 8 | 9 | # Development 10 | 11 | Find the docs on [How to Contribute here](https://datastax-labs.github.io/sperf/contrib.html) 12 | 13 | # Contributors to closed source sperf 14 | 15 | * Brandon Williams (driftx) - rewrite from Go to Python, primary author of gc, statuslogger, sysbottle, jarcheck, bgrep, ttop, and slowquery 16 | * Ryan Svihla (foundev) - original project author, Apache Solr™ tooling, diag and default command 17 | * Nate Sanders (Nate75Sanders) - 1 commit but it was a good bug fix 18 | 19 | # License 20 | 21 | © DataStax, Inc. 22 | 23 | Licensed under the Apache License, Version 2.0 (the "License"); 24 | you may not use this file except in compliance with the License. 25 | You may obtain a copy of the License at 26 | 27 | http://www.apache.org/licenses/LICENSE-2.0 28 | 29 | Unless required by applicable law or agreed to in writing, software 30 | distributed under the License is distributed on an "AS IS" BASIS, 31 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 32 | See the License for the specific language governing permissions and 33 | limitations under the License. 34 | 35 | ---- 36 | 37 | DataStax is a registered trademark of DataStax, Inc. and its subsidiaries in the United States 38 | and/or other countries. 39 | 40 | Apache Cassandra, Apache, Tomcat, Lucene, Solr, Hadoop, Spark, TinkerPop, and Cassandra are 41 | trademarks of the [Apache Software Foundation](http://www.apache.org/) or its subsidiaries in 42 | Canada, the United States and/or other countries. 43 | -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-hacker 2 | encoding: UTF-8 3 | -------------------------------------------------------------------------------- /pysper/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | venv/ 3 | .tox 4 | .eggs 5 | *.egg-info 6 | build/ 7 | __pycache__ 8 | dist 9 | *.pyc 10 | sperf.spec 11 | -------------------------------------------------------------------------------- /pysper/.pylintrc: -------------------------------------------------------------------------------- 1 | [FORMAT] 2 | max-line-length=120 3 | 4 | [MESSAGES CONTROL] 5 | disable=C0103, 6 | R0201, 7 | R0902, 8 | R0903, 9 | 10 | [SIMILARITIES] 11 | ignore-docstrings=no 12 | -------------------------------------------------------------------------------- /pysper/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | """top level module for sperf python port""" 15 | VERSION = "0.6.16" 16 | -------------------------------------------------------------------------------- /pysper/commands/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /pysper/commands/core/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """core subcommands package. Includes also the parent core command which provides an entry point to the 16 | cassandra/DSE core specific subcommands 17 | """ 18 | from pysper.commands.core import ( 19 | bgrep, 20 | diag, 21 | gc, 22 | jarcheck, 23 | schema, 24 | slowquery, 25 | statuslogger, 26 | ) 27 | from pysper import env 28 | 29 | 30 | def build(subparsers): 31 | """build up subcommands""" 32 | help_text = "Cassandra and DSE Core specific sub-commands" 33 | cass_parser = subparsers.add_parser("core", help=help_text) 34 | 35 | def run(args): 36 | if env.DEBUG: 37 | print(args) 38 | cass_parser.print_help() 39 | 40 | cass_parser.set_defaults(func=run) 41 | cass_sub = cass_parser.add_subparsers(title="DSE Core/Cassandra Commands") 42 | bgrep.build(cass_sub) 43 | diag.build(cass_sub) 44 | gc.build(cass_sub) 45 | jarcheck.build(cass_sub) 46 | schema.build(cass_sub) 47 | slowquery.build(cass_sub) 48 | statuslogger.build(cass_sub) 49 | -------------------------------------------------------------------------------- /pysper/commands/core/jarcheck.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """jarcheck wiring""" 16 | from pysper import jarcheck, VERSION 17 | from pysper.commands import flags 18 | 19 | 20 | def build(subparsers): 21 | """add jarcheck flags""" 22 | jarcheck_parser = subparsers.add_parser( 23 | "jarcheck", 24 | help="Checks jar versions in output.logs. " 25 | + "Supports tarballs and files. DSE 5.0-6.8", 26 | formatter_class=flags.LineWrapRawTextHelpFormatter, 27 | ) 28 | jarcheck_parser.set_defaults(func=run) 29 | flags.files_and_diag(jarcheck_parser) 30 | jarcheck_parser.add_argument( 31 | "-o", 32 | "--diffonly", 33 | dest="diff_only", 34 | action="store_true", 35 | help="only report on the jars that are different", 36 | ) 37 | 38 | 39 | def run(args): 40 | """subcommand that is launched when 'sperf jarcheck' is called""" 41 | print("sperf jarcheck: %s\n" % VERSION) 42 | files = None 43 | if args.files: 44 | files = args.files.split(",") 45 | parser = jarcheck.JarCheckParser(args.diag_dir, files) 46 | parser.analyze() 47 | parser.print_report(args.diff_only) 48 | -------------------------------------------------------------------------------- /pysper/commands/core/schema.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """schema subcommand builder""" 16 | from pysper import diag, env, VERSION 17 | from pysper.core import schema 18 | from pysper.commands import flags 19 | 20 | 21 | def add_flags(subparsers, run_default_func): 22 | """for code sharing between deprecated and supported commands""" 23 | help_text = "Analyze schema for summary. DSE 5.0-6.8" 24 | schema_parser = subparsers.add_parser( 25 | "schema", help=help_text, formatter_class=flags.LineWrapRawTextHelpFormatter 26 | ) 27 | flags.files_and_diag(schema_parser) 28 | schema_parser.set_defaults(func=run_default_func) 29 | 30 | 31 | def build(subparsers): 32 | """adds flags to schema cmd""" 33 | add_flags(subparsers, run) 34 | 35 | 36 | def run(args): 37 | """run is the entrypoint for the sperf schema command""" 38 | run_func(args, "sperf core schema") 39 | 40 | 41 | def run_func(args, cmd_name): 42 | """for code sharing with deprecated schema""" 43 | print("%s version: %s\n" % (cmd_name, VERSION)) 44 | config = schema.Config(args.files, args.diag_dir) 45 | # do not match on files with schema prefix only on files with schema 46 | files = diag.find_files(config, "schema", exact_filename=True) 47 | if env.DEBUG: 48 | print("found schema files: %s", files) 49 | parsed_schema = schema.read(files) 50 | print(schema.generate_report(parsed_schema)) 51 | -------------------------------------------------------------------------------- /pysper/commands/flags.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """flags provides flag helpers for argparse""" 16 | import argparse 17 | import textwrap as _textwrap 18 | 19 | 20 | def add_diagdir(parser): 21 | """since it's so common to have a diagdir flag for the tooling 22 | we've added it here to make it simpler to add""" 23 | parser.add_argument( 24 | "-d", 25 | "--diagdir", 26 | dest="diag_dir", 27 | default=".", 28 | help=" where the diag tarball directory is exported, " 29 | + 'should be where the nodes folder is located (default ".")', 30 | ) 31 | 32 | 33 | def add_files(parser): 34 | """since it's so common to have a files flag for the tooling 35 | we've added it here to make it simpler to add""" 36 | parser.add_argument( 37 | "-f", 38 | "--files", 39 | dest="files", 40 | help="comma separated file list to compare. Alternative to --diagdir", 41 | ) 42 | 43 | 44 | def files_and_diag(parser): 45 | """addes --diag_dir and --files flags to a given parser""" 46 | add_files(parser) 47 | add_diagdir(parser) 48 | 49 | 50 | class LineWrapRawTextHelpFormatter(argparse.RawDescriptionHelpFormatter): 51 | """hard codes a 120 wide character word wrap""" 52 | 53 | def _split_lines(self, text, width): 54 | text = self._whitespace_matcher.sub(" ", text).strip() 55 | # ignore width parameter passed above and use our own 56 | wrap_width = 120 57 | return _textwrap.wrap(text, wrap_width) 58 | -------------------------------------------------------------------------------- /pysper/commands/search/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """the search subcommand package. It also includes a search parent command, 16 | which provides an entry point to the solr specific subcommands. 17 | """ 18 | from pysper.commands.search import filtercache, queryscore 19 | from pysper import env 20 | 21 | 22 | def build(subparsers): 23 | """builds the subcommands for the search parent command""" 24 | help_text = "Search specific sub-commands" 25 | solr_parser = subparsers.add_parser("search", help=help_text) 26 | 27 | def run(args): 28 | if env.DEBUG: 29 | print(args) 30 | solr_parser.print_help() 31 | 32 | solr_parser.set_defaults(func=run) 33 | solr_sub = solr_parser.add_subparsers(title="Search Commands") 34 | filtercache.build(solr_sub) 35 | queryscore.build(solr_sub) 36 | -------------------------------------------------------------------------------- /pysper/commands/sperf_default.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """sperf bare command that is aimed at new users and provides a general summary 16 | """ 17 | from pysper import env 18 | from pysper import sperf_default 19 | from pysper.commands.core.diag import add_args 20 | 21 | 22 | def build(diag_parser): 23 | """build uses the args from the new command""" 24 | add_args(diag_parser) 25 | 26 | 27 | def run(args): 28 | """launches 'sperf default command'""" 29 | try: 30 | sperf_default.run(args) 31 | except Exception as ex: 32 | if env.DEBUG: 33 | raise ex 34 | print(str(ex)) 35 | print("") 36 | print( 37 | "To show strack trace use the -v flag. For example: 'sperf -v core statuslogger'" 38 | ) 39 | -------------------------------------------------------------------------------- /pysper/commands/version.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """simple version output""" 16 | import sys 17 | from pysper import VERSION 18 | from pysper.changelog import CHANGES 19 | from pysper.commands import flags 20 | 21 | 22 | def build(subparsers): 23 | """setups the version command""" 24 | version_parser = subparsers.add_parser( 25 | "version", 26 | help="list the version of sperf", 27 | formatter_class=flags.LineWrapRawTextHelpFormatter, 28 | ) 29 | version_parser.set_defaults( 30 | func=lambda _: print( 31 | "sperf %s-%s\n\nchangelog:\n%s" % (VERSION, sys.version, CHANGES) 32 | ) 33 | ) 34 | -------------------------------------------------------------------------------- /pysper/env.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """provides global flags""" 16 | 17 | PROGRESS = False 18 | DEBUG = False 19 | IS_US_FMT = True 20 | FILE_ENCODING = "utf-8" 21 | PERMISSIVE_TIME = False 22 | -------------------------------------------------------------------------------- /pysper/parser/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """ pysper parser top level. """ 16 | from pysper.parser import systemlog, outputlog, block_dev 17 | from pysper import env 18 | 19 | 20 | def read_system_log(lines, **extras): 21 | """read the system log, yields an iterable set of events of parsed logs""" 22 | return read_log(lines, systemlog.capture_line, **extras) 23 | 24 | 25 | def read_output_log(lines, **extras): 26 | """read the output log, yields an iterable set of events of parsed logs""" 27 | return read_log(lines, outputlog.capture_line, **extras) 28 | 29 | 30 | def read_block_dev(lines, **extras): 31 | """consumes a block dev report, yields an iterable set of events of parsed logs""" 32 | return read_log(lines, block_dev.capture_line, **extras) 33 | 34 | 35 | def _default_capture(line): 36 | """does nothing interesting but will print out lines if debug is on""" 37 | if env.DEBUG: 38 | print(line) 39 | 40 | 41 | def read_log(lines, capture_line_func=_default_capture, **extras): 42 | """parses an iterable set of lines yielding events""" 43 | fields = None 44 | for line in lines: 45 | next_fields = capture_line_func(line) 46 | if next_fields is not None: 47 | if fields is not None: 48 | fields.update(extras) 49 | yield fields 50 | fields = next_fields 51 | # need to do this one last time to clear out the last update to next_fields 52 | if fields is not None: 53 | yield fields 54 | -------------------------------------------------------------------------------- /pysper/parser/block_dev.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | """parses block dev reports""" 15 | from pysper.parser.rules import capture, convert, default, rule 16 | 17 | capture_line = rule( 18 | capture( 19 | # rw 8 512 4096 0 800166076416 /dev/sdb 20 | r"(?P[a-z]*) +(?P[0-9]*) +(?P[0-9]*) +(?P[0-9]*) *\s(?P[0-9]*) +(?P[0-9]*) +(?P.*)" 21 | ), 22 | convert(int, "ra", "ssz", "blk_sz", "blk_sz", "start_sec", "size"), 23 | default(event_product="unknown", event_category="unknown", event_type="unknown"), 24 | ) 25 | -------------------------------------------------------------------------------- /pysper/parser/gc.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """ parser for systemlog returning gc messages only """ 16 | from pysper.parser.rules import switch, update_message, mkcapture 17 | from pysper.parser.captures import system_capture_rule 18 | from pysper.parser.cases import gc_rules 19 | 20 | capture_message = switch((gc_rules())) 21 | capture_line = mkcapture(system_capture_rule, update_message(capture_message)) 22 | -------------------------------------------------------------------------------- /pysper/parser/outputlog.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | """ parser for dse output.log """ 15 | from pysper.parser.rules import switch, rule, convert, default 16 | from pysper.parser.captures import output_capture_rule 17 | from pysper.parser.cases import config_rules, dd_rules, daemon_rules 18 | 19 | capture_message = switch( 20 | ( 21 | *daemon_rules(), 22 | *config_rules(), 23 | *dd_rules(), 24 | ) 25 | ) 26 | 27 | 28 | def update_message(fields): 29 | """updates message fields""" 30 | subfields = None 31 | if "source_file" in fields: 32 | subfields = capture_message(fields["source_file"][:-5], fields["message"]) 33 | else: 34 | # need to handle the no source file output.log format 35 | if fields["message"]: 36 | # dirty hack where it the message structure tells us what we want 37 | tokens = fields["message"].split() 38 | if tokens[0] == "DiskAccessMode": 39 | subfields = capture_message("DatabaseDescriptor", fields["message"]) 40 | elif ( 41 | len(tokens) > 1 42 | and tokens[0] == "This" 43 | and (tokens[1] == "instance" or tokens[1] == "machine") 44 | ): 45 | subfields = capture_message("DseConfig", fields["message"]) 46 | if subfields is not None: 47 | fields.update(subfields) 48 | 49 | 50 | capture_line = rule( 51 | output_capture_rule, 52 | convert(int, "source_line"), 53 | update_message, 54 | default(event_product="unknown", event_category="unknown", event_type="unknown"), 55 | ) 56 | -------------------------------------------------------------------------------- /pysper/parser/systemlog.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """ parser for dse system.log """ 16 | from pysper.parser.rules import switch, mkcapture, update_message 17 | from pysper.parser.cases import ( 18 | gc_rules, 19 | memtable_rules, 20 | solr_rules, 21 | cfs_rules, 22 | daemon_rules, 23 | drop_rules, 24 | status_rules, 25 | tpc_rules, 26 | tombstone_rules, 27 | zc_rules, 28 | ) 29 | from pysper.parser.captures import system_capture_rule 30 | 31 | capture_message = switch( 32 | ( 33 | *daemon_rules(), 34 | *drop_rules(), 35 | *status_rules(), 36 | *gc_rules(), 37 | *memtable_rules(), 38 | *cfs_rules(), 39 | *solr_rules(), 40 | *tpc_rules(), 41 | *tombstone_rules(), 42 | *zc_rules(), 43 | ) 44 | ) 45 | 46 | capture_line = mkcapture(system_capture_rule, update_message(capture_message)) 47 | -------------------------------------------------------------------------------- /pysper/perc.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | """percentile implementations""" 15 | 16 | 17 | class Stats: 18 | """Stats is an array wrapper that provides min, max and percentiles""" 19 | 20 | def __init__(self, data): 21 | """must do a sort on startup""" 22 | self.data = sorted(data) 23 | 24 | def max(self): 25 | """max gets the largest element""" 26 | return self.data[-1] 27 | 28 | def min(self): 29 | """max gets the smallest element""" 30 | return self.data[0] 31 | 32 | def percentile(self, percentile): 33 | """provides a naive implemenation of percentiles""" 34 | return self.data[int(len(self.data) * (percentile / 100.0))] 35 | -------------------------------------------------------------------------------- /pysper/search/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /requirements_dev.txt: -------------------------------------------------------------------------------- 1 | altgraph==0.17 2 | appdirs==1.4.4 3 | black==21.4b0 4 | click==7.1.2 5 | coverage==5.4 6 | flake8==3.8.4 7 | macholib==1.14 8 | mccabe==0.6.1 9 | mypy-extensions==0.4.3 10 | pathspec==0.8.1 11 | pycodestyle==2.6.0 12 | pyflakes==2.2.0 13 | pyinstaller==4.2 14 | pyinstaller-hooks-contrib==2020.11 15 | pytest==6.2.3 16 | pytest-cov==2.11.1 17 | regex==2020.11.13 18 | toml==0.10.2 19 | typed-ast==1.4.2 20 | typing-extensions==3.7.4.3 21 | -------------------------------------------------------------------------------- /scripts/sperf: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright 2020 DataStax, Inc 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # vim: set ft=python: 16 | """sperf is the entry point script for the sperf command""" 17 | import sys 18 | import os 19 | import platform 20 | 21 | if platform.python_version() < "3.7": 22 | raise Exception("sperf requires at least Python 3.7, consider a packaged release") 23 | sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")) 24 | from pysper.commands import sperf 25 | 26 | if __name__ == "__main__": 27 | sperf.run() 28 | -------------------------------------------------------------------------------- /scripts/update_change.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import os 4 | 5 | dir_path = os.path.dirname(os.path.realpath(__file__)) 6 | 7 | with open(dir_path + "/../CHANGELOG.txt", "r") as c: 8 | with open("./pysper/changelog.py", "w") as w: 9 | w.write('CHANGES = """\n') 10 | for l in c: 11 | w.write(l.strip() + "\n") 12 | w.write('"""\n') 13 | w.flush() 14 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | """setup script for sperf""" 2 | 3 | from setuptools import setup, find_packages 4 | 5 | # setuptools import is needed on 3.5 6 | # pylint: disable=unused-import 7 | import setuptools 8 | 9 | setup( 10 | name="sperf", 11 | version="0.6.17", 12 | description="Diagnostic utility for DSE and Cassandra", 13 | url="https://www.github.com/datastax-labs/sperf", 14 | scripts=["scripts/sperf"], 15 | setup_requires=["PyInstaller"], 16 | packages=find_packages(include=["pysper", "pysper.*"]), 17 | ) 18 | -------------------------------------------------------------------------------- /tests/commands/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /tests/commands/core/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /tests/commands/core/test_gc.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """validates the gc args are in place""" 16 | import unittest 17 | import argparse 18 | import os 19 | from pysper.commands.core import gc 20 | 21 | 22 | class TestGCIntegration(unittest.TestCase): 23 | """integration tests for the gc command""" 24 | 25 | def test_args(self): 26 | """verify gc args are wired up correctly""" 27 | parser = argparse.ArgumentParser(prog="mine", description="entry point") 28 | subparsers = parser.add_subparsers() 29 | gc.build(subparsers) 30 | args = parser.parse_args( 31 | ["gc", "-f", "foo", "-d", "diag", "-i", "3600", "-r", "report"] 32 | ) 33 | self.assertTrue(hasattr(args, "files")) 34 | self.assertTrue(hasattr(args, "diag_dir")) 35 | self.assertTrue(hasattr(args, "interval")) 36 | self.assertTrue(hasattr(args, "reporter")) 37 | 38 | def test_gc_run(self): 39 | """validates we don't get a bad exit code""" 40 | parser = argparse.ArgumentParser(prog="mine", description="entry point") 41 | subparsers = parser.add_subparsers() 42 | gc.build(subparsers) 43 | current_dir = os.path.dirname(os.path.abspath(__file__)) 44 | test_dir_1 = current_dir + "/../testdata/diag/statuslogger" 45 | args = parser.parse_args(["gc", "-d", test_dir_1, "-r", "nodes"]) 46 | gc.run(args) 47 | -------------------------------------------------------------------------------- /tests/commands/core/test_schema.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """validates the schema args are in place""" 16 | import unittest 17 | import argparse 18 | import os 19 | from pysper.commands.core import schema 20 | from tests import current_dir 21 | 22 | 23 | class TestSchemaCommands(unittest.TestCase): 24 | """test sperf core schema command args""" 25 | 26 | def test_args(self): 27 | """verify schema args are wired up correctly""" 28 | parser = argparse.ArgumentParser(prog="mine", description="entry point") 29 | subparsers = parser.add_subparsers() 30 | schema.build(subparsers) 31 | args = parser.parse_args(["schema", "-d", "hello", "-f", "abc"]) 32 | self.assertTrue(hasattr(args, "diag_dir")) 33 | self.assertTrue(hasattr(args, "files")) 34 | 35 | def test_shema_run(self): 36 | """validates we don't get a bad exit code""" 37 | parser = argparse.ArgumentParser(prog="mine", description="entry point") 38 | subparsers = parser.add_subparsers() 39 | schema.build(subparsers) 40 | test_file_1 = os.path.join( 41 | current_dir(__file__), "testdata", "emtpy_file_1.log" 42 | ) 43 | test_file_2 = os.path.join( 44 | current_dir(__file__), "testdata", "emtpy_file_2.log" 45 | ) 46 | args = parser.parse_args(["schema", "-f", "%s,%s" % (test_file_1, test_file_2)]) 47 | schema.run(args) 48 | -------------------------------------------------------------------------------- /tests/commands/core/test_statuslogger.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """validates the statuslogger args are in place""" 16 | import unittest 17 | import argparse 18 | import os 19 | from pysper.commands.core import statuslogger 20 | from tests import current_dir 21 | 22 | 23 | class TestStatusLoggerCommand(unittest.TestCase): 24 | """status logger command args""" 25 | 26 | def test_args(self): 27 | """verify schema args are wired up correctly""" 28 | parser = argparse.ArgumentParser(prog="mine", description="entry point") 29 | subparsers = parser.add_subparsers() 30 | statuslogger.build(subparsers) 31 | args = parser.parse_args( 32 | ["statuslogger", "-f", "foo", "-d", "diag", "-s", "stages", "-r", "report"] 33 | ) 34 | self.assertTrue(hasattr(args, "files")) 35 | self.assertTrue(hasattr(args, "diag_dir")) 36 | self.assertTrue(hasattr(args, "stages")) 37 | self.assertTrue(hasattr(args, "reporter")) 38 | 39 | def test_statuslogger_run(self): 40 | """validates we don't get a bad exit code""" 41 | parser = argparse.ArgumentParser(prog="mine", description="entry point") 42 | subparsers = parser.add_subparsers() 43 | statuslogger.build(subparsers) 44 | test_dir_1 = os.path.join( 45 | current_dir(__file__), "..", "testdata", "diag", "statuslogger" 46 | ) 47 | args = parser.parse_args(["statuslogger", "-d", test_dir_1, "-r", "histogram"]) 48 | statuslogger.run(args) 49 | -------------------------------------------------------------------------------- /tests/core/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /tests/core/diag/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /tests/core/diag/test_read_ahead.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """test the read_ahead module""" 16 | import unittest 17 | from pysper.core.diag import read_ahead 18 | 19 | 20 | class TestReadAhead(unittest.TestCase): 21 | """test read ahead parsing""" 22 | 23 | def test_block_dev(self): 24 | """test parsing the block dev report""" 25 | rows = [ 26 | {"ssz": 512, "ra": 8, "device": "/dev/sda"}, 27 | {"ssz": 512, "ra": 8192, "device": "/dev/sdb"}, 28 | ] 29 | devices = read_ahead.extract_block_dev(rows) 30 | self.assertEqual(len(devices), 2) 31 | self.assertEqual(devices.get("/dev/sda"), 4096) 32 | self.assertEqual(devices.get("/dev/sdb"), 4194304) 33 | -------------------------------------------------------------------------------- /tests/core/test_gc.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """ tests the gcinspector module """ 16 | import unittest 17 | from pysper.core.gcinspector import GCInspector 18 | from tests import steal_output, test_dse_tarball 19 | 20 | 21 | class TestCoreGC(unittest.TestCase): 22 | """testing the core gc submodule""" 23 | 24 | def test_gcinspector(self): 25 | """test gcinspector analysis""" 26 | g = GCInspector(test_dse_tarball()) 27 | g.analyze() 28 | self.assertEqual(len(g.pauses), 3) 29 | self.assertEqual(len(g.all_pauses()), 236) 30 | output = steal_output(g.print_report) 31 | self.assertIn( 32 | "!!++.+.+.!++.+.+...+.+..+.+.+.+..+++....++..+++....+..++.+++.+!+..+.+.+.+!......+++....+", 33 | output, 34 | ) 35 | -------------------------------------------------------------------------------- /tests/parser/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /tests/search/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /tests/test_parser.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """validates the basic logline function works correctly""" 16 | import unittest 17 | import os 18 | from pysper.parser.rules import capture, default, rule 19 | from pysper import parser 20 | from tests import current_dir 21 | 22 | capture_line = rule( 23 | capture(r"(?P[A-Z]+)"), 24 | default(event_product="unknown", event_category="unknown", event_type="unknown"), 25 | ) 26 | 27 | 28 | class TestParser(unittest.TestCase): 29 | """test the parser""" 30 | 31 | def test_parses_all_matches(self): 32 | """validates the parser returns every line""" 33 | rows = [] 34 | with open( 35 | os.path.join(current_dir(__file__), "testdata", "simple.log") 36 | ) as test_file: 37 | events = parser.read_log(test_file, capture_line) 38 | rows = list(events) 39 | self.assertEqual(len(rows), 2) 40 | line1 = "WARN" 41 | self.assertEqual(rows[0]["level"], line1) 42 | line2 = "ERROR" 43 | self.assertEqual(rows[1]["level"], line2) 44 | -------------------------------------------------------------------------------- /tests/test_sysbottle.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 DataStax, Inc 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | """ Tests the sysbottle module """ 16 | import unittest 17 | import os 18 | from datetime import datetime 19 | from pysper.sysbottle import SysbottleReport, IOStatParser 20 | 21 | 22 | class TestSysBottle(unittest.TestCase): 23 | """sysbottle tests""" 24 | 25 | def test_sysbottle_analyze(self): 26 | """test sysbottle report""" 27 | iostat = os.path.join( 28 | os.path.dirname(os.path.abspath(__file__)), "testdata", "iostat" 29 | ) 30 | 31 | report = SysbottleReport(iostat) 32 | report.analyze() 33 | 34 | self.assertTrue(report.analyzed) 35 | self.assertEqual(report.count, 10) 36 | self.assertEqual(len(report.devices), 1) 37 | self.assertEqual(len(report.cpu_stats["total"]), 10) 38 | 39 | def test_date_format(self): 40 | """makes sure parsing works with all formats""" 41 | real_time = datetime.strptime("2011-09-16 19:01:10", "%Y-%m-%d %H:%M:%S") 42 | parser = IOStatParser() 43 | eu_format = "16/09/11 19:01:10" 44 | parser._parse_date(eu_format) 45 | self.assertEqual(parser.iostat["date"], real_time) 46 | sky_format = "09/16/11 19:01:10" 47 | parser._parse_date(sky_format) 48 | self.assertEqual(parser.iostat["date"], real_time) 49 | us_format = "09/16/2011 07:01:10 PM" 50 | parser._parse_date(us_format) 51 | self.assertEqual(parser.iostat["date"], real_time) 52 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/agent_version.json: -------------------------------------------------------------------------------- 1 | 6.7.7 -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/blockdev_report: -------------------------------------------------------------------------------- 1 | RO RA SSZ BSZ StartSec Size Device 2 | rw 256 512 4096 0 85899345920 /dev/vda 3 | rw 256 512 4096 2048 8388608 /dev/vda1 4 | rw 256 512 4096 18432 85889891840 /dev/vda2 5 | rw 256 512 512 0 85899345920 /dev/vdb 6 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/conf/agent/address.yaml: -------------------------------------------------------------------------------- 1 | stomp_interface: 10.101.34.47 2 | stomp_port: 61620 3 | use_ssl: 0 -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/conf/agent/log4j.properties: -------------------------------------------------------------------------------- 1 | # Based on the example properties given at http://logging.apache.org/log4j/1.2/manual.html 2 | # Set root logger level to DEBUG and its only appender to A1. 3 | log4j.rootLogger=INFO,R,stdout 4 | 5 | log4j.logger.org.apache.http=OFF 6 | log4j.logger.org.eclipse.jetty=WARN,stdout 7 | log4j.logger.com.datastax.driver=WARN,R 8 | log4j.additivity.com.datastax.driver=false 9 | # Silence "missing LZ4" warning 10 | log4j.logger.com.datastax.driver.core.FrameCompressor=ERROR,R 11 | log4j.logger.com.mchange.v2.c3p0=WARN,stdout,R 12 | log4j.logger.com.mchange.v2.resourcepool=WARN,stdout,R 13 | 14 | # stdout 15 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 16 | log4j.appender.stdout.layout=opsagent.AlternatingEnhancedPatternLayout 17 | log4j.appender.stdout.layout.MainPattern=%5p [%t] %d{ISO8601} %m%n %throwable{200} 18 | log4j.appender.stdout.layout.AlternatePattern=%5p [%t] %d{ISO8601} %m%n %throwable{3} 19 | log4j.appender.stdout.layout.ToMatch=com.datastax.driver 20 | 21 | # rolling log file 22 | log4j.appender.R=org.apache.log4j.RollingFileAppender 23 | log4j.appender.R.maxFileSize=20MB 24 | log4j.appender.R.maxBackupIndex=5 25 | log4j.appender.R.layout=opsagent.AlternatingEnhancedPatternLayout 26 | log4j.appender.R.layout.MainPattern=%5p [%t] %d{ISO8601} %m%n %throwable{200} 27 | log4j.appender.R.layout.AlternatePattern=%5p [%t] %d{ISO8601} %m%n %throwable{3} 28 | log4j.appender.R.layout.ToMatch=com.datastax.driver 29 | log4j.appender.R.File=/var/log/datastax-agent/agent.log 30 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/conf/dse/logback-no-op.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/conf/dse/logback-tools.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | System.err 23 | 24 | %-5level %date{"HH:mm:ss,SSS"} %msg%n 25 | 26 | 27 | WARN 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/conf/location.json: -------------------------------------------------------------------------------- 1 | { 2 | "dse" : "/etc/dse/dse.yaml", 3 | "cassandra" : "/etc/dse/cassandra/cassandra.yaml" 4 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/conf/solr/my_solr.my_table/schema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | id 21 | 22 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/conf/system/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/driver/metadata: -------------------------------------------------------------------------------- 1 | Cluster: Sperf Cluster 2 | Partitioner: Murmur3Partitioner 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/dsetool/ring: -------------------------------------------------------------------------------- 1 | Address DC Rack Workload Graph Status State Load Owns VNodes Health [0,1] 2 | 10.101.33.205 Solr rack1 Search no Up Normal 108.51 MiB ? 32 0.90 3 | 10.101.35.102 Solr rack1 Search no Up Normal 133.63 MiB ? 32 0.50 4 | 10.101.35.71 Solr rack1 Search no Up Normal 133.53 MiB ? 32 0.90 5 | Note: you must specify a keyspace to get ownership information. 6 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/dsetool/sparkmaster: -------------------------------------------------------------------------------- 1 | /usr/bin/dsetool --host=127.0.0.1 --jmxport=7199 sparkmaster 2 | exit status: 2 3 | 4 | stderr: 5 | java.lang.UnsupportedOperationException: This functionality is removed. Please use 'dse client-tool' instead. 6 | at com.datastax.bdp.tools.SparkDseToolCommands$DseToolSparkMaster.executeJMX(SparkDseToolCommands.java:54) 7 | at com.datastax.bdp.tools.DseTool$Plugin.executeJMX(DseTool.java:386) 8 | at com.datastax.bdp.tools.DseTool.run(DseTool.java:275) 9 | at com.datastax.bdp.tools.DseTool.run(DseTool.java:201) 10 | at com.datastax.bdp.tools.DseTool.main(DseTool.java:320) 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/java_heap.json: -------------------------------------------------------------------------------- 1 | { 2 | "HeapMemoryUsage" : { 3 | "committed" : 3942645760, 4 | "init" : 3942645760, 5 | "max" : 3942645760, 6 | "used" : 1464788136 7 | }, 8 | "NonHeapMemoryUsage" : { 9 | "committed" : 221954048, 10 | "init" : 2555904, 11 | "max" : -1, 12 | "used" : 214674360 13 | } 14 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/logs/cassandra/gremlin.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/logs/cassandra/gremlin.log -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/machine-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "arch" : "amd64", 3 | "memory" : 15038 4 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/nodetool/compactionstats: -------------------------------------------------------------------------------- 1 | pending tasks: 0 2 | 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/nodetool/describecluster: -------------------------------------------------------------------------------- 1 | Cluster Information: 2 | Name: Sperf Cluster 3 | Snitch: com.datastax.bdp.snitch.DseSimpleSnitch 4 | DynamicEndPointSnitch: enabled 5 | Partitioner: org.apache.cassandra.dht.Murmur3Partitioner 6 | Schema versions: 7 | efd03e46-a18c-3327-9bfe-29cf0cfe1f52: [10.101.33.205, 10.101.35.71, 10.101.35.102] 8 | 9 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/nodetool/getcompactionthroughput: -------------------------------------------------------------------------------- 1 | Current compaction throughput: 16 MB/s 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/nodetool/getstreamthroughput: -------------------------------------------------------------------------------- 1 | Current stream throughput: 200 Mb/s 2 | Current streaming connections per host: 1 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/nodetool/info: -------------------------------------------------------------------------------- 1 | ID : a2ff4fa1-a35f-472b-85d0-1c89e42343ae 2 | Gossip active : true 3 | Native Transport active: true 4 | Load : 108.51 MiB 5 | Generation No : 1578670117 6 | Uptime (seconds) : 6776 7 | Heap Memory (MB) : 1079.93 / 3760.00 8 | Off Heap Memory (MB) : 36.89 9 | Data Center : Solr 10 | Rack : rack1 11 | Exceptions : 0 12 | Key Cache : entries 0, size 0 bytes, capacity 100 MiB, 0 hits, 0 requests, NaN recent hit rate, 14400 save period in seconds 13 | Row Cache : entries 0, size 0 bytes, capacity 0 bytes, 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds 14 | Counter Cache : entries 0, size 0 bytes, capacity 50 MiB, 0 hits, 0 requests, NaN recent hit rate, 7200 save period in seconds 15 | Chunk Cache : entries 30004, size 1.06 GiB, capacity 2.62 GiB, 30007 misses, 52050154 requests, 0.999 recent hit rate, 1638.400 microseconds miss latency 16 | Percent Repaired : 0.0% 17 | Token : (invoke with -T/--tokens to see all 32 tokens) 18 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/nodetool/netstats: -------------------------------------------------------------------------------- 1 | Mode: NORMAL 2 | Not sending any streams. 3 | Read Repair Statistics: 4 | Attempted: 68693 5 | Mismatch (Blocking): 0 6 | Mismatch (Background): 8 7 | Pool Name Active Pending Completed Dropped 8 | Large messages n/a 0 2 1 9 | Small messages n/a 0 6019380 1 10 | Gossip messages n/a 0 16494 3008 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/nodetool/proxyhistograms: -------------------------------------------------------------------------------- 1 | proxy histograms 2 | Percentile Read Latency Write Latency Range Latency CAS Read Latency CAS Write Latency View Write Latency 3 | (micros) (micros) (micros) (micros) (micros) (micros) 4 | 50% 262.14 327.68 786.43 0.00 0.00 0.00 5 | 75% 524.29 655.36 1310.72 0.00 0.00 0.00 6 | 95% 1572.86 2621.44 4194.30 0.00 0.00 0.00 7 | 98% 4194.30 7340.03 4194.30 0.00 0.00 0.00 8 | 99% 6291.46 12582.91 8388.61 0.00 0.00 0.00 9 | Min 0.00 0.00 393.22 0.00 0.00 0.00 10 | Max 12582.91 536870.91 10485.76 0.00 0.00 0.00 11 | 12 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/nodetool/status: -------------------------------------------------------------------------------- 1 | Datacenter: Solr 2 | ================ 3 | Status=Up/Down 4 | |/ State=Normal/Leaving/Joining/Moving 5 | -- Address Load Tokens Owns Host ID Rack 6 | UN 10.101.35.71 133.53 MiB 32 ? 96f2331c-48ee-4e4d-9a60-7673579b559c rack1 7 | UN 10.101.35.102 133.63 MiB 32 ? e6f09523-3513-42ab-b395-8f264eaceb34 rack1 8 | UN 10.101.33.205 108.51 MiB 32 ? a2ff4fa1-a35f-472b-85d0-1c89e42343ae rack1 9 | 10 | Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/nodetool/statusbinary: -------------------------------------------------------------------------------- 1 | running 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/nodetool/version: -------------------------------------------------------------------------------- 1 | DSE version: 6.7.7 2 | ReleaseVersion: 4.0.0.677 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/ntp/ntpstat: -------------------------------------------------------------------------------- 1 | Exception running ntpstat: java.io.IOException: Cannot run program "ntpstat": error=2, No such file or directory -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/ntp/ntptime: -------------------------------------------------------------------------------- 1 | ntp_gettime() returns code 0 (OK) 2 | time e1c33111.19234ebc Fri, Jan 10 2020 17:21:21.098, (.098195832), 3 | maximum error 387591 us, estimated error 523 us, TAI offset 0 4 | ntp_adjtime() returns code 0 (OK) 5 | modes 0x0 (), 6 | offset 309.226 us, frequency -0.700 ppm, interval 1 s, 7 | maximum error 387591 us, estimated error 523 us, 8 | status 0x2001 (PLL,NANO), 9 | time constant 10, precision 0.001 us, tolerance 500 ppm, 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/os-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sub_os" : "Ubuntu", 3 | "os_version" : "16.04" 4 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/os-metrics/cpu.json: -------------------------------------------------------------------------------- 1 | { 2 | "%user" : 7.02, 3 | "%nice" : 0.0, 4 | "%system" : 1.28, 5 | "%iowait" : 0.0, 6 | "%steal" : 0.0, 7 | "%idle" : 91.71 8 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/os-metrics/disk.json: -------------------------------------------------------------------------------- 1 | { 2 | "w/s" : { 3 | "loop0" : 0.0, 4 | "vda" : 0.0, 5 | "vdb" : 0.0 6 | }, 7 | "await" : { 8 | "loop0" : 0.0, 9 | "vda" : 0.0, 10 | "vdb" : 0.0 11 | }, 12 | "w_await" : { 13 | "loop0" : 0.0, 14 | "vda" : 0.0, 15 | "vdb" : 0.0 16 | }, 17 | "wMB/s" : { 18 | "loop0" : 0.0, 19 | "vda" : 0.0, 20 | "vdb" : 0.0 21 | }, 22 | "wrqm/s" : { 23 | "loop0" : 0.0, 24 | "vda" : 0.0, 25 | "vdb" : 0.0 26 | }, 27 | "rMB/s" : { 28 | "loop0" : 0.0, 29 | "vda" : 0.0, 30 | "vdb" : 0.0 31 | }, 32 | "r_await" : { 33 | "loop0" : 0.0, 34 | "vda" : 0.0, 35 | "vdb" : 0.0 36 | }, 37 | "%util" : { 38 | "loop0" : 0.0, 39 | "vda" : 0.0, 40 | "vdb" : 0.0 41 | }, 42 | "rrqm/s" : { 43 | "loop0" : 0.0, 44 | "vda" : 0.0, 45 | "vdb" : 0.0 46 | }, 47 | "r/s" : { 48 | "loop0" : 0.0, 49 | "vda" : 0.0, 50 | "vdb" : 0.0 51 | }, 52 | "svctm" : { 53 | "loop0" : 0.0, 54 | "vda" : 0.0, 55 | "vdb" : 0.0 56 | }, 57 | "avgrq-sz" : { 58 | "loop0" : 0.0, 59 | "vda" : 0.0, 60 | "vdb" : 0.0 61 | }, 62 | "avgqu-sz" : { 63 | "loop0" : 0.0, 64 | "vda" : 0.0, 65 | "vdb" : 0.0 66 | } 67 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/os-metrics/disk_space.json: -------------------------------------------------------------------------------- 1 | { 2 | "free" : { 3 | "/dev/vda2" : 66.9, 4 | "/dev/vdb" : 79.98 5 | }, 6 | "used" : { 7 | "/dev/vda2" : 4.78, 8 | "/dev/vdb" : 0.0 9 | }, 10 | "percentage" : { 11 | "/dev/vda2" : 7, 12 | "/dev/vdb" : 1 13 | } 14 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/os-metrics/load_avg.json: -------------------------------------------------------------------------------- 1 | 1.52 -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/os-metrics/memory.json: -------------------------------------------------------------------------------- 1 | { 2 | "used" : 6742, 3 | "free" : 4563, 4 | "shared" : 11, 5 | "buffers" : 96, 6 | "cache" : 3636, 7 | "available" : 7888 8 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/process_limits: -------------------------------------------------------------------------------- 1 | clojure.lang.ExceptionInfo: throw+: {:type :opsagent.jmx/not-jmx-context, :message "[BUG] Tried to access JMX mbean outside of JMX context.", :details {:mbean "java.lang:type=Runtime", :attributes [:Name]}} {:type :opsagent.jmx/not-jmx-context, :message "[BUG] Tried to access JMX mbean outside of JMX context.", :details {:mbean "java.lang:type=Runtime", :attributes [:Name]}} -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.33.205/solr/index_size.json: -------------------------------------------------------------------------------- 1 | { 2 | "my_solr.my_table" : 637306241 3 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/agent_version.json: -------------------------------------------------------------------------------- 1 | 6.7.7 -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/blockdev_report: -------------------------------------------------------------------------------- 1 | RO RA SSZ BSZ StartSec Size Device 2 | rw 256 512 4096 0 85899345920 /dev/vda 3 | rw 256 512 4096 2048 8388608 /dev/vda1 4 | rw 256 512 4096 18432 85889891840 /dev/vda2 5 | rw 256 512 512 0 85899345920 /dev/vdb 6 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/conf/agent/address.yaml: -------------------------------------------------------------------------------- 1 | stomp_interface: 10.101.34.47 2 | stomp_port: 61620 3 | use_ssl: 0 -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/conf/agent/log4j.properties: -------------------------------------------------------------------------------- 1 | # Based on the example properties given at http://logging.apache.org/log4j/1.2/manual.html 2 | # Set root logger level to DEBUG and its only appender to A1. 3 | log4j.rootLogger=INFO,R,stdout 4 | 5 | log4j.logger.org.apache.http=OFF 6 | log4j.logger.org.eclipse.jetty=WARN,stdout 7 | log4j.logger.com.datastax.driver=WARN,R 8 | log4j.additivity.com.datastax.driver=false 9 | # Silence "missing LZ4" warning 10 | log4j.logger.com.datastax.driver.core.FrameCompressor=ERROR,R 11 | log4j.logger.com.mchange.v2.c3p0=WARN,stdout,R 12 | log4j.logger.com.mchange.v2.resourcepool=WARN,stdout,R 13 | 14 | # stdout 15 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 16 | log4j.appender.stdout.layout=opsagent.AlternatingEnhancedPatternLayout 17 | log4j.appender.stdout.layout.MainPattern=%5p [%t] %d{ISO8601} %m%n %throwable{200} 18 | log4j.appender.stdout.layout.AlternatePattern=%5p [%t] %d{ISO8601} %m%n %throwable{3} 19 | log4j.appender.stdout.layout.ToMatch=com.datastax.driver 20 | 21 | # rolling log file 22 | log4j.appender.R=org.apache.log4j.RollingFileAppender 23 | log4j.appender.R.maxFileSize=20MB 24 | log4j.appender.R.maxBackupIndex=5 25 | log4j.appender.R.layout=opsagent.AlternatingEnhancedPatternLayout 26 | log4j.appender.R.layout.MainPattern=%5p [%t] %d{ISO8601} %m%n %throwable{200} 27 | log4j.appender.R.layout.AlternatePattern=%5p [%t] %d{ISO8601} %m%n %throwable{3} 28 | log4j.appender.R.layout.ToMatch=com.datastax.driver 29 | log4j.appender.R.File=/var/log/datastax-agent/agent.log 30 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/conf/dse/logback-no-op.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/conf/dse/logback-tools.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | System.err 23 | 24 | %-5level %date{"HH:mm:ss,SSS"} %msg%n 25 | 26 | 27 | WARN 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/conf/location.json: -------------------------------------------------------------------------------- 1 | { 2 | "dse" : "/etc/dse/dse.yaml", 3 | "cassandra" : "/etc/dse/cassandra/cassandra.yaml" 4 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/conf/solr/my_solr.my_table/schema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | id 21 | 22 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/conf/system/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/driver/metadata: -------------------------------------------------------------------------------- 1 | Cluster: Sperf Cluster 2 | Partitioner: Murmur3Partitioner 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/dsetool/ring: -------------------------------------------------------------------------------- 1 | Address DC Rack Workload Graph Status State Load Owns VNodes Health [0,1] 2 | 10.101.33.205 Solr rack1 Search no Up Normal 108.51 MiB ? 32 0.90 3 | 10.101.35.102 Solr rack1 Search no Up Normal 133.63 MiB ? 32 0.50 4 | 10.101.35.71 Solr rack1 Search no Up Normal 133.53 MiB ? 32 0.90 5 | Note: you must specify a keyspace to get ownership information. 6 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/dsetool/sparkmaster: -------------------------------------------------------------------------------- 1 | /usr/bin/dsetool --host=127.0.0.1 --jmxport=7199 sparkmaster 2 | exit status: 2 3 | 4 | stderr: 5 | java.lang.UnsupportedOperationException: This functionality is removed. Please use 'dse client-tool' instead. 6 | at com.datastax.bdp.tools.SparkDseToolCommands$DseToolSparkMaster.executeJMX(SparkDseToolCommands.java:54) 7 | at com.datastax.bdp.tools.DseTool$Plugin.executeJMX(DseTool.java:386) 8 | at com.datastax.bdp.tools.DseTool.run(DseTool.java:275) 9 | at com.datastax.bdp.tools.DseTool.run(DseTool.java:201) 10 | at com.datastax.bdp.tools.DseTool.main(DseTool.java:320) 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/java_heap.json: -------------------------------------------------------------------------------- 1 | { 2 | "HeapMemoryUsage" : { 3 | "committed" : 3942645760, 4 | "init" : 3942645760, 5 | "max" : 3942645760, 6 | "used" : 1684936888 7 | }, 8 | "NonHeapMemoryUsage" : { 9 | "committed" : 216104960, 10 | "init" : 2555904, 11 | "max" : -1, 12 | "used" : 208752320 13 | } 14 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/logs/cassandra/gremlin.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/logs/cassandra/gremlin.log -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/machine-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "arch" : "amd64", 3 | "memory" : 15038 4 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/nodetool/compactionstats: -------------------------------------------------------------------------------- 1 | pending tasks: 0 2 | 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/nodetool/describecluster: -------------------------------------------------------------------------------- 1 | Cluster Information: 2 | Name: Sperf Cluster 3 | Snitch: com.datastax.bdp.snitch.DseSimpleSnitch 4 | DynamicEndPointSnitch: enabled 5 | Partitioner: org.apache.cassandra.dht.Murmur3Partitioner 6 | Schema versions: 7 | efd03e46-a18c-3327-9bfe-29cf0cfe1f52: [10.101.33.205, 10.101.35.71, 10.101.35.102] 8 | 9 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/nodetool/getcompactionthroughput: -------------------------------------------------------------------------------- 1 | Current compaction throughput: 16 MB/s 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/nodetool/getstreamthroughput: -------------------------------------------------------------------------------- 1 | Current stream throughput: 200 Mb/s 2 | Current streaming connections per host: 1 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/nodetool/info: -------------------------------------------------------------------------------- 1 | ID : e6f09523-3513-42ab-b395-8f264eaceb34 2 | Gossip active : true 3 | Native Transport active: true 4 | Load : 133.63 MiB 5 | Generation No : 1578673412 6 | Uptime (seconds) : 3460 7 | Heap Memory (MB) : 1269.88 / 3760.00 8 | Off Heap Memory (MB) : 58.00 9 | Data Center : Solr 10 | Rack : rack1 11 | Exceptions : 0 12 | Key Cache : entries 0, size 0 bytes, capacity 100 MiB, 0 hits, 0 requests, NaN recent hit rate, 14400 save period in seconds 13 | Row Cache : entries 0, size 0 bytes, capacity 0 bytes, 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds 14 | Counter Cache : entries 0, size 0 bytes, capacity 50 MiB, 0 hits, 0 requests, NaN recent hit rate, 7200 save period in seconds 15 | Chunk Cache : entries 29765, size 1.05 GiB, capacity 2.62 GiB, 29771 misses, 50932496 requests, 0.999 recent hit rate, 2244.643 microseconds miss latency 16 | Percent Repaired : 0.0% 17 | Token : (invoke with -T/--tokens to see all 32 tokens) 18 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/nodetool/netstats: -------------------------------------------------------------------------------- 1 | Mode: NORMAL 2 | Not sending any streams. 3 | Read Repair Statistics: 4 | Attempted: 68993 5 | Mismatch (Blocking): 0 6 | Mismatch (Background): 13 7 | Pool Name Active Pending Completed Dropped 8 | Large messages n/a 0 2 0 9 | Small messages n/a 0 6150577 557 10 | Gossip messages n/a 0 10458 0 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/nodetool/proxyhistograms: -------------------------------------------------------------------------------- 1 | proxy histograms 2 | Percentile Read Latency Write Latency Range Latency CAS Read Latency CAS Write Latency View Write Latency 3 | (micros) (micros) (micros) (micros) (micros) (micros) 4 | 50% 393.22 262.14 786.43 0.00 0.00 0.00 5 | 75% 655.36 524.29 2097.15 0.00 0.00 0.00 6 | 95% 1310.72 2097.15 8388.61 0.00 0.00 0.00 7 | 98% 2621.44 3670.02 12582.91 0.00 0.00 0.00 8 | 99% 4194.30 6291.46 12582.91 0.00 0.00 0.00 9 | Min 0.00 0.00 524.29 0.00 0.00 0.00 10 | Max 12582.91 83886.08 14680.06 0.00 0.00 0.00 11 | 12 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/nodetool/status: -------------------------------------------------------------------------------- 1 | Datacenter: Solr 2 | ================ 3 | Status=Up/Down 4 | |/ State=Normal/Leaving/Joining/Moving 5 | -- Address Load Tokens Owns Host ID Rack 6 | UN 10.101.35.71 133.53 MiB 32 ? 96f2331c-48ee-4e4d-9a60-7673579b559c rack1 7 | UN 10.101.35.102 133.63 MiB 32 ? e6f09523-3513-42ab-b395-8f264eaceb34 rack1 8 | UN 10.101.33.205 108.51 MiB 32 ? a2ff4fa1-a35f-472b-85d0-1c89e42343ae rack1 9 | 10 | Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/nodetool/statusbinary: -------------------------------------------------------------------------------- 1 | running 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/nodetool/version: -------------------------------------------------------------------------------- 1 | DSE version: 6.7.7 2 | ReleaseVersion: 4.0.0.677 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/ntp/ntpstat: -------------------------------------------------------------------------------- 1 | Exception running ntpstat: java.io.IOException: Cannot run program "ntpstat": error=2, No such file or directory -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/ntp/ntptime: -------------------------------------------------------------------------------- 1 | ntp_gettime() returns code 0 (OK) 2 | time e1c33115.72fdb900 Fri, Jan 10 2020 17:21:25.449, (.449184196), 3 | maximum error 938762 us, estimated error 412 us, TAI offset 0 4 | ntp_adjtime() returns code 0 (OK) 5 | modes 0x0 (), 6 | offset 342.501 us, frequency 6.151 ppm, interval 1 s, 7 | maximum error 938762 us, estimated error 412 us, 8 | status 0x6001 (PLL,NANO,MODE), 9 | time constant 9, precision 0.001 us, tolerance 500 ppm, 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/os-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sub_os" : "Ubuntu", 3 | "os_version" : "16.04" 4 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/os-metrics/cpu.json: -------------------------------------------------------------------------------- 1 | { 2 | "%user" : 2.63, 3 | "%nice" : 0.0, 4 | "%system" : 1.51, 5 | "%iowait" : 0.0, 6 | "%steal" : 0.0, 7 | "%idle" : 95.86 8 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/os-metrics/disk.json: -------------------------------------------------------------------------------- 1 | { 2 | "w/s" : { 3 | "loop0" : 0.0, 4 | "vda" : 0.0, 5 | "vdb" : 0.0 6 | }, 7 | "await" : { 8 | "loop0" : 0.0, 9 | "vda" : 0.0, 10 | "vdb" : 0.0 11 | }, 12 | "w_await" : { 13 | "loop0" : 0.0, 14 | "vda" : 0.0, 15 | "vdb" : 0.0 16 | }, 17 | "wMB/s" : { 18 | "loop0" : 0.0, 19 | "vda" : 0.0, 20 | "vdb" : 0.0 21 | }, 22 | "wrqm/s" : { 23 | "loop0" : 0.0, 24 | "vda" : 0.0, 25 | "vdb" : 0.0 26 | }, 27 | "rMB/s" : { 28 | "loop0" : 0.0, 29 | "vda" : 0.0, 30 | "vdb" : 0.0 31 | }, 32 | "r_await" : { 33 | "loop0" : 0.0, 34 | "vda" : 0.0, 35 | "vdb" : 0.0 36 | }, 37 | "%util" : { 38 | "loop0" : 0.0, 39 | "vda" : 0.0, 40 | "vdb" : 0.0 41 | }, 42 | "rrqm/s" : { 43 | "loop0" : 0.0, 44 | "vda" : 0.0, 45 | "vdb" : 0.0 46 | }, 47 | "r/s" : { 48 | "loop0" : 0.0, 49 | "vda" : 0.0, 50 | "vdb" : 0.0 51 | }, 52 | "svctm" : { 53 | "loop0" : 0.0, 54 | "vda" : 0.0, 55 | "vdb" : 0.0 56 | }, 57 | "avgrq-sz" : { 58 | "loop0" : 0.0, 59 | "vda" : 0.0, 60 | "vdb" : 0.0 61 | }, 62 | "avgqu-sz" : { 63 | "loop0" : 0.0, 64 | "vda" : 0.0, 65 | "vdb" : 0.0 66 | } 67 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/os-metrics/disk_space.json: -------------------------------------------------------------------------------- 1 | { 2 | "free" : { 3 | "/dev/vda2" : 66.27, 4 | "/dev/vdb" : 79.98 5 | }, 6 | "used" : { 7 | "/dev/vda2" : 5.42, 8 | "/dev/vdb" : 0.0 9 | }, 10 | "percentage" : { 11 | "/dev/vda2" : 8, 12 | "/dev/vdb" : 1 13 | } 14 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/os-metrics/load_avg.json: -------------------------------------------------------------------------------- 1 | 2.17 -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/os-metrics/memory.json: -------------------------------------------------------------------------------- 1 | { 2 | "used" : 6341, 3 | "free" : 4312, 4 | "shared" : 11, 5 | "buffers" : 89, 6 | "cache" : 4294, 7 | "available" : 8284 8 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/process_limits: -------------------------------------------------------------------------------- 1 | clojure.lang.ExceptionInfo: throw+: {:type :opsagent.jmx/not-jmx-context, :message "[BUG] Tried to access JMX mbean outside of JMX context.", :details {:mbean "java.lang:type=Runtime", :attributes [:Name]}} {:type :opsagent.jmx/not-jmx-context, :message "[BUG] Tried to access JMX mbean outside of JMX context.", :details {:mbean "java.lang:type=Runtime", :attributes [:Name]}} -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.102/solr/index_size.json: -------------------------------------------------------------------------------- 1 | { 2 | "my_solr.my_table" : 366797407 3 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/agent_version.json: -------------------------------------------------------------------------------- 1 | 6.7.7 -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/blockdev_report: -------------------------------------------------------------------------------- 1 | RO RA SSZ BSZ StartSec Size Device 2 | rw 256 512 4096 0 85899345920 /dev/vda 3 | rw 256 512 4096 2048 8388608 /dev/vda1 4 | rw 256 512 4096 18432 85889891840 /dev/vda2 5 | rw 256 512 512 0 85899345920 /dev/vdb 6 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/conf/agent/address.yaml: -------------------------------------------------------------------------------- 1 | stomp_interface: 10.101.34.47 2 | stomp_port: 61620 3 | use_ssl: 0 -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/conf/agent/log4j.properties: -------------------------------------------------------------------------------- 1 | # Based on the example properties given at http://logging.apache.org/log4j/1.2/manual.html 2 | # Set root logger level to DEBUG and its only appender to A1. 3 | log4j.rootLogger=INFO,R,stdout 4 | 5 | log4j.logger.org.apache.http=OFF 6 | log4j.logger.org.eclipse.jetty=WARN,stdout 7 | log4j.logger.com.datastax.driver=WARN,R 8 | log4j.additivity.com.datastax.driver=false 9 | # Silence "missing LZ4" warning 10 | log4j.logger.com.datastax.driver.core.FrameCompressor=ERROR,R 11 | log4j.logger.com.mchange.v2.c3p0=WARN,stdout,R 12 | log4j.logger.com.mchange.v2.resourcepool=WARN,stdout,R 13 | 14 | # stdout 15 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 16 | log4j.appender.stdout.layout=opsagent.AlternatingEnhancedPatternLayout 17 | log4j.appender.stdout.layout.MainPattern=%5p [%t] %d{ISO8601} %m%n %throwable{200} 18 | log4j.appender.stdout.layout.AlternatePattern=%5p [%t] %d{ISO8601} %m%n %throwable{3} 19 | log4j.appender.stdout.layout.ToMatch=com.datastax.driver 20 | 21 | # rolling log file 22 | log4j.appender.R=org.apache.log4j.RollingFileAppender 23 | log4j.appender.R.maxFileSize=20MB 24 | log4j.appender.R.maxBackupIndex=5 25 | log4j.appender.R.layout=opsagent.AlternatingEnhancedPatternLayout 26 | log4j.appender.R.layout.MainPattern=%5p [%t] %d{ISO8601} %m%n %throwable{200} 27 | log4j.appender.R.layout.AlternatePattern=%5p [%t] %d{ISO8601} %m%n %throwable{3} 28 | log4j.appender.R.layout.ToMatch=com.datastax.driver 29 | log4j.appender.R.File=/var/log/datastax-agent/agent.log 30 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/conf/dse/logback-no-op.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/conf/dse/logback-tools.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | System.err 23 | 24 | %-5level %date{"HH:mm:ss,SSS"} %msg%n 25 | 26 | 27 | WARN 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/conf/location.json: -------------------------------------------------------------------------------- 1 | { 2 | "dse" : "/etc/dse/dse.yaml", 3 | "cassandra" : "/etc/dse/cassandra/cassandra.yaml" 4 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/conf/solr/my_solr.my_table/schema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | id 21 | 22 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/conf/system/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/driver/metadata: -------------------------------------------------------------------------------- 1 | Cluster: Sperf Cluster 2 | Partitioner: Murmur3Partitioner 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/dsetool/ring: -------------------------------------------------------------------------------- 1 | Address DC Rack Workload Graph Status State Load Owns VNodes Health [0,1] 2 | 10.101.33.205 Solr rack1 Search no Up Normal 108.51 MiB ? 32 0.90 3 | 10.101.35.102 Solr rack1 Search no Up Normal 133.63 MiB ? 32 0.50 4 | 10.101.35.71 Solr rack1 Search no Up Normal 133.53 MiB ? 32 0.90 5 | Note: you must specify a keyspace to get ownership information. 6 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/dsetool/sparkmaster: -------------------------------------------------------------------------------- 1 | /usr/bin/dsetool --host=127.0.0.1 --jmxport=7199 sparkmaster 2 | exit status: 2 3 | 4 | stderr: 5 | java.lang.UnsupportedOperationException: This functionality is removed. Please use 'dse client-tool' instead. 6 | at com.datastax.bdp.tools.SparkDseToolCommands$DseToolSparkMaster.executeJMX(SparkDseToolCommands.java:54) 7 | at com.datastax.bdp.tools.DseTool$Plugin.executeJMX(DseTool.java:386) 8 | at com.datastax.bdp.tools.DseTool.run(DseTool.java:275) 9 | at com.datastax.bdp.tools.DseTool.run(DseTool.java:201) 10 | at com.datastax.bdp.tools.DseTool.main(DseTool.java:320) 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/java_heap.json: -------------------------------------------------------------------------------- 1 | { 2 | "HeapMemoryUsage" : { 3 | "committed" : 3942645760, 4 | "init" : 3942645760, 5 | "max" : 3942645760, 6 | "used" : 1493062608 7 | }, 8 | "NonHeapMemoryUsage" : { 9 | "committed" : 220168192, 10 | "init" : 2555904, 11 | "max" : -1, 12 | "used" : 212849856 13 | } 14 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/logs/cassandra/gremlin.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/logs/cassandra/gremlin.log -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/machine-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "arch" : "amd64", 3 | "memory" : 15038 4 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/nodetool/compactionstats: -------------------------------------------------------------------------------- 1 | pending tasks: 0 2 | 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/nodetool/describecluster: -------------------------------------------------------------------------------- 1 | Cluster Information: 2 | Name: Sperf Cluster 3 | Snitch: com.datastax.bdp.snitch.DseSimpleSnitch 4 | DynamicEndPointSnitch: enabled 5 | Partitioner: org.apache.cassandra.dht.Murmur3Partitioner 6 | Schema versions: 7 | efd03e46-a18c-3327-9bfe-29cf0cfe1f52: [10.101.33.205, 10.101.35.71, 10.101.35.102] 8 | 9 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/nodetool/getcompactionthroughput: -------------------------------------------------------------------------------- 1 | Current compaction throughput: 16 MB/s 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/nodetool/getstreamthroughput: -------------------------------------------------------------------------------- 1 | Current stream throughput: 200 Mb/s 2 | Current streaming connections per host: 1 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/nodetool/info: -------------------------------------------------------------------------------- 1 | ID : 96f2331c-48ee-4e4d-9a60-7673579b559c 2 | Gossip active : true 3 | Native Transport active: true 4 | Load : 133.53 MiB 5 | Generation No : 1578673129 6 | Uptime (seconds) : 3735 7 | Heap Memory (MB) : 1116.90 / 3760.00 8 | Off Heap Memory (MB) : 44.21 9 | Data Center : Solr 10 | Rack : rack1 11 | Exceptions : 0 12 | Key Cache : entries 0, size 0 bytes, capacity 100 MiB, 0 hits, 0 requests, NaN recent hit rate, 14400 save period in seconds 13 | Row Cache : entries 0, size 0 bytes, capacity 0 bytes, 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds 14 | Counter Cache : entries 0, size 0 bytes, capacity 50 MiB, 0 hits, 0 requests, NaN recent hit rate, 7200 save period in seconds 15 | Chunk Cache : entries 29919, size 1.06 GiB, capacity 2.62 GiB, 29920 misses, 53988592 requests, 0.999 recent hit rate, 983.040 microseconds miss latency 16 | Percent Repaired : 0.0% 17 | Token : (invoke with -T/--tokens to see all 32 tokens) 18 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/nodetool/netstats: -------------------------------------------------------------------------------- 1 | Mode: NORMAL 2 | Not sending any streams. 3 | Read Repair Statistics: 4 | Attempted: 68997 5 | Mismatch (Blocking): 0 6 | Mismatch (Background): 18 7 | Pool Name Active Pending Completed Dropped 8 | Large messages n/a 0 2 0 9 | Small messages n/a 0 6133236 0 10 | Gossip messages n/a 0 16514 0 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/nodetool/proxyhistograms: -------------------------------------------------------------------------------- 1 | proxy histograms 2 | Percentile Read Latency Write Latency Range Latency CAS Read Latency CAS Write Latency View Write Latency 3 | (micros) (micros) (micros) (micros) (micros) (micros) 4 | 50% 327.68 327.68 917.50 0.00 0.00 0.00 5 | 75% 524.29 655.36 1572.86 0.00 0.00 0.00 6 | 95% 1572.86 3145.73 6291.46 0.00 0.00 0.00 7 | 98% 6291.46 7340.03 8388.61 0.00 0.00 0.00 8 | 99% 10485.76 12582.91 16777.22 0.00 0.00 0.00 9 | Min 0.00 0.00 524.29 0.00 0.00 0.00 10 | Max 25165.82 671088.64 20971.52 0.00 0.00 0.00 11 | 12 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/nodetool/status: -------------------------------------------------------------------------------- 1 | Datacenter: Solr 2 | ================ 3 | Status=Up/Down 4 | |/ State=Normal/Leaving/Joining/Moving 5 | -- Address Load Tokens Owns Host ID Rack 6 | UN 10.101.35.71 133.53 MiB 32 ? 96f2331c-48ee-4e4d-9a60-7673579b559c rack1 7 | UN 10.101.35.102 133.63 MiB 32 ? e6f09523-3513-42ab-b395-8f264eaceb34 rack1 8 | UN 10.101.33.205 108.51 MiB 32 ? a2ff4fa1-a35f-472b-85d0-1c89e42343ae rack1 9 | 10 | Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/nodetool/statusbinary: -------------------------------------------------------------------------------- 1 | running 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/nodetool/version: -------------------------------------------------------------------------------- 1 | DSE version: 6.7.7 2 | ReleaseVersion: 4.0.0.677 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/ntp/ntpstat: -------------------------------------------------------------------------------- 1 | Exception running ntpstat: java.io.IOException: Cannot run program "ntpstat": error=2, No such file or directory -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/ntp/ntptime: -------------------------------------------------------------------------------- 1 | ntp_gettime() returns code 0 (OK) 2 | time e1c33112.2920c06c Fri, Jan 10 2020 17:21:22.160, (.160656924), 3 | maximum error 803089 us, estimated error 387 us, TAI offset 0 4 | ntp_adjtime() returns code 0 (OK) 5 | modes 0x0 (), 6 | offset 492.783 us, frequency 2.156 ppm, interval 1 s, 7 | maximum error 803089 us, estimated error 387 us, 8 | status 0x6001 (PLL,NANO,MODE), 9 | time constant 9, precision 0.001 us, tolerance 500 ppm, 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/os-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "sub_os" : "Ubuntu", 3 | "os_version" : "16.04" 4 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/os-metrics/cpu.json: -------------------------------------------------------------------------------- 1 | { 2 | "%user" : 1.53, 3 | "%nice" : 0.0, 4 | "%system" : 1.02, 5 | "%iowait" : 0.0, 6 | "%steal" : 0.0, 7 | "%idle" : 97.46 8 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/os-metrics/disk.json: -------------------------------------------------------------------------------- 1 | { 2 | "w/s" : { 3 | "loop0" : 0.0, 4 | "vda" : 0.0, 5 | "vdb" : 0.0 6 | }, 7 | "await" : { 8 | "loop0" : 0.0, 9 | "vda" : 0.0, 10 | "vdb" : 0.0 11 | }, 12 | "w_await" : { 13 | "loop0" : 0.0, 14 | "vda" : 0.0, 15 | "vdb" : 0.0 16 | }, 17 | "wMB/s" : { 18 | "loop0" : 0.0, 19 | "vda" : 0.0, 20 | "vdb" : 0.0 21 | }, 22 | "wrqm/s" : { 23 | "loop0" : 0.0, 24 | "vda" : 0.0, 25 | "vdb" : 0.0 26 | }, 27 | "rMB/s" : { 28 | "loop0" : 0.0, 29 | "vda" : 0.0, 30 | "vdb" : 0.0 31 | }, 32 | "r_await" : { 33 | "loop0" : 0.0, 34 | "vda" : 0.0, 35 | "vdb" : 0.0 36 | }, 37 | "%util" : { 38 | "loop0" : 0.0, 39 | "vda" : 0.0, 40 | "vdb" : 0.0 41 | }, 42 | "rrqm/s" : { 43 | "loop0" : 0.0, 44 | "vda" : 0.0, 45 | "vdb" : 0.0 46 | }, 47 | "r/s" : { 48 | "loop0" : 0.0, 49 | "vda" : 0.0, 50 | "vdb" : 0.0 51 | }, 52 | "svctm" : { 53 | "loop0" : 0.0, 54 | "vda" : 0.0, 55 | "vdb" : 0.0 56 | }, 57 | "avgrq-sz" : { 58 | "loop0" : 0.0, 59 | "vda" : 0.0, 60 | "vdb" : 0.0 61 | }, 62 | "avgqu-sz" : { 63 | "loop0" : 0.0, 64 | "vda" : 0.0, 65 | "vdb" : 0.0 66 | } 67 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/os-metrics/disk_space.json: -------------------------------------------------------------------------------- 1 | { 2 | "free" : { 3 | "/dev/vda2" : 67.19, 4 | "/dev/vdb" : 79.98 5 | }, 6 | "used" : { 7 | "/dev/vda2" : 4.49, 8 | "/dev/vdb" : 0.0 9 | }, 10 | "percentage" : { 11 | "/dev/vda2" : 7, 12 | "/dev/vdb" : 1 13 | } 14 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/os-metrics/load_avg.json: -------------------------------------------------------------------------------- 1 | 2.6 -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/os-metrics/memory.json: -------------------------------------------------------------------------------- 1 | { 2 | "used" : 6389, 3 | "free" : 5239, 4 | "shared" : 11, 5 | "buffers" : 88, 6 | "cache" : 3321, 7 | "available" : 8250 8 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/process_limits: -------------------------------------------------------------------------------- 1 | clojure.lang.ExceptionInfo: throw+: {:type :opsagent.jmx/not-jmx-context, :message "[BUG] Tried to access JMX mbean outside of JMX context.", :details {:mbean "java.lang:type=Runtime", :attributes [:Name]}} {:type :opsagent.jmx/not-jmx-context, :message "[BUG] Tried to access JMX mbean outside of JMX context.", :details {:mbean "java.lang:type=Runtime", :attributes [:Name]}} -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/nodes/10.101.35.71/solr/index_size.json: -------------------------------------------------------------------------------- 1 | { 2 | "my_solr.my_table" : 313178553 3 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/opscenterd/agent_requests.json: -------------------------------------------------------------------------------- 1 | { 2 | "10.101.33.205": "success", 3 | "10.101.35.102": "success", 4 | "10.101.35.71": "success" 5 | } -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/opscenterd/best_practice_rules.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/testdata/diag/DSE_CLUSTER/opscenterd/clusters/Sperf_Cluster.conf: -------------------------------------------------------------------------------- 1 | [kerberos] 2 | default_service = 3 | opscenterd_client_principal = 4 | opscenterd_keytab_location = 5 | agent_keytab_location = 6 | agent_client_principal = 7 | 8 | [agents] 9 | ssl_truststore_password = redacted 10 | ssl_keystore_password = redacted 11 | ssl_keystore = 12 | ssl_truststore = 13 | 14 | [jmx] 15 | password = redacted 16 | port = 7199 17 | username = 18 | 19 | [cassandra] 20 | ssl_truststore_password = redacted 21 | cql_port = 9042 22 | seed_hosts = 10.101.33.205,10.101.35.71,10.101.35.102 23 | password = redacted 24 | ssl_keystore_password = redacted 25 | ssl_keystore = 26 | ssl_truststore = 27 | username = 28 | 29 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/conf/cassandra/cassandra-rackdc.properties: -------------------------------------------------------------------------------- 1 | dc=DC1 2 | dc_suffix=DC1 3 | rack=rack1 4 | 5 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/conf/cassandra/logback-tools.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | System.err 23 | 24 | %-5level %date{HH:mm:ss,SSS} %msg%n 25 | 26 | 27 | WARN 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/driver/metadata: -------------------------------------------------------------------------------- 1 | 2 | Cluster: COSS_tarball 3 | Partitioner: Murmur3Partitioner 4 | 5 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/driver/schema: -------------------------------------------------------------------------------- 1 | 2 | CREATE KEYSPACE mc WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '2'} AND durable_writes = true; 3 | 4 | CREATE TABLE mc.tokens ( 5 | key int, 6 | c1 int, 7 | c2 int, 8 | c3 int, 9 | PRIMARY KEY (key, c1) 10 | ) WITH CLUSTERING ORDER BY (c1 ASC) 11 | AND bloom_filter_fp_chance = 0.01 12 | AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}' 13 | AND comment = '' 14 | AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'} 15 | AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} 16 | AND dclocal_read_repair_chance = 0.1 17 | AND default_time_to_live = 0 18 | AND gc_grace_seconds = 864000 19 | AND max_index_interval = 2048 20 | AND memtable_flush_period_in_ms = 0 21 | AND min_index_interval = 128 22 | AND read_repair_chance = 0.0 23 | AND speculative_retry = '99.0PERCENTILE'; 24 | 25 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/jmx_dump.json: -------------------------------------------------------------------------------- 1 | nodetool: Found unexpected parameters: [sjk, mxdump] 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/cfhistograms: -------------------------------------------------------------------------------- 1 | nodetool: cfhistograms requires ks and cf args 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/compactionstats: -------------------------------------------------------------------------------- 1 | pending tasks: 0 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/describecluster: -------------------------------------------------------------------------------- 1 | Cluster Information: 2 | Name: COSS_tarball 3 | Snitch: org.apache.cassandra.locator.DynamicEndpointSnitch 4 | Partitioner: org.apache.cassandra.dht.Murmur3Partitioner 5 | Schema versions: 6 | 6d02aa79-9cbd-3d26-adc6-528086138fe4: [10.101.35.67, 10.101.34.223, 10.101.34.191] 7 | 8 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/getcompactionthroughput: -------------------------------------------------------------------------------- 1 | Current compaction throughput: 16 MB/s 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/getstreamthroughput: -------------------------------------------------------------------------------- 1 | Current stream throughput: 200 Mb/s 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/gossipinfo: -------------------------------------------------------------------------------- 1 | /10.101.35.67 2 | generation:1576667827 3 | heartbeat:5551264 4 | STATUS:16:NORMAL,-9223372036854775808 5 | LOAD:5551164:113761.0 6 | SCHEMA:5501718:6d02aa79-9cbd-3d26-adc6-528086138fe4 7 | DC:6:datacenter1 8 | RACK:8:rack1 9 | RELEASE_VERSION:4:2.1.17 10 | RPC_ADDRESS:3:10.101.35.67 11 | SEVERITY:5551263:0.0 12 | NET_VERSION:1:8 13 | HOST_ID:2:d7d8a2d8-f9f1-4c42-b534-88dc06942086 14 | TOKENS:15: 15 | /10.101.34.191 16 | generation:1576667870 17 | heartbeat:5551257 18 | STATUS:126:NORMAL,3074457345618258602 19 | LOAD:5551098:110009.0 20 | SCHEMA:5501708:6d02aa79-9cbd-3d26-adc6-528086138fe4 21 | DC:6:datacenter1 22 | RACK:8:rack1 23 | RELEASE_VERSION:4:2.1.17 24 | RPC_ADDRESS:3:10.101.34.191 25 | SEVERITY:5551256:0.0 26 | NET_VERSION:1:8 27 | HOST_ID:2:6445a547-5d5e-4fd1-b3a7-2b83de6c0657 28 | TOKENS:125: 29 | /10.101.34.223 30 | generation:1576667848 31 | heartbeat:5551203 32 | STATUS:18:NORMAL,-3074457345618258603 33 | LOAD:5551166:94262.0 34 | SCHEMA:5501656:6d02aa79-9cbd-3d26-adc6-528086138fe4 35 | DC:6:datacenter1 36 | RACK:8:rack1 37 | RELEASE_VERSION:4:2.1.17 38 | RPC_ADDRESS:3:10.101.34.223 39 | SEVERITY:5551205:0.0 40 | NET_VERSION:1:8 41 | HOST_ID:2:f3ca4601-0216-48dc-84a5-08086de5034f 42 | TOKENS:17: 43 | 44 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/info: -------------------------------------------------------------------------------- 1 | ID : 6445a547-5d5e-4fd1-b3a7-2b83de6c0657 2 | Gossip active : true 3 | Thrift active : true 4 | Native Transport active: true 5 | Load : 107.43 KB 6 | Generation No : 1576667870 7 | Uptime (seconds) : 1830184 8 | Heap Memory (MB) : 517.57 / 1976.00 9 | Off Heap Memory (MB) : 0.00 10 | Data Center : datacenter1 11 | Rack : rack1 12 | Exceptions : 0 13 | Key Cache : entries 11, size 840 bytes, capacity 98 MB, 18354 hits, 18375 requests, 0.999 recent hit rate, 14400 save period in seconds 14 | Row Cache : entries 0, size 0 bytes, capacity 0 bytes, 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds 15 | Counter Cache : entries 0, size 0 bytes, capacity 49 MB, 0 hits, 0 requests, NaN recent hit rate, 7200 save period in seconds 16 | Token : 3074457345618258602 17 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/netstats: -------------------------------------------------------------------------------- 1 | Mode: NORMAL 2 | Not sending any streams. 3 | Read Repair Statistics: 4 | Attempted: 0 5 | Mismatch (Blocking): 0 6 | Mismatch (Background): 0 7 | Pool Name Active Pending Completed Dropped 8 | Commands n/a 0 26 0 9 | Responses n/a 0 5489400 n/a 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/proxyhistograms: -------------------------------------------------------------------------------- 1 | proxy histograms 2 | Percentile Read Latency Write Latency Range Latency 3 | (micros) (micros) (micros) 4 | 50% 642.00 0.00 1916.00 5 | 75% 3973.00 0.00 2299.00 6 | 95% 8239.00 0.00 6866.00 7 | 98% 8239.00 0.00 6866.00 8 | 99% 8239.00 0.00 6866.00 9 | Min 216.00 0.00 311.00 10 | Max 8239.00 0.00 6866.00 11 | 12 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/ring: -------------------------------------------------------------------------------- 1 | 2 | Datacenter: datacenter1 3 | ========== 4 | Address Rack Status State Load Owns Token 5 | 3074457345618258602 6 | 10.101.35.67 rack1 Up Normal 111.09 KB 66.67% -9223372036854775808 7 | 10.101.34.223 rack1 Up Normal 92.05 KB 66.67% -3074457345618258603 8 | 10.101.34.191 rack1 Up Normal 107.43 KB 66.67% 3074457345618258602 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/status: -------------------------------------------------------------------------------- 1 | Datacenter: datacenter1 2 | ======================= 3 | Status=Up/Down 4 | |/ State=Normal/Leaving/Joining/Moving 5 | -- Address Load Tokens Owns (effective) Host ID Rack 6 | UN 10.101.35.67 111.09 KB 1 66.7% d7d8a2d8-f9f1-4c42-b534-88dc06942086 rack1 7 | UN 10.101.34.223 92.05 KB 1 66.7% f3ca4601-0216-48dc-84a5-08086de5034f rack1 8 | UN 10.101.34.191 107.43 KB 1 66.7% 6445a547-5d5e-4fd1-b3a7-2b83de6c0657 rack1 9 | 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/statusbinary: -------------------------------------------------------------------------------- 1 | running 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/tablestats.json: -------------------------------------------------------------------------------- 1 | nodetool: Found unexpected parameters: [-F, json, tablestats] 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/tpstats.json: -------------------------------------------------------------------------------- 1 | nodetool: Found unexpected parameters: [-F, json, tpstats] 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/nodetool/version: -------------------------------------------------------------------------------- 1 | ReleaseVersion: 2.1.17 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/ntp/ntpstat: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/ntp/ntptime: -------------------------------------------------------------------------------- 1 | ntp_gettime() returns code 0 (OK) 2 | time e1c07695.3a39e6ac Wed, Jan 8 2020 15:41:09.227, (.227446851), 3 | maximum error 720471 us, estimated error 584 us, TAI offset 0 4 | ntp_adjtime() returns code 0 (OK) 5 | modes 0x0 (), 6 | offset 1249.947 us, frequency 1.803 ppm, interval 1 s, 7 | maximum error 720471 us, estimated error 584 us, 8 | status 0x6001 (PLL,NANO,MODE), 9 | time constant 10, precision 0.001 us, tolerance 500 ppm, 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-info.txt: -------------------------------------------------------------------------------- 1 | kernel_name: Linux 2 | node_name: ip-10-101-34-191.srv101.dsinternal.org 3 | kernel_release: 4.4.0-166-generic 4 | kernel_version: #195-Ubuntu SMP Tue Oct 1 09:35:25 UTC 2019 5 | machine_type: x86_64 6 | processor_type: x86_64 7 | platform_type: x86_64 8 | os_type: GNU/Linux 9 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/blockdev_report: -------------------------------------------------------------------------------- 1 | RO RA SSZ BSZ StartSec Size Device 2 | rw 256 512 4096 0 34359738368 /dev/vda 3 | rw 256 512 4096 2048 8388608 /dev/vda1 4 | rw 256 512 4096 18432 34350284288 /dev/vda2 5 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/cpu.txt: -------------------------------------------------------------------------------- 1 | user: 0.1 2 | nice: 0.0 3 | system: 0.0 4 | iowait: 0.0 5 | steal: 0.0 6 | idle: 99.9 7 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/df: -------------------------------------------------------------------------------- 1 | Filesystem 1K-blocks Used Available Use% Mounted on 2 | udev 4066220 0 4066220 0% /dev 3 | tmpfs 817496 27796 789700 4% /run 4 | /dev/vda2 31386364 1865768 28131492 7% / 5 | tmpfs 4087472 0 4087472 0% /dev/shm 6 | tmpfs 5120 0 5120 0% /run/lock 7 | tmpfs 4087472 0 4087472 0% /sys/fs/cgroup 8 | tmpfs 817496 0 817496 0% /run/user/1002 9 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/disk_config.txt: -------------------------------------------------------------------------------- 1 | data: /usr/local/lib/cassandra/data/data 2 | commitlog: /usr/local/lib/cassandra/data/commitlog 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/disk_device.txt: -------------------------------------------------------------------------------- 1 | data: ,/dev/vda2 2 | commitlog: /dev/vda2 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/free: -------------------------------------------------------------------------------- 1 | total used free shared buff/cache available 2 | Mem: 8174944 2402044 5271808 27820 501092 5446840 3 | Swap: 0 0 0 4 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/hugepage_defrag: -------------------------------------------------------------------------------- 1 | always madvise [never] 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/lscpu: -------------------------------------------------------------------------------- 1 | Architecture: x86_64 2 | CPU op-mode(s): 32-bit, 64-bit 3 | Byte Order: Little Endian 4 | CPU(s): 2 5 | On-line CPU(s) list: 0,1 6 | Thread(s) per core: 1 7 | Core(s) per socket: 1 8 | Socket(s): 2 9 | NUMA node(s): 1 10 | Vendor ID: GenuineIntel 11 | CPU family: 6 12 | Model: 85 13 | Model name: Intel Xeon Processor (Skylake) 14 | Stepping: 4 15 | CPU MHz: 2095.078 16 | BogoMIPS: 4190.15 17 | Virtualization: VT-x 18 | Hypervisor vendor: KVM 19 | Virtualization type: full 20 | L1d cache: 32K 21 | L1i cache: 32K 22 | L2 cache: 4096K 23 | L3 cache: 16384K 24 | NUMA node0 CPU(s): 0,1 25 | Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology tsc_known_freq pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f rdseed adx smap clflushopt clwb avx512cd xsaveopt xsavec xgetbv1 arat 26 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/memory.txt: -------------------------------------------------------------------------------- 1 | mem total: 7983 2 | mem used: 2345 3 | mem free: 5148 4 | mem shared: 27 5 | mem buff/cache: 489 6 | mem available: 5319 7 | swap total: 0 8 | swap used: 0 9 | swap free: 0 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/wmstat-disk: -------------------------------------------------------------------------------- 1 | disk- -------------------reads------------------- -------------------writes------------------ ------IO------- -----timestamp----- 2 | total merged sectors ms total merged sectors ms cur sec UTC 3 | loop0 5 0 16 0 0 0 0 0 0 0 2020-01-08 15:41:09 4 | loop1 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:41:09 5 | loop2 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:41:09 6 | loop3 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:41:09 7 | loop4 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:41:09 8 | loop5 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:41:09 9 | loop6 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:41:09 10 | loop7 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:41:09 11 | vda 20627 184 728129 15028 457012 219875 11207960 581180 0 34 2020-01-08 15:41:09 12 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/wmstat-mem: -------------------------------------------------------------------------------- 1 | procs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu-------- -----timestamp----- 2 | r b swpd free inact active si so bi bo in cs us sy id wa st UTC 3 | 0 0 0 5271860 191324 285644 0 0 0 1 7 1 0 0 100 0 0 2020-01-08 15:41:09 4 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/os-metrics/wmstat-stat: -------------------------------------------------------------------------------- 1 | 8174944 K total memory 2 | 2402032 K used memory 3 | 285644 K active memory 4 | 191324 K inactive memory 5 | 5271860 K free memory 6 | 98980 K buffer memory 7 | 402072 K swap cache 8 | 0 K total swap 9 | 0 K used swap 10 | 0 K free swap 11 | 231364 non-nice user cpu ticks 12 | 3964 nice user cpu ticks 13 | 124376 system cpu ticks 14 | 382789275 idle cpu ticks 15 | 5757 IO-wait cpu ticks 16 | 0 IRQ cpu ticks 17 | 8192 softirq cpu ticks 18 | 1310 stolen cpu ticks 19 | 364072 pages paged in 20 | 5603980 pages paged out 21 | 0 pages swapped in 22 | 0 pages swapped out 23 | 286406611 interrupts 24 | 518756057 CPU context switches 25 | 1576578239 boot time 26 | 86094 forks 27 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.191/process_limits: -------------------------------------------------------------------------------- 1 | Limit Soft Limit Hard Limit Units 2 | Max cpu time unlimited unlimited seconds 3 | Max file size unlimited unlimited bytes 4 | Max data size unlimited unlimited bytes 5 | Max stack size 8388608 unlimited bytes 6 | Max core file size 0 unlimited bytes 7 | Max resident set unlimited unlimited bytes 8 | Max processes 32768 32768 processes 9 | Max open files 1048576 1048576 files 10 | Max locked memory unlimited unlimited bytes 11 | Max address space unlimited unlimited bytes 12 | Max file locks unlimited unlimited locks 13 | Max pending signals 31767 31767 signals 14 | Max msgqueue size 819200 819200 bytes 15 | Max nice priority 0 0 16 | Max realtime priority 0 0 17 | Max realtime timeout unlimited unlimited us 18 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/conf/cassandra/cassandra-rackdc.properties: -------------------------------------------------------------------------------- 1 | dc=DC1 2 | dc_suffix=DC1 3 | rack=rack1 4 | 5 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/conf/cassandra/logback-tools.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | System.err 23 | 24 | %-5level %date{HH:mm:ss,SSS} %msg%n 25 | 26 | 27 | WARN 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/driver/metadata: -------------------------------------------------------------------------------- 1 | 2 | Cluster: COSS_tarball 3 | Partitioner: Murmur3Partitioner 4 | 5 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/driver/schema: -------------------------------------------------------------------------------- 1 | 2 | CREATE KEYSPACE mc WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '2'} AND durable_writes = true; 3 | 4 | CREATE TABLE mc.tokens ( 5 | key int, 6 | c1 int, 7 | c2 int, 8 | c3 int, 9 | PRIMARY KEY (key, c1) 10 | ) WITH CLUSTERING ORDER BY (c1 ASC) 11 | AND bloom_filter_fp_chance = 0.01 12 | AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}' 13 | AND comment = '' 14 | AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'} 15 | AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} 16 | AND dclocal_read_repair_chance = 0.1 17 | AND default_time_to_live = 0 18 | AND gc_grace_seconds = 864000 19 | AND max_index_interval = 2048 20 | AND memtable_flush_period_in_ms = 0 21 | AND min_index_interval = 128 22 | AND read_repair_chance = 0.0 23 | AND speculative_retry = '99.0PERCENTILE'; 24 | 25 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/jmx_dump.json: -------------------------------------------------------------------------------- 1 | nodetool: Found unexpected parameters: [sjk, mxdump] 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/cfhistograms: -------------------------------------------------------------------------------- 1 | nodetool: cfhistograms requires ks and cf args 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/compactionstats: -------------------------------------------------------------------------------- 1 | pending tasks: 0 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/describecluster: -------------------------------------------------------------------------------- 1 | Cluster Information: 2 | Name: COSS_tarball 3 | Snitch: org.apache.cassandra.locator.DynamicEndpointSnitch 4 | Partitioner: org.apache.cassandra.dht.Murmur3Partitioner 5 | Schema versions: 6 | 6d02aa79-9cbd-3d26-adc6-528086138fe4: [10.101.35.67, 10.101.34.191, 10.101.34.223] 7 | 8 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/getcompactionthroughput: -------------------------------------------------------------------------------- 1 | Current compaction throughput: 16 MB/s 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/getstreamthroughput: -------------------------------------------------------------------------------- 1 | Current stream throughput: 200 Mb/s 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/gossipinfo: -------------------------------------------------------------------------------- 1 | /10.101.35.67 2 | generation:1576667827 3 | heartbeat:5551180 4 | STATUS:16:NORMAL,-9223372036854775808 5 | LOAD:5551164:113761.0 6 | SCHEMA:5501718:6d02aa79-9cbd-3d26-adc6-528086138fe4 7 | DC:6:datacenter1 8 | RACK:8:rack1 9 | RELEASE_VERSION:4:2.1.17 10 | RPC_ADDRESS:3:10.101.35.67 11 | SEVERITY:5551179:0.0 12 | NET_VERSION:1:8 13 | HOST_ID:2:d7d8a2d8-f9f1-4c42-b534-88dc06942086 14 | TOKENS:15: 15 | /10.101.34.223 16 | generation:1576667848 17 | heartbeat:5551120 18 | STATUS:18:NORMAL,-3074457345618258603 19 | LOAD:5550984:94262.0 20 | SCHEMA:5501656:6d02aa79-9cbd-3d26-adc6-528086138fe4 21 | DC:6:datacenter1 22 | RACK:8:rack1 23 | RELEASE_VERSION:4:2.1.17 24 | RPC_ADDRESS:3:10.101.34.223 25 | SEVERITY:5551119:0.0 26 | NET_VERSION:1:8 27 | HOST_ID:2:f3ca4601-0216-48dc-84a5-08086de5034f 28 | TOKENS:17: 29 | /10.101.34.191 30 | generation:1576667870 31 | heartbeat:5551173 32 | STATUS:126:NORMAL,3074457345618258602 33 | LOAD:5551098:110009.0 34 | SCHEMA:5501708:6d02aa79-9cbd-3d26-adc6-528086138fe4 35 | DC:6:datacenter1 36 | RACK:8:rack1 37 | RELEASE_VERSION:4:2.1.17 38 | RPC_ADDRESS:3:10.101.34.191 39 | SEVERITY:5551172:0.0 40 | NET_VERSION:1:8 41 | HOST_ID:2:6445a547-5d5e-4fd1-b3a7-2b83de6c0657 42 | TOKENS:125: 43 | 44 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/info: -------------------------------------------------------------------------------- 1 | ID : f3ca4601-0216-48dc-84a5-08086de5034f 2 | Gossip active : true 3 | Thrift active : true 4 | Native Transport active: true 5 | Load : 92.05 KB 6 | Generation No : 1576667848 7 | Uptime (seconds) : 1830178 8 | Heap Memory (MB) : 489.11 / 1976.00 9 | Off Heap Memory (MB) : 0.00 10 | Data Center : datacenter1 11 | Rack : rack1 12 | Exceptions : 0 13 | Key Cache : entries 14, size 1.02 KB, capacity 98 MB, 12340 hits, 12361 requests, 0.998 recent hit rate, 14400 save period in seconds 14 | Row Cache : entries 0, size 0 bytes, capacity 0 bytes, 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds 15 | Counter Cache : entries 0, size 0 bytes, capacity 49 MB, 0 hits, 0 requests, NaN recent hit rate, 7200 save period in seconds 16 | Token : -3074457345618258603 17 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/netstats: -------------------------------------------------------------------------------- 1 | Mode: NORMAL 2 | Not sending any streams. 3 | Read Repair Statistics: 4 | Attempted: 0 5 | Mismatch (Blocking): 0 6 | Mismatch (Background): 0 7 | Pool Name Active Pending Completed Dropped 8 | Commands n/a 0 26 0 9 | Responses n/a 0 6862037 n/a 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/proxyhistograms: -------------------------------------------------------------------------------- 1 | proxy histograms 2 | Percentile Read Latency Write Latency Range Latency 3 | (micros) (micros) (micros) 4 | 50% 372.00 0.00 642.00 5 | 75% 642.00 0.00 2759.00 6 | 95% 4768.00 0.00 3973.00 7 | 98% 4768.00 0.00 3973.00 8 | 99% 4768.00 0.00 3973.00 9 | Min 216.00 0.00 150.00 10 | Max 4768.00 0.00 3973.00 11 | 12 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/ring: -------------------------------------------------------------------------------- 1 | 2 | Datacenter: datacenter1 3 | ========== 4 | Address Rack Status State Load Owns Token 5 | 3074457345618258602 6 | 10.101.35.67 rack1 Up Normal 111.09 KB 66.67% -9223372036854775808 7 | 10.101.34.223 rack1 Up Normal 92.05 KB 66.67% -3074457345618258603 8 | 10.101.34.191 rack1 Up Normal 107.43 KB 66.67% 3074457345618258602 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/status: -------------------------------------------------------------------------------- 1 | Datacenter: datacenter1 2 | ======================= 3 | Status=Up/Down 4 | |/ State=Normal/Leaving/Joining/Moving 5 | -- Address Load Tokens Owns (effective) Host ID Rack 6 | UN 10.101.35.67 111.09 KB 1 66.7% d7d8a2d8-f9f1-4c42-b534-88dc06942086 rack1 7 | UN 10.101.34.223 92.05 KB 1 66.7% f3ca4601-0216-48dc-84a5-08086de5034f rack1 8 | UN 10.101.34.191 107.43 KB 1 66.7% 6445a547-5d5e-4fd1-b3a7-2b83de6c0657 rack1 9 | 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/statusbinary: -------------------------------------------------------------------------------- 1 | running 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/tablestats.json: -------------------------------------------------------------------------------- 1 | nodetool: Found unexpected parameters: [-F, json, tablestats] 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/tpstats.json: -------------------------------------------------------------------------------- 1 | nodetool: Found unexpected parameters: [-F, json, tpstats] 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/nodetool/version: -------------------------------------------------------------------------------- 1 | ReleaseVersion: 2.1.17 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/ntp/ntpstat: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/ntp/ntptime: -------------------------------------------------------------------------------- 1 | ntp_gettime() returns code 0 (OK) 2 | time e1c0767a.c78bbd38 Wed, Jan 8 2020 15:40:42.779, (.779476910), 3 | maximum error 726778 us, estimated error 519 us, TAI offset 0 4 | ntp_adjtime() returns code 0 (OK) 5 | modes 0x0 (), 6 | offset 381.926 us, frequency -0.677 ppm, interval 1 s, 7 | maximum error 726778 us, estimated error 519 us, 8 | status 0x2001 (PLL,NANO), 9 | time constant 10, precision 0.001 us, tolerance 500 ppm, 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-info.txt: -------------------------------------------------------------------------------- 1 | kernel_name: Linux 2 | node_name: ip-10-101-34-223.srv101.dsinternal.org 3 | kernel_release: 4.4.0-166-generic 4 | kernel_version: #195-Ubuntu SMP Tue Oct 1 09:35:25 UTC 2019 5 | machine_type: x86_64 6 | processor_type: x86_64 7 | platform_type: x86_64 8 | os_type: GNU/Linux 9 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/blockdev_report: -------------------------------------------------------------------------------- 1 | RO RA SSZ BSZ StartSec Size Device 2 | rw 256 512 4096 0 34359738368 /dev/vda 3 | rw 256 512 4096 2048 8388608 /dev/vda1 4 | rw 256 512 4096 18432 34350284288 /dev/vda2 5 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/cpu.txt: -------------------------------------------------------------------------------- 1 | user: 0.1 2 | nice: 0.0 3 | system: 0.1 4 | iowait: 0.0 5 | steal: 0.0 6 | idle: 99.8 7 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/df: -------------------------------------------------------------------------------- 1 | Filesystem 1K-blocks Used Available Use% Mounted on 2 | udev 4066220 0 4066220 0% /dev 3 | tmpfs 817496 27796 789700 4% /run 4 | /dev/vda2 31386364 1866620 28130640 7% / 5 | tmpfs 4087472 0 4087472 0% /dev/shm 6 | tmpfs 5120 0 5120 0% /run/lock 7 | tmpfs 4087472 0 4087472 0% /sys/fs/cgroup 8 | tmpfs 817496 0 817496 0% /run/user/1002 9 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/disk_config.txt: -------------------------------------------------------------------------------- 1 | data: /usr/local/lib/cassandra/data/data 2 | commitlog: /usr/local/lib/cassandra/data/commitlog 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/disk_device.txt: -------------------------------------------------------------------------------- 1 | data: ,/dev/vda2 2 | commitlog: /dev/vda2 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/free: -------------------------------------------------------------------------------- 1 | total used free shared buff/cache available 2 | Mem: 8174944 2398944 5278884 27820 497116 5450000 3 | Swap: 0 0 0 4 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/hugepage_defrag: -------------------------------------------------------------------------------- 1 | always madvise [never] 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/lscpu: -------------------------------------------------------------------------------- 1 | Architecture: x86_64 2 | CPU op-mode(s): 32-bit, 64-bit 3 | Byte Order: Little Endian 4 | CPU(s): 2 5 | On-line CPU(s) list: 0,1 6 | Thread(s) per core: 1 7 | Core(s) per socket: 1 8 | Socket(s): 2 9 | NUMA node(s): 1 10 | Vendor ID: GenuineIntel 11 | CPU family: 6 12 | Model: 85 13 | Model name: Intel Xeon Processor (Skylake) 14 | Stepping: 4 15 | CPU MHz: 2095.078 16 | BogoMIPS: 4190.15 17 | Virtualization: VT-x 18 | Hypervisor vendor: KVM 19 | Virtualization type: full 20 | L1d cache: 32K 21 | L1i cache: 32K 22 | L2 cache: 4096K 23 | L3 cache: 16384K 24 | NUMA node0 CPU(s): 0,1 25 | Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology tsc_known_freq pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f rdseed adx smap clflushopt clwb avx512cd xsaveopt xsavec xgetbv1 arat 26 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/memory.txt: -------------------------------------------------------------------------------- 1 | mem total: 7983 2 | mem used: 2343 3 | mem free: 5154 4 | mem shared: 27 5 | mem buff/cache: 485 6 | mem available: 5322 7 | swap total: 0 8 | swap used: 0 9 | swap free: 0 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/wmstat-disk: -------------------------------------------------------------------------------- 1 | disk- -------------------reads------------------- -------------------writes------------------ ------IO------- -----timestamp----- 2 | total merged sectors ms total merged sectors ms cur sec UTC 3 | loop0 5 0 16 0 0 0 0 0 0 0 2020-01-08 15:40:42 4 | loop1 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:42 5 | loop2 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:42 6 | loop3 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:42 7 | loop4 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:42 8 | loop5 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:42 9 | loop6 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:42 10 | loop7 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:42 11 | vda 19524 184 578457 13416 477702 232055 11638128 655256 0 36 2020-01-08 15:40:42 12 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/wmstat-mem: -------------------------------------------------------------------------------- 1 | procs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu-------- -----timestamp----- 2 | r b swpd free inact active si so bi bo in cs us sy id wa st UTC 3 | 0 0 0 5278848 189436 282100 0 0 0 2 8 10 0 0 100 0 0 2020-01-08 15:40:42 4 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/os-metrics/wmstat-stat: -------------------------------------------------------------------------------- 1 | 8174944 K total memory 2 | 2399016 K used memory 3 | 282100 K active memory 4 | 189436 K inactive memory 5 | 5278848 K free memory 6 | 99016 K buffer memory 7 | 398064 K swap cache 8 | 0 K total swap 9 | 0 K used swap 10 | 0 K free swap 11 | 481102 non-nice user cpu ticks 12 | 5036 nice user cpu ticks 13 | 375079 system cpu ticks 14 | 382308086 idle cpu ticks 15 | 6509 IO-wait cpu ticks 16 | 0 IRQ cpu ticks 17 | 15173 softirq cpu ticks 18 | 2111 stolen cpu ticks 19 | 289236 pages paged in 20 | 5819064 pages paged out 21 | 0 pages swapped in 22 | 0 pages swapped out 23 | 288829510 interrupts 24 | 509093682 CPU context switches 25 | 1576578240 boot time 26 | 73800 forks 27 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.34.223/process_limits: -------------------------------------------------------------------------------- 1 | Limit Soft Limit Hard Limit Units 2 | Max cpu time unlimited unlimited seconds 3 | Max file size unlimited unlimited bytes 4 | Max data size unlimited unlimited bytes 5 | Max stack size 8388608 unlimited bytes 6 | Max core file size 0 unlimited bytes 7 | Max resident set unlimited unlimited bytes 8 | Max processes 32768 32768 processes 9 | Max open files 1048576 1048576 files 10 | Max locked memory unlimited unlimited bytes 11 | Max address space unlimited unlimited bytes 12 | Max file locks unlimited unlimited locks 13 | Max pending signals 31767 31767 signals 14 | Max msgqueue size 819200 819200 bytes 15 | Max nice priority 0 0 16 | Max realtime priority 0 0 17 | Max realtime timeout unlimited unlimited us 18 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/conf/cassandra/cassandra-rackdc.properties: -------------------------------------------------------------------------------- 1 | dc=DC1 2 | dc_suffix=DC1 3 | rack=rack1 4 | 5 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/conf/cassandra/logback-tools.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | System.err 23 | 24 | %-5level %date{HH:mm:ss,SSS} %msg%n 25 | 26 | 27 | WARN 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/driver/metadata: -------------------------------------------------------------------------------- 1 | 2 | Cluster: COSS_tarball 3 | Partitioner: Murmur3Partitioner 4 | 5 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/driver/schema: -------------------------------------------------------------------------------- 1 | 2 | CREATE KEYSPACE mc WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '2'} AND durable_writes = true; 3 | 4 | CREATE TABLE mc.tokens ( 5 | key int, 6 | c1 int, 7 | c2 int, 8 | c3 int, 9 | PRIMARY KEY (key, c1) 10 | ) WITH CLUSTERING ORDER BY (c1 ASC) 11 | AND bloom_filter_fp_chance = 0.01 12 | AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}' 13 | AND comment = '' 14 | AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'} 15 | AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} 16 | AND dclocal_read_repair_chance = 0.1 17 | AND default_time_to_live = 0 18 | AND gc_grace_seconds = 864000 19 | AND max_index_interval = 2048 20 | AND memtable_flush_period_in_ms = 0 21 | AND min_index_interval = 128 22 | AND read_repair_chance = 0.0 23 | AND speculative_retry = '99.0PERCENTILE'; 24 | 25 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/jmx_dump.json: -------------------------------------------------------------------------------- 1 | nodetool: Found unexpected parameters: [sjk, mxdump] 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/cfhistograms: -------------------------------------------------------------------------------- 1 | nodetool: cfhistograms requires ks and cf args 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/compactionstats: -------------------------------------------------------------------------------- 1 | pending tasks: 0 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/describecluster: -------------------------------------------------------------------------------- 1 | Cluster Information: 2 | Name: COSS_tarball 3 | Snitch: org.apache.cassandra.locator.DynamicEndpointSnitch 4 | Partitioner: org.apache.cassandra.dht.Murmur3Partitioner 5 | Schema versions: 6 | 6d02aa79-9cbd-3d26-adc6-528086138fe4: [10.101.35.67, 10.101.34.191, 10.101.34.223] 7 | 8 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/getcompactionthroughput: -------------------------------------------------------------------------------- 1 | Current compaction throughput: 16 MB/s 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/getstreamthroughput: -------------------------------------------------------------------------------- 1 | Current stream throughput: 200 Mb/s 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/gossipinfo: -------------------------------------------------------------------------------- 1 | /10.101.35.67 2 | generation:1576667827 3 | heartbeat:5551094 4 | STATUS:16:NORMAL,-9223372036854775808 5 | LOAD:5550982:113761.0 6 | SCHEMA:5501718:6d02aa79-9cbd-3d26-adc6-528086138fe4 7 | DC:6:datacenter1 8 | RACK:8:rack1 9 | RELEASE_VERSION:4:2.1.17 10 | RPC_ADDRESS:3:10.101.35.67 11 | SEVERITY:5551093:0.0 12 | NET_VERSION:1:8 13 | HOST_ID:2:d7d8a2d8-f9f1-4c42-b534-88dc06942086 14 | TOKENS:15: 15 | /10.101.34.223 16 | generation:1576667848 17 | heartbeat:5551033 18 | STATUS:18:NORMAL,-3074457345618258603 19 | LOAD:5550984:94262.0 20 | SCHEMA:5501656:6d02aa79-9cbd-3d26-adc6-528086138fe4 21 | DC:6:datacenter1 22 | RACK:8:rack1 23 | RELEASE_VERSION:4:2.1.17 24 | RPC_ADDRESS:3:10.101.34.223 25 | SEVERITY:5551032:0.0 26 | NET_VERSION:1:8 27 | HOST_ID:2:f3ca4601-0216-48dc-84a5-08086de5034f 28 | TOKENS:17: 29 | /10.101.34.191 30 | generation:1576667870 31 | heartbeat:5551084 32 | STATUS:126:NORMAL,3074457345618258602 33 | LOAD:5550916:110009.0 34 | SCHEMA:5501708:6d02aa79-9cbd-3d26-adc6-528086138fe4 35 | DC:6:datacenter1 36 | RACK:8:rack1 37 | RELEASE_VERSION:4:2.1.17 38 | RPC_ADDRESS:3:10.101.34.191 39 | SEVERITY:5551083:0.0 40 | NET_VERSION:1:8 41 | HOST_ID:2:6445a547-5d5e-4fd1-b3a7-2b83de6c0657 42 | TOKENS:125: 43 | 44 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/info: -------------------------------------------------------------------------------- 1 | ID : d7d8a2d8-f9f1-4c42-b534-88dc06942086 2 | Gossip active : true 3 | Thrift active : true 4 | Native Transport active: true 5 | Load : 111.09 KB 6 | Generation No : 1576667827 7 | Uptime (seconds) : 1830170 8 | Heap Memory (MB) : 446.61 / 1976.00 9 | Off Heap Memory (MB) : 0.00 10 | Data Center : datacenter1 11 | Rack : rack1 12 | Exceptions : 0 13 | Key Cache : entries 11, size 824 bytes, capacity 98 MB, 6291 hits, 6305 requests, 0.998 recent hit rate, 14400 save period in seconds 14 | Row Cache : entries 0, size 0 bytes, capacity 0 bytes, 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds 15 | Counter Cache : entries 0, size 0 bytes, capacity 49 MB, 0 hits, 0 requests, NaN recent hit rate, 7200 save period in seconds 16 | Token : -9223372036854775808 17 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/netstats: -------------------------------------------------------------------------------- 1 | Mode: NORMAL 2 | Not sending any streams. 3 | Read Repair Statistics: 4 | Attempted: 0 5 | Mismatch (Blocking): 0 6 | Mismatch (Background): 0 7 | Pool Name Active Pending Completed Dropped 8 | Commands n/a 0 67 0 9 | Responses n/a 0 6862260 n/a 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/proxyhistograms: -------------------------------------------------------------------------------- 1 | proxy histograms 2 | Percentile Read Latency Write Latency Range Latency 3 | (micros) (micros) (micros) 4 | 50% 1109.00 6866.00 1109.00 5 | 75% 1597.00 6866.00 1597.00 6 | 95% 3311.00 6866.00 5722.00 7 | 98% 5722.00 6866.00 17084.00 8 | 99% 5722.00 6866.00 17084.00 9 | Min 180.00 5723.00 73.00 10 | Max 5722.00 6866.00 17084.00 11 | 12 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/ring: -------------------------------------------------------------------------------- 1 | 2 | Datacenter: datacenter1 3 | ========== 4 | Address Rack Status State Load Owns Token 5 | 3074457345618258602 6 | 10.101.35.67 rack1 Up Normal 111.09 KB 66.67% -9223372036854775808 7 | 10.101.34.223 rack1 Up Normal 92.05 KB 66.67% -3074457345618258603 8 | 10.101.34.191 rack1 Up Normal 107.43 KB 66.67% 3074457345618258602 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/status: -------------------------------------------------------------------------------- 1 | Datacenter: datacenter1 2 | ======================= 3 | Status=Up/Down 4 | |/ State=Normal/Leaving/Joining/Moving 5 | -- Address Load Tokens Owns (effective) Host ID Rack 6 | UN 10.101.35.67 111.09 KB 1 66.7% d7d8a2d8-f9f1-4c42-b534-88dc06942086 rack1 7 | UN 10.101.34.223 92.05 KB 1 66.7% f3ca4601-0216-48dc-84a5-08086de5034f rack1 8 | UN 10.101.34.191 107.43 KB 1 66.7% 6445a547-5d5e-4fd1-b3a7-2b83de6c0657 rack1 9 | 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/statusbinary: -------------------------------------------------------------------------------- 1 | running 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/tablestats.json: -------------------------------------------------------------------------------- 1 | nodetool: Found unexpected parameters: [-F, json, tablestats] 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/tpstats.json: -------------------------------------------------------------------------------- 1 | nodetool: Found unexpected parameters: [-F, json, tpstats] 2 | See 'nodetool help' or 'nodetool help '. 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/nodetool/version: -------------------------------------------------------------------------------- 1 | ReleaseVersion: 2.1.17 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/ntp/ntpstat: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/ntp/ntptime: -------------------------------------------------------------------------------- 1 | ntp_gettime() returns code 0 (OK) 2 | time e1c0765e.1586a8fc Wed, Jan 8 2020 15:40:14.084, (.084086053), 3 | maximum error 739398 us, estimated error 438 us, TAI offset 0 4 | ntp_adjtime() returns code 0 (OK) 5 | modes 0x0 (), 6 | offset 649.543 us, frequency -4.541 ppm, interval 1 s, 7 | maximum error 739398 us, estimated error 438 us, 8 | status 0x2001 (PLL,NANO), 9 | time constant 10, precision 0.001 us, tolerance 500 ppm, 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-info.txt: -------------------------------------------------------------------------------- 1 | kernel_name: Linux 2 | node_name: ip-10-101-35-67.srv101.dsinternal.org 3 | kernel_release: 4.4.0-166-generic 4 | kernel_version: #195-Ubuntu SMP Tue Oct 1 09:35:25 UTC 2019 5 | machine_type: x86_64 6 | processor_type: x86_64 7 | platform_type: x86_64 8 | os_type: GNU/Linux 9 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/blockdev_report: -------------------------------------------------------------------------------- 1 | RO RA SSZ BSZ StartSec Size Device 2 | rw 256 512 4096 0 34359738368 /dev/vda 3 | rw 256 512 4096 2048 8388608 /dev/vda1 4 | rw 256 512 4096 18432 34350284288 /dev/vda2 5 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/cpu.txt: -------------------------------------------------------------------------------- 1 | user: 0.1 2 | nice: 0.0 3 | system: 0.1 4 | iowait: 0.0 5 | steal: 0.0 6 | idle: 99.8 7 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/df: -------------------------------------------------------------------------------- 1 | Filesystem 1K-blocks Used Available Use% Mounted on 2 | udev 4066220 0 4066220 0% /dev 3 | tmpfs 817496 36044 781452 5% /run 4 | /dev/vda2 31386364 1887288 28109972 7% / 5 | tmpfs 4087472 0 4087472 0% /dev/shm 6 | tmpfs 5120 0 5120 0% /run/lock 7 | tmpfs 4087472 0 4087472 0% /sys/fs/cgroup 8 | tmpfs 817496 0 817496 0% /run/user/1002 9 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/disk_config.txt: -------------------------------------------------------------------------------- 1 | data: /usr/local/lib/cassandra/data/data 2 | commitlog: /usr/local/lib/cassandra/data/commitlog 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/disk_device.txt: -------------------------------------------------------------------------------- 1 | data: ,/dev/vda2 2 | commitlog: /dev/vda2 3 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/free: -------------------------------------------------------------------------------- 1 | total used free shared buff/cache available 2 | Mem: 8174944 2401960 5197468 36068 575516 5422852 3 | Swap: 0 0 0 4 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/hugepage_defrag: -------------------------------------------------------------------------------- 1 | always madvise [never] 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/lscpu: -------------------------------------------------------------------------------- 1 | Architecture: x86_64 2 | CPU op-mode(s): 32-bit, 64-bit 3 | Byte Order: Little Endian 4 | CPU(s): 2 5 | On-line CPU(s) list: 0,1 6 | Thread(s) per core: 1 7 | Core(s) per socket: 1 8 | Socket(s): 2 9 | NUMA node(s): 1 10 | Vendor ID: GenuineIntel 11 | CPU family: 6 12 | Model: 85 13 | Model name: Intel Xeon Processor (Skylake) 14 | Stepping: 4 15 | CPU MHz: 2095.078 16 | BogoMIPS: 4190.15 17 | Virtualization: VT-x 18 | Hypervisor vendor: KVM 19 | Virtualization type: full 20 | L1d cache: 32K 21 | L1i cache: 32K 22 | L2 cache: 4096K 23 | L3 cache: 16384K 24 | NUMA node0 CPU(s): 0,1 25 | Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology tsc_known_freq pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f rdseed adx smap clflushopt clwb avx512cd xsaveopt xsavec xgetbv1 arat 26 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/memory.txt: -------------------------------------------------------------------------------- 1 | mem total: 7983 2 | mem used: 2345 3 | mem free: 5075 4 | mem shared: 35 5 | mem buff/cache: 561 6 | mem available: 5296 7 | swap total: 0 8 | swap used: 0 9 | swap free: 0 10 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/wmstat-disk: -------------------------------------------------------------------------------- 1 | disk- -------------------reads------------------- -------------------writes------------------ ------IO------- -----timestamp----- 2 | total merged sectors ms total merged sectors ms cur sec UTC 3 | loop0 5 0 16 4 0 0 0 0 0 0 2020-01-08 15:40:14 4 | loop1 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:14 5 | loop2 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:14 6 | loop3 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:14 7 | loop4 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:14 8 | loop5 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:14 9 | loop6 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:14 10 | loop7 0 0 0 0 0 0 0 0 0 0 2020-01-08 15:40:14 11 | vda 20981 206 755745 17676 489355 257254 12204648 764604 0 40 2020-01-08 15:40:14 12 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/wmstat-mem: -------------------------------------------------------------------------------- 1 | procs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu-------- -----timestamp----- 2 | r b swpd free inact active si so bi bo in cs us sy id wa st UTC 3 | 0 0 0 5197896 211940 316328 0 0 0 2 8 0 0 0 100 0 0 2020-01-08 15:40:14 4 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/os-metrics/wmstat-stat: -------------------------------------------------------------------------------- 1 | 8174944 K total memory 2 | 2401688 K used memory 3 | 316328 K active memory 4 | 211940 K inactive memory 5 | 5197896 K free memory 6 | 100856 K buffer memory 7 | 474504 K swap cache 8 | 0 K total swap 9 | 0 K used swap 10 | 0 K free swap 11 | 512864 non-nice user cpu ticks 12 | 5010 nice user cpu ticks 13 | 306705 system cpu ticks 14 | 382208679 idle cpu ticks 15 | 6893 IO-wait cpu ticks 16 | 0 IRQ cpu ticks 17 | 17760 softirq cpu ticks 18 | 3247 stolen cpu ticks 19 | 377880 pages paged in 20 | 6102324 pages paged out 21 | 0 pages swapped in 22 | 0 pages swapped out 23 | 290066511 interrupts 24 | 516343871 CPU context switches 25 | 1576578242 boot time 26 | 103053 forks 27 | -------------------------------------------------------------------------------- /tests/testdata/diag/cassandra/nodes/10.101.35.67/process_limits: -------------------------------------------------------------------------------- 1 | Limit Soft Limit Hard Limit Units 2 | Max cpu time unlimited unlimited seconds 3 | Max file size unlimited unlimited bytes 4 | Max data size unlimited unlimited bytes 5 | Max stack size 8388608 unlimited bytes 6 | Max core file size 0 unlimited bytes 7 | Max resident set unlimited unlimited bytes 8 | Max processes 32768 32768 processes 9 | Max open files 1048576 1048576 files 10 | Max locked memory unlimited unlimited bytes 11 | Max address space unlimited unlimited bytes 12 | Max file locks unlimited unlimited locks 13 | Max pending signals 31767 31767 signals 14 | Max msgqueue size 819200 819200 bytes 15 | Max nice priority 0 0 16 | Max realtime priority 0 0 17 | Max realtime timeout unlimited unlimited us 18 | -------------------------------------------------------------------------------- /tests/testdata/diag/empty/nodes/node1/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/empty/nodes/node1/.gitkeep -------------------------------------------------------------------------------- /tests/testdata/diag/empty/nodes/node2/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/empty/nodes/node2/.gitkeep -------------------------------------------------------------------------------- /tests/testdata/diag/empty/nodes/node3/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/empty/nodes/node3/.gitkeep -------------------------------------------------------------------------------- /tests/testdata/diag/findfiles/nodes/node1/debug.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/findfiles/nodes/node1/debug.log -------------------------------------------------------------------------------- /tests/testdata/diag/findfiles/nodes/node1/my.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/findfiles/nodes/node1/my.log -------------------------------------------------------------------------------- /tests/testdata/diag/findfiles/nodes/node1/my.log.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/findfiles/nodes/node1/my.log.1 -------------------------------------------------------------------------------- /tests/testdata/diag/findfiles/nodes/node1/my.log.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/findfiles/nodes/node1/my.log.2 -------------------------------------------------------------------------------- /tests/testdata/diag/findfiles/nodes/node2/debug.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/findfiles/nodes/node2/debug.log -------------------------------------------------------------------------------- /tests/testdata/diag/findfiles/nodes/node2/my.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/findfiles/nodes/node2/my.log -------------------------------------------------------------------------------- /tests/testdata/diag/missing/nodes/node1/blockdev_report: -------------------------------------------------------------------------------- 1 | RO RA SSZ BSZ StartSec Size Device 2 | -------------------------------------------------------------------------------- /tests/testdata/diag/missing/nodes/node1/logs/cassandra/output.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/missing/nodes/node1/logs/cassandra/output.log -------------------------------------------------------------------------------- /tests/testdata/diag/missing/nodes/node1/logs/cassandra/system.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/missing/nodes/node1/logs/cassandra/system.log -------------------------------------------------------------------------------- /tests/testdata/diag/missing/nodes/node1/nodetool/cfstats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/missing/nodes/node1/nodetool/cfstats -------------------------------------------------------------------------------- /tests/testdata/diag/missing/nodes/node2/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/diag/missing/nodes/node2/.gitkeep -------------------------------------------------------------------------------- /tests/testdata/diag/missing/opscenterd/node_info.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/conf/cassandra/cassandra-rackdc.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | # These properties are used with GossipingPropertyFileSnitch and will 18 | # indicate the rack and dc for this node 19 | dc=dc1 20 | rack=rack1 21 | 22 | # Add a suffix to a datacenter name. Used by the Ec2Snitch and Ec2MultiRegionSnitch 23 | # to append a string to the EC2 region name. 24 | #dc_suffix= 25 | 26 | # Uncomment the following line to make this snitch prefer the internal ip when possible, as the Ec2MultiRegionSnitch does. 27 | # prefer_local=true 28 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/conf/cassandra/jvm-clients.options: -------------------------------------------------------------------------------- 1 | # DSE Config Version: 6.8.1 2 | 3 | ########################################################################### 4 | # jvm-clients.options # 5 | # # 6 | # See jvm8-clients.options and jvm11-clients.options for Java version # 7 | # specific options. # 8 | ########################################################################### 9 | 10 | # intentionally left empty 11 | 12 | # The newline in the end of file is intentional 13 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/conf/cassandra/jvm11-clients.options: -------------------------------------------------------------------------------- 1 | # DSE Config Version: 6.8.1 2 | 3 | ########################################################################### 4 | # jvm11-clients.options # 5 | # # 6 | # See jvm-clients.options. This file is specific for Java 11 and newer. # 7 | ########################################################################### 8 | 9 | ################### 10 | # JPMS SETTINGS # 11 | ################### 12 | 13 | -Djdk.attach.allowAttachSelf=true 14 | --add-exports java.base/jdk.internal.misc=ALL-UNNAMED 15 | --add-opens java.base/jdk.internal.module=ALL-UNNAMED 16 | --add-exports java.base/jdk.internal.ref=ALL-UNNAMED 17 | --add-exports java.base/sun.nio.ch=ALL-UNNAMED 18 | --add-exports java.management.rmi/com.sun.jmx.remote.internal.rmi=ALL-UNNAMED 19 | --add-exports java.rmi/sun.rmi.registry=ALL-UNNAMED 20 | --add-exports java.rmi/sun.rmi.server=ALL-UNNAMED 21 | --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED 22 | 23 | -Dio.netty.tryReflectionSetAccessible=true 24 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/conf/cassandra/jvm8-clients.options: -------------------------------------------------------------------------------- 1 | # DSE Config Version: 6.8.1 2 | 3 | ########################################################################### 4 | # jvm8-clients.options # 5 | # # 6 | # See jvm-clients.options. This file is specific for Java 8 and newer. # 7 | ########################################################################### 8 | 9 | # intentionally left empty 10 | 11 | # The newline in the end of file is intentional 12 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/conf/cassandra/logback-tools.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | System.err 23 | 24 | %-5level %date{"HH:mm:ss,SSS"} %msg%n 25 | 26 | 27 | WARN 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/debian_version: -------------------------------------------------------------------------------- 1 | 10.4 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/driver/metadata: -------------------------------------------------------------------------------- 1 | 2 | Cluster: Test Cluster 3 | Partitioner: Murmur3Partitioner 4 | 5 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/dsetool/insights_config: -------------------------------------------------------------------------------- 1 | { 2 | "mode" : "ENABLED_WITH_LOCAL_STORAGE", 3 | "config_refresh_interval_in_seconds" : 30, 4 | "metric_sampling_interval_in_seconds" : 30, 5 | "data_dir_max_size_in_mb" : 1024, 6 | "node_system_info_report_period" : "PT1H" 7 | } 8 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/dsetool/insights_filters: -------------------------------------------------------------------------------- 1 | [ { 2 | "policy" : "deny", 3 | "pattern" : "org\\.apache\\.cassandra\\.metrics\\.(keyspace|table).*(system_(?!auth)|system\\.(?!(paxos|batches))|dse_|solr_admin|system$).*", 4 | "scope" : "global" 5 | }, { 6 | "policy" : "deny", 7 | "pattern" : "org\\.apache\\.cassandra\\.metrics\\.thread_pools\\.[^\\.]+.[^\\.]+\\.tpc_\\d+.*$", 8 | "scope" : "global" 9 | } ] 10 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/dsetool/ring: -------------------------------------------------------------------------------- 1 | Address DC Rack Workload Graph Status State Load Effective-Ownership Token Health [0,1] 2 | 172.17.0.2 dc1 rack1 SearchAnalytics(SM) yes Up Normal 1.79 GiB 100.00% -5374840111441183029 1.00 3 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/dsetool/slowest_queries: -------------------------------------------------------------------------------- 1 | Showing N=5 most recent CQL queries slower than 200.0 ms 2 | --------------------------------------------- 3 | [ { 4 | "tables" : "[keyspace1.standard1]", 5 | "sourceIp" : "/127.0.0.1", 6 | "username" : "anonymous", 7 | "startTimeUUID" : "676c6de2-cb21-11ea-814b-39ad851e86eb", 8 | "duration" : 1987, 9 | "cqlStrings" : "[UPDATE \"standard1\" SET \"C0\" = ?,\"C1\" = ?,\"C2\" = ?,\"C3\" = ?,\"C4\" = ? WHERE KEY=?]", 10 | "tracingSessionId" : "" 11 | }, { 12 | "tables" : "[keyspace1.standard1]", 13 | "sourceIp" : "/127.0.0.1", 14 | "username" : "anonymous", 15 | "startTimeUUID" : "676c6de3-cb21-11ea-814b-39ad851e86eb", 16 | "duration" : 1987, 17 | "cqlStrings" : "[UPDATE \"standard1\" SET \"C0\" = ?,\"C1\" = ?,\"C2\" = ?,\"C3\" = ?,\"C4\" = ? WHERE KEY=?]", 18 | "tracingSessionId" : "" 19 | }, { 20 | "tables" : "[keyspace1.standard1]", 21 | "sourceIp" : "/127.0.0.1", 22 | "username" : "anonymous", 23 | "startTimeUUID" : "676c94f0-cb21-11ea-814b-39ad851e86eb", 24 | "duration" : 1987, 25 | "cqlStrings" : "[UPDATE \"standard1\" SET \"C0\" = ?,\"C1\" = ?,\"C2\" = ?,\"C3\" = ?,\"C4\" = ? WHERE KEY=?]", 26 | "tracingSessionId" : "" 27 | }, { 28 | "tables" : "[keyspace1.standard1]", 29 | "sourceIp" : "/127.0.0.1", 30 | "username" : "anonymous", 31 | "startTimeUUID" : "676c6de4-cb21-11ea-814b-39ad851e86eb", 32 | "duration" : 1986, 33 | "cqlStrings" : "[UPDATE \"standard1\" SET \"C0\" = ?,\"C1\" = ?,\"C2\" = ?,\"C3\" = ?,\"C4\" = ? WHERE KEY=?]", 34 | "tracingSessionId" : "" 35 | }, { 36 | "tables" : "[keyspace1.standard1]", 37 | "sourceIp" : "/127.0.0.1", 38 | "username" : "anonymous", 39 | "startTimeUUID" : "5da2efa1-cb21-11ea-814b-39ad851e86eb", 40 | "duration" : 1640, 41 | "cqlStrings" : "[UPDATE \"standard1\" SET \"C0\" = ?,\"C1\" = ?,\"C2\" = ?,\"C3\" = ?,\"C4\" = ? WHERE KEY=?]", 42 | "tracingSessionId" : "" 43 | } ] 44 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/dsetool/status: -------------------------------------------------------------------------------- 1 | DC: dc1 Workload: SearchAnalytics Graph: yes Analytics Master: 172.17.0.2 2 | ======================================================================================= 3 | Status=Up/Down 4 | |/ State=Normal/Leaving/Joining/Moving 5 | -- Address Load Effective-Ownership Token Rack Health [0,1] 6 | UN 172.17.0.2 1.79 GiB 100.00% -5374840111441183029 rack1 1.00 7 | 8 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/java_version.txt: -------------------------------------------------------------------------------- 1 | openjdk version "1.8.0_252" 2 | OpenJDK Runtime Environment (build 1.8.0_252-b09) 3 | OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode) 4 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/logs/cassandra/audit/audit.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/dse68/nodes/172.17.0.2/logs/cassandra/audit/audit.log -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/logs/cassandra/audit/dropped-events.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/dse68/nodes/172.17.0.2/logs/cassandra/audit/dropped-events.log -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/logs/cassandra/dse-collectd.log: -------------------------------------------------------------------------------- 1 | [2020-07-20 09:10:29] type = logfile, key = LogLevel, value = info 2 | [2020-07-20 09:10:29] plugin_load: plugin "write_scribe" successfully loaded. 3 | [2020-07-20 09:10:29] write_scribe plugin: Ignoring config option `SocketFile'. 4 | [2020-07-20 09:10:29] plugin_load: plugin "cpu" successfully loaded. 5 | [2020-07-20 09:10:29] plugin_load: plugin "df" successfully loaded. 6 | [2020-07-20 09:10:29] plugin_load: plugin "vmem" successfully loaded. 7 | [2020-07-20 09:10:29] plugin_load: plugin "numa" successfully loaded. 8 | [2020-07-20 09:10:29] plugin_load: plugin "contextswitch" successfully loaded. 9 | [2020-07-20 09:10:29] plugin_load: plugin "cpufreq" successfully loaded. 10 | [2020-07-20 09:10:29] plugin_load: plugin "irq" successfully loaded. 11 | [2020-07-20 09:10:29] plugin_load: plugin "protocols" successfully loaded. 12 | [2020-07-20 09:10:29] plugin_load: plugin "ethstat" successfully loaded. 13 | [2020-07-20 09:10:29] plugin_load: plugin "disk" successfully loaded. 14 | [2020-07-20 09:10:29] plugin_load: plugin "interface" successfully loaded. 15 | [2020-07-20 09:10:29] plugin_load: plugin "load" successfully loaded. 16 | [2020-07-20 09:10:29] plugin_load: plugin "memory" successfully loaded. 17 | [2020-07-20 09:10:29] plugin_load: plugin "swap" successfully loaded. 18 | [2020-07-20 09:10:29] plugin_load: plugin "uptime" successfully loaded. 19 | [2020-07-20 09:10:29] plugin_load: plugin "processes" successfully loaded. 20 | [2020-07-20 09:10:29] plugin_load: plugin "tcpconns" successfully loaded. 21 | [2020-07-20 09:10:29] plugin_load: plugin "match_regex" successfully loaded. 22 | [2020-07-20 09:10:29] plugin_load: plugin "target_set" successfully loaded. 23 | [2020-07-20 09:10:29] plugin_load: plugin "target_replace" successfully loaded. 24 | [2020-07-20 09:10:29] cpufreq plugin: Found 0 CPUs 25 | [2020-07-20 09:10:29] Initialization complete, entering read-loop. 26 | [2020-07-20 09:10:29] unixsock plugin: Successfully deleted socket file "/tmp/dse/dse.FjrZ6G7YU/dse-8320700444285780512.sock". 27 | [2020-07-20 09:10:29] tcpconns plugin: Reading from netlink succeeded. Will use the netlink method from now on. 28 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/logs/cassandra/dse-collectd.pid: -------------------------------------------------------------------------------- 1 | 853 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/compactionstats: -------------------------------------------------------------------------------- 1 | pending tasks: 0 2 | 3 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/describecluster: -------------------------------------------------------------------------------- 1 | Cluster Information: 2 | Name: Test Cluster 3 | Snitch: org.apache.cassandra.locator.GossipingPropertyFileSnitch 4 | DynamicEndPointSnitch: enabled 5 | Partitioner: org.apache.cassandra.dht.Murmur3Partitioner 6 | Schema versions: 7 | 66b79eea-3933-3a73-8799-cb2a70106421: [172.17.0.2] 8 | 9 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/getcompactionthroughput: -------------------------------------------------------------------------------- 1 | Current compaction throughput: 16 MB/s 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/getstreamthroughput: -------------------------------------------------------------------------------- 1 | Current stream throughput: 200 Mb/s 2 | Current streaming connections per host: 1 3 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/gossipinfo: -------------------------------------------------------------------------------- 1 | /172.17.0.2 2 | generation:1595236181 3 | heartbeat:105541 4 | STATUS:51:NORMAL,-5374840111441183029 5 | LOAD:105489:1.925476349E9 6 | SCHEMA:485:66b79eea-3933-3a73-8799-cb2a70106421 7 | DC:16:dc1 8 | RACK:18:rack1 9 | RELEASE_VERSION:4:4.0.0.681 10 | INTERNAL_IP:14:172.17.0.2 11 | NATIVE_TRANSPORT_ADDRESS:3:172.17.0.2 12 | DSE_GOSSIP_STATE:11421:{"dse_version":"6.8.1","graph":true,"workloads":"SearchGraphCassandraAnalytics","server_id":"02-42-AC-11-00-02","workload":"SearchAnalytics","active":"true","dsefs_state":{"internodeAuthAlgorithm":"HmacSHA256","internodeAuthKey":[109,41,12,124,71,-88,-119,-120,-43,28,70,-24,-5,49,34,-45,72,-44,-48,-128,127,36,-110,66,76,-59,-79,3,-19,77,-22,-7],"keyspace":"dsefs","privatePort":5599},"health":1.0} 13 | NET_VERSION:1:1024 14 | HOST_ID:2:5f07e400-cfa8-4afd-a6a0-6935ad90e9dd 15 | NATIVE_TRANSPORT_READY:139:true 16 | NATIVE_TRANSPORT_PORT:7:9042 17 | NATIVE_TRANSPORT_PORT_SSL:8:9042 18 | STORAGE_PORT:9:7000 19 | STORAGE_PORT_SSL:10:7001 20 | JMX_PORT:11:7199 21 | SCHEMA_COMPATIBILITY_VERSION:5:2 22 | TOKENS:50: 23 | 24 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/info: -------------------------------------------------------------------------------- 1 | ID : 5f07e400-cfa8-4afd-a6a0-6935ad90e9dd 2 | Gossip active : true 3 | Native Transport active: true 4 | Status : OK 5 | Load : 1.79 GiB 6 | Generation No : 1595236181 7 | Uptime (seconds) : 100453 8 | Heap Memory (MB) : 879.73 / 1868.00 9 | Off Heap Memory (MB) : 53.03 10 | Data Center : dc1 11 | Rack : rack1 12 | Exceptions : 0 13 | Key Cache : entries 0, size 0 bytes, capacity 93 MiB, 0 hits, 0 requests, NaN recent hit rate, 14400 save period in seconds 14 | Row Cache : entries 0, size 0 bytes, capacity 0 bytes, 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds 15 | Counter Cache : entries 0, size 0 bytes, capacity 46 MiB, 0 hits, 0 requests, NaN recent hit rate, 7200 save period in seconds 16 | Chunk Cache : entries 216928, size 1.3 GiB, capacity 1.3 GiB, 5331532 misses, 308803390 requests, 0.983 recent hit rate, 720.896 microseconds miss latency 17 | Percent Repaired : NaN% 18 | Token : -5374840111441183029 19 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/netstats: -------------------------------------------------------------------------------- 1 | Mode: NORMAL 2 | Not sending any streams. 3 | Read Repair Statistics: 4 | Attempted: 0 5 | Mismatch (Blocking): 0 6 | Mismatch (ReconcileRead): 0 7 | Mismatch (Background): 0 8 | Pool Name Active Pending Completed Dropped 9 | Large messages n/a 0 0 0 10 | Small messages n/a 0 0 0 11 | Gossip messages n/a 0 0 0 12 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/nodesyncrate: -------------------------------------------------------------------------------- 1 | Current rate limit=1024 KB/s 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/proxyhistograms: -------------------------------------------------------------------------------- 1 | proxy histograms 2 | Percentile Read Latency Write Latency Range Latency CAS Read Latency CAS Write Latency View Write Latency 3 | (micros) (micros) (micros) (micros) (micros) (micros) 4 | 50% 1817.53 0.00 0.00 2246.95 1872.46 0.00 5 | 75% 2424.83 0.00 1572.86 3145.73 2202.01 0.00 6 | 95% 7340.03 0.00 6640.98 9437.18 4194.30 0.00 7 | 98% 9437.18 0.00 8388.61 10485.76 6291.46 0.00 8 | 99% 10485.76 0.00 9437.18 10485.76 6291.46 0.00 9 | Min 262.14 0.00 0.00 1310.72 1310.72 0.00 10 | Max 12582.91 0.00 10485.76 12582.91 7340.03 0.00 11 | 12 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/ring: -------------------------------------------------------------------------------- 1 | 2 | Datacenter: dc1 3 | ========== 4 | Address Rack Status State Load Owns Token 5 | 6 | 172.17.0.2 rack1 Up Normal 1.79 GiB 100.00% -5374840111441183029 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/status: -------------------------------------------------------------------------------- 1 | Datacenter: dc1 2 | =============== 3 | Status=Up/Down 4 | |/ State=Normal/Leaving/Joining/Moving/Stopped 5 | -- Address Load Owns (effective) Host ID Token Rack 6 | UN 172.17.0.2 1.79 GiB 100.0% 5f07e400-cfa8-4afd-a6a0-6935ad90e9dd -5374840111441183029 rack1 7 | 8 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/statusbinary: -------------------------------------------------------------------------------- 1 | running 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/nodetool/version: -------------------------------------------------------------------------------- 1 | DSE version: 6.8.1 2 | ReleaseVersion: 4.0.0.681 3 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-info.txt: -------------------------------------------------------------------------------- 1 | kernel_name: Linux 2 | node_name: 23e273b32652 3 | kernel_release: 4.15.0-111-generic 4 | kernel_version: #112-Ubuntu SMP Thu Jul 9 20:32:34 UTC 2020 5 | machine_type: x86_64 6 | processor_type: unknown 7 | platform_type: unknown 8 | os_type: GNU/Linux 9 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/clocksource: -------------------------------------------------------------------------------- 1 | available: kvm-clock tsc acpi_pm 2 | current: kvm-clock 3 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/cloud_info: -------------------------------------------------------------------------------- 1 | cloud provider: none 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/cpu.txt: -------------------------------------------------------------------------------- 1 | user: 8.3 2 | nice: 0.0 3 | system: 10.0 4 | iowait: 0.0 5 | steal: 0.0 6 | idle: 81.7 7 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/df: -------------------------------------------------------------------------------- 1 | Filesystem 1K-blocks Used Available Use% Mounted on 2 | overlay 39251660 18574948 18952072 50% / 3 | tmpfs 65536 0 65536 0% /dev 4 | tmpfs 3825720 0 3825720 0% /sys/fs/cgroup 5 | shm 65536 0 65536 0% /dev/shm 6 | /dev/vda2 39251660 18574948 18952072 50% /etc/hosts 7 | tmpfs 3825720 0 3825720 0% /proc/acpi 8 | tmpfs 3825720 0 3825720 0% /proc/scsi 9 | tmpfs 3825720 0 3825720 0% /sys/firmware 10 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/disk_config.txt: -------------------------------------------------------------------------------- 1 | data: /var/lib/cassandra/data 2 | commitlog: /var/lib/cassandra/commitlog 3 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/disk_device.txt: -------------------------------------------------------------------------------- 1 | data: /dev/vda2 2 | commitlog: /dev/vda2 3 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/disks/vda: -------------------------------------------------------------------------------- 1 | add_random: 0 2 | chunk_sectors: 0 3 | dax: 0 4 | discard_granularity: 0 5 | discard_max_bytes: 0 6 | discard_max_hw_bytes: 0 7 | discard_zeroes_data: 0 8 | hw_sector_size: 512 9 | io_poll: 1 10 | io_poll_delay: -1 11 | iostats: 1 12 | logical_block_size: 512 13 | max_discard_segments: 1 14 | max_hw_sectors_kb: 2147483647 15 | max_integrity_segments: 0 16 | max_sectors_kb: 1280 17 | max_segments: 126 18 | max_segment_size: 4294967295 19 | minimum_io_size: 512 20 | nomerges: 0 21 | nr_requests: 128 22 | optimal_io_size: 0 23 | physical_block_size: 512 24 | read_ahead_kb: 128 25 | rotational: 1 26 | rq_affinity: 1 27 | scheduler: [none] 28 | wbt_lat_usec: 75000 29 | write_cache: write back 30 | write_same_max_bytes: 0 31 | write_zeroes_max_bytes: 0 32 | zoned: none 33 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/disks/vdb: -------------------------------------------------------------------------------- 1 | add_random: 0 2 | chunk_sectors: 0 3 | dax: 0 4 | discard_granularity: 0 5 | discard_max_bytes: 0 6 | discard_max_hw_bytes: 0 7 | discard_zeroes_data: 0 8 | hw_sector_size: 512 9 | io_poll: 1 10 | io_poll_delay: -1 11 | iostats: 1 12 | logical_block_size: 512 13 | max_discard_segments: 1 14 | max_hw_sectors_kb: 2147483647 15 | max_integrity_segments: 0 16 | max_sectors_kb: 1280 17 | max_segments: 126 18 | max_segment_size: 4294967295 19 | minimum_io_size: 512 20 | nomerges: 0 21 | nr_requests: 128 22 | optimal_io_size: 0 23 | physical_block_size: 512 24 | read_ahead_kb: 128 25 | rotational: 1 26 | rq_affinity: 1 27 | scheduler: [none] 28 | wbt_lat_usec: 75000 29 | write_cache: write back 30 | write_same_max_bytes: 0 31 | write_zeroes_max_bytes: 0 32 | zoned: none 33 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/dmesg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/dse68/nodes/172.17.0.2/os-metrics/dmesg -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/free: -------------------------------------------------------------------------------- 1 | total used free shared buff/cache available 2 | Mem: 7651440 4764160 396276 5336 2491004 2602200 3 | Swap: 0 0 0 4 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/fstab: -------------------------------------------------------------------------------- 1 | # UNCONFIGURED FSTAB FOR BASE SYSTEM 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/hugepage_defrag: -------------------------------------------------------------------------------- 1 | always defer defer+madvise [madvise] never 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/hugepage_enabled: -------------------------------------------------------------------------------- 1 | always [madvise] never 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/lsblk: -------------------------------------------------------------------------------- 1 | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT 2 | loop0 7:0 0 55M 1 loop 3 | loop1 7:1 0 96.5M 1 loop 4 | loop2 7:2 0 97M 1 loop 5 | loop3 7:3 0 55M 1 loop 6 | loop4 7:4 0 91.9M 1 loop 7 | loop5 7:5 0 91.8M 1 loop 8 | vda 252:0 0 40G 0 disk 9 | ├─vda1 252:1 0 8M 0 part 10 | └─vda2 252:2 0 40G 0 part /var/lib/dsefs 11 | vdb 252:16 0 40G 0 disk 12 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/lsblk_custom: -------------------------------------------------------------------------------- 1 | NAME KNAME FSTYPE MOUNTPOINT LABEL RA MODEL SIZE ROTA 2 | loop0 loop0 128 55M 1 3 | loop1 loop1 128 96.5M 1 4 | loop2 loop2 128 97M 1 5 | loop3 loop3 128 55M 1 6 | loop4 loop4 128 91.9M 1 7 | loop5 loop5 128 91.8M 1 8 | vda vda 128 40G 1 9 | ├─vda1 vda1 128 8M 1 10 | └─vda2 vda2 /var/lib/dsefs 128 40G 1 11 | vdb vdb 128 40G 1 12 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/lscpu: -------------------------------------------------------------------------------- 1 | Architecture: x86_64 2 | CPU op-mode(s): 32-bit, 64-bit 3 | Byte Order: Little Endian 4 | Address sizes: 46 bits physical, 48 bits virtual 5 | CPU(s): 4 6 | On-line CPU(s) list: 0-3 7 | Thread(s) per core: 1 8 | Core(s) per socket: 1 9 | Socket(s): 4 10 | NUMA node(s): 1 11 | Vendor ID: GenuineIntel 12 | CPU family: 6 13 | Model: 58 14 | Model name: Intel Xeon E3-12xx v2 (Ivy Bridge) 15 | Stepping: 9 16 | CPU MHz: 1699.998 17 | BogoMIPS: 3399.99 18 | Virtualization: VT-x 19 | Hypervisor vendor: KVM 20 | Virtualization type: full 21 | L1d cache: 32K 22 | L1i cache: 32K 23 | L2 cache: 4096K 24 | L3 cache: 16384K 25 | NUMA node0 CPU(s): 0-3 26 | Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm pti tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt arat 27 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/meminfo: -------------------------------------------------------------------------------- 1 | MemTotal: 7651440 kB 2 | MemFree: 396040 kB 3 | MemAvailable: 2602244 kB 4 | Buffers: 98348 kB 5 | Cached: 2254156 kB 6 | SwapCached: 0 kB 7 | Active: 4998272 kB 8 | Inactive: 1998748 kB 9 | Active(anon): 4637496 kB 10 | Inactive(anon): 3540 kB 11 | Active(file): 360776 kB 12 | Inactive(file): 1995208 kB 13 | Unevictable: 0 kB 14 | Mlocked: 0 kB 15 | SwapTotal: 0 kB 16 | SwapFree: 0 kB 17 | Dirty: 72 kB 18 | Writeback: 0 kB 19 | AnonPages: 4644724 kB 20 | Mapped: 105092 kB 21 | Shmem: 5336 kB 22 | Slab: 191820 kB 23 | SReclaimable: 138892 kB 24 | SUnreclaim: 52928 kB 25 | KernelStack: 6716 kB 26 | PageTables: 16012 kB 27 | NFS_Unstable: 0 kB 28 | Bounce: 0 kB 29 | WritebackTmp: 0 kB 30 | CommitLimit: 3825720 kB 31 | Committed_AS: 5378620 kB 32 | VmallocTotal: 34359738367 kB 33 | VmallocUsed: 0 kB 34 | VmallocChunk: 0 kB 35 | HardwareCorrupted: 0 kB 36 | AnonHugePages: 0 kB 37 | ShmemHugePages: 0 kB 38 | ShmemPmdMapped: 0 kB 39 | CmaTotal: 0 kB 40 | CmaFree: 0 kB 41 | HugePages_Total: 0 42 | HugePages_Free: 0 43 | HugePages_Rsvd: 0 44 | HugePages_Surp: 0 45 | Hugepagesize: 2048 kB 46 | DirectMap4k: 159592 kB 47 | DirectMap2M: 7704576 kB 48 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/memory.txt: -------------------------------------------------------------------------------- 1 | mem total: 7472 2 | mem used: 4652 3 | mem free: 383 4 | mem shared: 5 5 | mem buff/cache: 2435 6 | mem available: 2540 7 | swap total: 0 8 | swap used: 0 9 | swap free: 0 10 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/sar: -------------------------------------------------------------------------------- 1 | Cannot open /var/log/sysstat/sa21: No such file or directory 2 | Please check if data collecting is enabled 3 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/uptime: -------------------------------------------------------------------------------- 1 | 13:04:10 up 4 days, 6:44, 0 users, load average: 1.66, 1.14, 0.88 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/version_proc: -------------------------------------------------------------------------------- 1 | Linux version 4.15.0-111-generic (buildd@lcy01-amd64-011) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #112-Ubuntu SMP Thu Jul 9 20:32:34 UTC 2020 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/wmstat-mem: -------------------------------------------------------------------------------- 1 | procs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu-------- -----timestamp----- 2 | r b swpd free inact active si so bi bo in cs us sy id wa st UTC 3 | 0 0 0 396288 1998600 4998004 0 0 9 33 24 20 2 3 95 0 0 2020-07-21 13:04:02 4 | 1 0 0 396488 1998596 4998392 0 0 0 56 38849 76501 7 12 81 0 0 2020-07-21 13:04:03 5 | 2 0 0 396488 1998596 4998392 0 0 0 0 39742 78433 8 11 81 0 0 2020-07-21 13:04:04 6 | 3 0 0 396256 1998596 4998392 0 0 0 432 39525 78532 14 10 77 0 0 2020-07-21 13:04:05 7 | 1 0 0 396520 1998596 4998392 0 0 0 0 35634 81503 15 10 75 0 0 2020-07-21 13:04:06 8 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/wmstat-stat: -------------------------------------------------------------------------------- 1 | 7651440 K total memory 2 | 4764096 K used memory 3 | 4998176 K active memory 4 | 1998600 K inactive memory 5 | 396288 K free memory 6 | 98340 K buffer memory 7 | 2392716 K swap cache 8 | 0 K total swap 9 | 0 K used swap 10 | 0 K free swap 11 | 3608113 non-nice user cpu ticks 12 | 808 nice user cpu ticks 13 | 3816325 system cpu ticks 14 | 138284268 idle cpu ticks 15 | 45859 IO-wait cpu ticks 16 | 0 IRQ cpu ticks 17 | 29614 softirq cpu ticks 18 | 622 stolen cpu ticks 19 | 12936922 pages paged in 20 | 47457514 pages paged out 21 | 0 pages swapped in 22 | 0 pages swapped out 23 | 3685685577 interrupts 24 | 3594533152 CPU context switches 25 | 1594966770 boot time 26 | 142193 forks 27 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-metrics/zone_reclaim_mode: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/os-release: -------------------------------------------------------------------------------- 1 | PRETTY_NAME="Debian GNU/Linux 10 (buster)" 2 | NAME="Debian GNU/Linux" 3 | VERSION_ID="10" 4 | VERSION="10 (buster)" 5 | VERSION_CODENAME=buster 6 | ID=debian 7 | HOME_URL="https://www.debian.org/" 8 | SUPPORT_URL="https://www.debian.org/support" 9 | BUG_REPORT_URL="https://bugs.debian.org/" 10 | -------------------------------------------------------------------------------- /tests/testdata/dse68/nodes/172.17.0.2/process_limits: -------------------------------------------------------------------------------- 1 | Limit Soft Limit Hard Limit Units 2 | Max cpu time unlimited unlimited seconds 3 | Max file size unlimited unlimited bytes 4 | Max data size unlimited unlimited bytes 5 | Max stack size 8388608 unlimited bytes 6 | Max core file size unlimited unlimited bytes 7 | Max resident set unlimited unlimited bytes 8 | Max processes unlimited unlimited processes 9 | Max open files 1048576 1048576 files 10 | Max locked memory 16777216 16777216 bytes 11 | Max address space unlimited unlimited bytes 12 | Max file locks unlimited unlimited locks 13 | Max pending signals 29641 29641 signals 14 | Max msgqueue size 819200 819200 bytes 15 | Max nice priority 0 0 16 | Max realtime priority 0 0 17 | Max realtime timeout unlimited unlimited us 18 | -------------------------------------------------------------------------------- /tests/testdata/empty.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datastax-labs/sperf/934248642c4ef6b5d944153fe45628a4bc3825fb/tests/testdata/empty.log -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | # content of: tox.ini , put in same dir as setup.py 2 | [tox] 3 | envlist = py37,py38,py39 4 | 5 | [testenv] 6 | # install pytest in the virtualenv where commands will be executed 7 | deps = 8 | -rrequirements_dev.txt 9 | commands = 10 | # NOTE: you can run any command line tool here - not just tests 11 | pytest 12 | --------------------------------------------------------------------------------