-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump a bunch of timeouts, because my Internet is awful
Show the problem with hooking onto the tail of the hook queue during hook iteration.
- Loading branch information
Showing
11 changed files
with
167 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
.../com/atlassian/performance/tools/infrastructure/api/jira/flow/server/LateUbuntuSysstat.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.atlassian.performance.tools.infrastructure.api.jira.flow.server | ||
|
||
import com.atlassian.performance.tools.infrastructure.api.jira.flow.JiraNodeFlow | ||
import com.atlassian.performance.tools.infrastructure.api.jira.flow.TcpServer | ||
import com.atlassian.performance.tools.infrastructure.ubuntu.UbuntuSysstat | ||
import com.atlassian.performance.tools.ssh.api.SshConnection | ||
|
||
class LateUbuntuSysstat : TcpServerHook { | ||
|
||
override fun run( | ||
ssh: SshConnection, | ||
server: TcpServer, | ||
flow: JiraNodeFlow | ||
) { | ||
UbuntuSysstat() | ||
.install(ssh) | ||
.forEach { flow.hookPostStart(it) } | ||
} | ||
} |
35 changes: 0 additions & 35 deletions
35
...tlin/com/atlassian/performance/tools/infrastructure/api/jira/flow/server/UbuntuSysstat.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/kotlin/com/atlassian/performance/tools/infrastructure/ubuntu/EarlyUbuntuSysstat.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.atlassian.performance.tools.infrastructure.ubuntu | ||
|
||
import com.atlassian.performance.tools.infrastructure.api.jira.flow.JiraNodeFlow | ||
import com.atlassian.performance.tools.infrastructure.api.jira.flow.TcpServer | ||
import com.atlassian.performance.tools.infrastructure.api.jira.flow.server.TcpServerHook | ||
import com.atlassian.performance.tools.ssh.api.SshConnection | ||
|
||
class EarlyUbuntuSysstat : TcpServerHook { | ||
|
||
override fun run( | ||
ssh: SshConnection, | ||
server: TcpServer, | ||
flow: JiraNodeFlow | ||
) { | ||
UbuntuSysstat() | ||
.install(ssh) | ||
.forEach { flow.hookPreInstall(it) } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/kotlin/com/atlassian/performance/tools/infrastructure/ubuntu/InstalledOsMetric.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.atlassian.performance.tools.infrastructure.ubuntu | ||
|
||
import com.atlassian.performance.tools.infrastructure.api.jira.flow.JiraNodeFlow | ||
import com.atlassian.performance.tools.infrastructure.api.jira.flow.TcpServer | ||
import com.atlassian.performance.tools.infrastructure.api.jira.flow.server.TcpServerHook | ||
import com.atlassian.performance.tools.infrastructure.api.os.OsMetric | ||
import com.atlassian.performance.tools.infrastructure.jira.flow.RemoteMonitoringProcessReport | ||
import com.atlassian.performance.tools.ssh.api.SshConnection | ||
|
||
internal class InstalledOsMetric( | ||
private val metric: OsMetric | ||
) : TcpServerHook { | ||
|
||
override fun run(ssh: SshConnection, server: TcpServer, flow: JiraNodeFlow) { | ||
val process = metric.start(ssh) | ||
flow.reports.add(RemoteMonitoringProcessReport(process)) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/kotlin/com/atlassian/performance/tools/infrastructure/ubuntu/UbuntuSysstat.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.atlassian.performance.tools.infrastructure.ubuntu | ||
|
||
import com.atlassian.performance.tools.infrastructure.Iostat | ||
import com.atlassian.performance.tools.infrastructure.api.os.Ubuntu | ||
import com.atlassian.performance.tools.infrastructure.api.os.Vmstat | ||
import com.atlassian.performance.tools.ssh.api.SshConnection | ||
|
||
internal class UbuntuSysstat { | ||
|
||
fun install( | ||
ssh: SshConnection | ||
): List<InstalledOsMetric> { | ||
val ubuntu = Ubuntu() | ||
ubuntu.install(ssh, listOf("sysstat")) | ||
return listOf(Vmstat(), Iostat()).map { InstalledOsMetric(it) } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters