View detect-reboot-needed.nix
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
{ pkgs, ... }: | |
let | |
readlink = "${pkgs.coreutils}/bin/readlink"; | |
notify-send = "${pkgs.libnotify}/bin/notify-send"; | |
in { | |
systemd.user.services.detect-reboot-for-upgrade = { | |
script = '' | |
set -eu -o pipefail |
View mdcheck.nix
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
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
cfg = config.hardware.raid.swraid.monitor; | |
in | |
{ | |
options.hardware.raid.swraid.monitor = { |
View sink-pin.rs
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
pub struct SqsSink { | |
// ...snip... | |
sqs_client: SqsClient, | |
send_message_future: Option<std::pin::Pin<std::boxed::Box<dyn futures::Future<Output = std::result::Result<rusoto_sqs::SendMessageBatchResult, rusoto_core::RusotoError<rusoto_sqs::SendMessageBatchError>>> + std::marker::Send>>>, | |
} | |
impl Sink<Arc<Box<dyn MessageChunk>>> for SqsSink { | |
type Error = (); | |
// ...snip... | |
fn poll_flush(mut self: std::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { |
View dashboard.json
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
View gist:d1bfa2c1c94ee9980113e70ba19ca563
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
May 21 12:05:37 ip-172-16-15-126 ec2net: [get_meta] Trying to get http://169.254.169.254/latest/meta-data/network/interfaces/macs/06:1e:aa:71:34:ca/local-ipv4s | |
May 21 12:05:37 ip-172-16-15-126 ec2net: [rewrite_aliases] Rewriting aliases of eth0 | |
May 21 12:06:50 ip-172-16-15-126 dhclient[3314]: XMT: Solicit on eth0, interval 125920ms. | |
May 21 12:07:59 ip-172-16-15-126 consul[3614]: 2017/05/21 12:07:59 [INFO] consul: New leader elected: i-0f14d98ae903e7de2 | |
May 21 12:08:56 ip-172-16-15-126 dhclient[3314]: XMT: Solicit on eth0, interval 114310ms. | |
May 21 12:10:51 ip-172-16-15-126 dhclient[3314]: XMT: Solicit on eth0, interval 119760ms. | |
May 21 12:12:51 ip-172-16-15-126 dhclient[3314]: XMT: Solicit on eth0, interval 115570ms. | |
May 21 12:13:36 ip-172-16-15-126 consul[3614]: 2017/05/21 12:13:36 [INFO] serf: attempting reconnect to i-0bd3ab67982f1fe55 172.16.17.249:8301 | |
May 21 12:14:46 ip-172-16-15-126 dhclient[3314]: XMT: Solicit on eth0, interval 114980ms. | |
May 21 12:15:54 ip-172-16-15-126 consul[3614]: 2017/ |
View gist:56f050b9a4877d1b07388e4d01de829c
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
May 17 06:30:26 ip-172-16-15-126 consul[13099]: 2017/05/17 06:30:26 [INFO] serf: attempting reconnect to i-0ffe3ee8de2922539 172.16.14.98:8301 | |
May 17 06:30:46 ip-172-16-15-126 consul[13099]: 2017/05/17 06:30:46 [INFO] agent: Synced node info | |
May 17 06:31:35 ip-172-16-15-126 dhclient[3332]: XMT: Solicit on eth0, interval 109170ms. | |
May 17 06:31:39 ip-172-16-15-126 consul[13099]: 2017/05/17 06:31:39 [WARN] memberlist: Refuting a suspect message (from: i-09ee29f77300a149d) | |
May 17 06:32:45 ip-172-16-15-126 consul[13099]: 2017/05/17 06:32:45 [INFO] serf: EventMemberJoin: i-03549fcaa8f4e1636 172.16.15.66 | |
May 17 06:32:49 ip-172-16-15-126 consul[13099]: 2017/05/17 06:32:49 [INFO] memberlist: Marking i-057b08569e51a333d as failed, suspect timeout reached | |
May 17 06:32:49 ip-172-16-15-126 consul[13099]: 2017/05/17 06:32:49 [INFO] serf: EventMemberLeave: i-057b08569e51a333d 172.16.16.105 | |
May 17 06:32:53 ip-172-16-15-126 consul[13099]: 2017/05/17 06:32:53 [WARN] memberlist: Refuting a suspect me |
View linux-pg-walsender-patched.txt
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
# ======== | |
# captured on: Fri May 12 20:07:59 2017 | |
# hostname : ip-10-34-11-79 | |
# os release : 4.4.0-70-generic | |
# perf version : 4.4.49 | |
# arch : x86_64 | |
# nrcpus online : 1 | |
# nrcpus avail : 1 | |
# cpudesc : Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz | |
# cpuid : GenuineIntel,6,63,2 |
View osx-pg-walsender-samples-2.txt
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
Analysis of sampling postgres (pid 94571) every 1 millisecond | |
Process: postgres [94571] | |
Path: /Users/mathieu.fenniak/Development/pgsql-9.5.4-avoid-search/bin/postgres | |
Load Address: 0x1061db000 | |
Identifier: postgres | |
Version: 0 | |
Code Type: X86-64 | |
Parent Process: postgres [94365] | |
Date/Time: 2017-05-10 09:40:17.180 -0600 |
View osx-pg-walsender-samples.txt
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
Analysis of sampling postgres (pid 32304) every 1 millisecond | |
Process: postgres [32304] | |
Path: /usr/local/Cellar/postgresql/9.6.2/bin/postgres | |
Load Address: 0x10d9c1000 | |
Identifier: postgres | |
Version: 0 | |
Code Type: X86-64 | |
Parent Process: postgres [1006] | |
Date/Time: 2017-05-05 14:07:12.371 -0600 |
View gist:c56beb6d5058e2b21df0309aea224f12
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
22:24:58.587 [StreamThread-1] ERROR o.a.k.c.c.i.ConsumerCoordinator - User provided listener org.apache.kafka.streams.processor.internals.StreamThread$1 for group timesheet-list failed on partition assignmen | |
t | |
org.apache.kafka.streams.errors.ProcessorStateException: Error opening store ServiceCenterParentFlatMap-topic at location /tmp/kafka-streams/timesheet-list/33_5/rocksdb/ServiceCenterParentFlatMap-topic | |
at org.apache.kafka.streams.state.internals.RocksDBStore.openDB(RocksDBStore.java:173) | |
at org.apache.kafka.streams.state.internals.RocksDBStore.openDB(RocksDBStore.java:143) | |
at org.apache.kafka.streams.state.internals.RocksDBStore.init(RocksDBStore.java:148) | |
at org.apache.kafka.streams.state.internals.MeteredKeyValueStore$7.run(MeteredKeyValueStore.java:100) | |
at org.apache.kafka.streams.processor.internals.StreamsMetricsImpl.measureLatencyNs(StreamsMetricsImpl.java:188) | |
at org.apache.kafka.streams.state.internals.MeteredKeyValueStore.init(MeteredKeyValueStore |
NewerOlder