From 3e6ca0fe625db2c2d97114dcb267753635f6892b Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Tue, 15 Nov 2016 22:02:53 +0000 Subject: [PATCH 1/3] Speed up DH param generation --- server/modules/certclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/certclient.py b/server/modules/certclient.py index 97fbac3..8aa1056 100755 --- a/server/modules/certclient.py +++ b/server/modules/certclient.py @@ -130,7 +130,7 @@ fi if test "%(dh)s" = "y"; then if test ! -s "${DH}"; then - openssl dhparam -out "${DH}" 2048 + openssl dhparam -dsaparam -out "${DH}" 2048 fi ln --symbolic --force $(basename "${DH}") "${DH_LINK}" fi From b582acf9760ea9424d128c75e17650b05255e882 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Tue, 15 Nov 2016 22:18:27 +0000 Subject: [PATCH 2/3] Mark stale lines red --- server/static/control.css | 4 ++++ server/static/control.js | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/server/static/control.css b/server/static/control.css index e7edbd4..0a99263 100644 --- a/server/static/control.css +++ b/server/static/control.css @@ -72,6 +72,10 @@ instance:hover { background-color: #ff9900 !important; } +instance.stale { + background-color: rgba(255, 0, 0, 0.4) !important; +} + header { display: table-cell; text-align: center; diff --git a/server/static/control.js b/server/static/control.js index 2c48238..7ebc96f 100644 --- a/server/static/control.js +++ b/server/static/control.js @@ -185,8 +185,13 @@ ImageController.prototype.onTick_ = function() { let now = Math.floor(Date.now() / 1000); for (let [type, type_value] of this.image_types_) { for (let [instance, instance_value] of type_value.instances) { - instance_value.last_report.innerText = - this.formatSeconds_(now - instance_value.last_report_timestamp); + let stale = now - instance_value.last_report_timestamp; + instance_value.last_report.innerText = this.formatSeconds_(stale); + if (stale < 15) { + instance_value.section.classList.remove('stale'); + } else { + instance_value.section.classList.add('stale'); + } } } }; From e45fcf2ea618ba1d73ae76c32b3f5e17cb75a843 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 19 Nov 2016 12:39:06 -0800 Subject: [PATCH 3/3] fsck /persistent before mounting --- server/modules/persistent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/modules/persistent.py b/server/modules/persistent.py index 221509f..3c20c07 100755 --- a/server/modules/persistent.py +++ b/server/modules/persistent.py @@ -28,6 +28,8 @@ def main(): os.chmod(fh.fileno(), 0o755) fh.write("""\ #!/bin/bash +set -ex +e2fsck -a /persistent mount -o data=journal,noatime,sync LABEL=PERSISTENT /persistent """)