[jira] [Commented] (CASSANDRA-7838) Warn user when OS settings are poor / integrate sigar
[ https://issues.apache.org/jira/browse/CASSANDRA-7838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14165352#comment-14165352 ] T Jake Luciani commented on CASSANDRA-7838: --- Thanks [~kumaramit01]! Warn user when OS settings are poor / integrate sigar - Key: CASSANDRA-7838 URL: https://issues.apache.org/jira/browse/CASSANDRA-7838 Project: Cassandra Issue Type: Improvement Reporter: T Jake Luciani Assignee: AMIT KUMAR Priority: Minor Labels: bootcamp, lhf Fix For: 3.0 Attachments: 0005-CASSANDRA-7838-log-warning-for-networked-drives.patch, 0006-added-missing-winnt-native.patch, 0007-CASSANDRA-7838-WIP-adding-a-few-other-checks.patch, 0008-CASSANDRA-7838-Removed-network-check-and-read-latenc.patch, 0009-Bug-fix-swap-check-was-incorrect-fixed-logging-state.patch, 0010-Minor-log-change-happy-path.patch The Sigar project let's you probe os/cpu/filesystems across the major platforms. https://github.com/hyperic/sigar It would be nice on start-up to use this to warn users if they are running with settings that will make them sad, like Network drive or EBS on Ec2. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-7838) Warn user when OS settings are poor / integrate sigar
[ https://issues.apache.org/jira/browse/CASSANDRA-7838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14164372#comment-14164372 ] Joshua McKenzie commented on CASSANDRA-7838: Tested on Windows and Sigar failed to initialize. I've rebased to trunk and made a few changes [available here|https://github.com/josh-mckenzie/cassandra/compare/7838_trunk] Quick summary: * rebased to trunk * Fixed %VAR% instead of $VAR on cassandra.in.bat * Added -D option to JVM_OPTS in cassandra.bat for sigar launch on non-powershell environments * Added -D option to JVM_OPTS in conf\cassandra-env.ps1 for powershell environments * Skip the AddressSpace check on Windows (always returning int max + 1 for whatever reason...?) * Cleaned up some formatting inconsistencies in SigarLibrary.java * Tidied up the naming in SigarLibrary.java in general (fixed abbreviations like As for AddressSpace, for instance) * Changed from using Result enum to booleans and warn if we fail to query any of the metrics, also reporting a degraded environment if we can't query anything In your previous implementation you reported that everything was fine even if we got a Result.UNK, and it would probably be helpful to log which queries failed so admins can go in and resolve that and get the extra information. A potential downside here is that it's a little aggressive to report that we're degraded just because we got a failure to query, but if we're committed to adding Sigar to the code-base I think we should be committed to these queries working. :) LGTM on the Windows side from here. Warn user when OS settings are poor / integrate sigar - Key: CASSANDRA-7838 URL: https://issues.apache.org/jira/browse/CASSANDRA-7838 Project: Cassandra Issue Type: Improvement Reporter: T Jake Luciani Assignee: AMIT KUMAR Priority: Minor Labels: bootcamp, lhf Fix For: 3.0 Attachments: 0005-CASSANDRA-7838-log-warning-for-networked-drives.patch, 0006-added-missing-winnt-native.patch, 0007-CASSANDRA-7838-WIP-adding-a-few-other-checks.patch, 0008-CASSANDRA-7838-Removed-network-check-and-read-latenc.patch, 0009-Bug-fix-swap-check-was-incorrect-fixed-logging-state.patch, 0010-Minor-log-change-happy-path.patch The Sigar project let's you probe os/cpu/filesystems across the major platforms. https://github.com/hyperic/sigar It would be nice on start-up to use this to warn users if they are running with settings that will make them sad, like Network drive or EBS on Ec2. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-7838) Warn user when OS settings are poor / integrate sigar
[ https://issues.apache.org/jira/browse/CASSANDRA-7838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14164410#comment-14164410 ] AMIT KUMAR commented on CASSANDRA-7838: --- Thanks Joshua for the fixes and making it windows ready -so I had UNK earlier to indicate if we just couldn't determine if the the result is from SIGAR not being supported on a platform, results that we can't make sense off -however with the reduced number of checks to a few (removing disk latency check/ remote disk test), it became less useful and added to the cruft -so thanks for removing those. What's the next step? Once this gets patched in I am interested to see if there is interest in capturing SIGAR metrics periodically. Warn user when OS settings are poor / integrate sigar - Key: CASSANDRA-7838 URL: https://issues.apache.org/jira/browse/CASSANDRA-7838 Project: Cassandra Issue Type: Improvement Reporter: T Jake Luciani Assignee: AMIT KUMAR Priority: Minor Labels: bootcamp, lhf Fix For: 3.0 Attachments: 0005-CASSANDRA-7838-log-warning-for-networked-drives.patch, 0006-added-missing-winnt-native.patch, 0007-CASSANDRA-7838-WIP-adding-a-few-other-checks.patch, 0008-CASSANDRA-7838-Removed-network-check-and-read-latenc.patch, 0009-Bug-fix-swap-check-was-incorrect-fixed-logging-state.patch, 0010-Minor-log-change-happy-path.patch The Sigar project let's you probe os/cpu/filesystems across the major platforms. https://github.com/hyperic/sigar It would be nice on start-up to use this to warn users if they are running with settings that will make them sad, like Network drive or EBS on Ec2. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-7838) Warn user when OS settings are poor / integrate sigar
[ https://issues.apache.org/jira/browse/CASSANDRA-7838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14164498#comment-14164498 ] T Jake Luciani commented on CASSANDRA-7838: --- Looks good thanks Josh. I just want to check the debian package and tarball look good before committing. bq. Once this gets patched in I am interested to see if there is interest in capturing SIGAR metrics periodically. Yes that is my intention, to capture all kinds of metrics periodically from the system. I'll open a new ticket and we can start listing some. Warn user when OS settings are poor / integrate sigar - Key: CASSANDRA-7838 URL: https://issues.apache.org/jira/browse/CASSANDRA-7838 Project: Cassandra Issue Type: Improvement Reporter: T Jake Luciani Assignee: AMIT KUMAR Priority: Minor Labels: bootcamp, lhf Fix For: 3.0 Attachments: 0005-CASSANDRA-7838-log-warning-for-networked-drives.patch, 0006-added-missing-winnt-native.patch, 0007-CASSANDRA-7838-WIP-adding-a-few-other-checks.patch, 0008-CASSANDRA-7838-Removed-network-check-and-read-latenc.patch, 0009-Bug-fix-swap-check-was-incorrect-fixed-logging-state.patch, 0010-Minor-log-change-happy-path.patch The Sigar project let's you probe os/cpu/filesystems across the major platforms. https://github.com/hyperic/sigar It would be nice on start-up to use this to warn users if they are running with settings that will make them sad, like Network drive or EBS on Ec2. -- This message was sent by Atlassian JIRA (v6.3.4#6332)