Download Kafka from:
https://www.apache.org/dyn/closer.cgi/incubator/kafka/kafka-0.7.2-incubating/kafka-0.7.2-incubating-src.tgz
Install Kafka
| gdisk /dev/sda # make 1 partition | |
| mkfs.vfat -n BOOT /dev/sda1 | |
| mkfs.btrfs -L root /dev/sdb | |
| mkfs.btrfs -L docker /dev/sdc | |
| mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache /dev/sdb /mnt/ | |
| btrfs subvolume create /mnt/nixos | |
| umount /mnt/ | |
| mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache,subvol=nixos /dev/sdb /mnt/ |
| kind: ClusterRole | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: system:aggregated-metrics-reader | |
| labels: | |
| rbac.authorization.k8s.io/aggregate-to-view: "true" | |
| rbac.authorization.k8s.io/aggregate-to-edit: "true" | |
| rbac.authorization.k8s.io/aggregate-to-admin: "true" | |
| rules: | |
| - apiGroups: ["metrics.k8s.io"] |
| systemd = { | |
| services = { | |
| "macchanger-wireless" = { | |
| description = "Changes MAC of my wireless interface for privacy reasons"; | |
| wants = [ "network-pre.target" ]; | |
| wantedBy = [ "multi-user.target" ]; | |
| before = [ "network-pre.target" ]; | |
| bindsTo = [ "sys-subsystem-net-devices-wlp3s0.device" ]; | |
| after = [ "sys-subsystem-net-devices-wlp3s0.device" ]; | |
| script = '' |
| { stdenv, fetchgit, fetchurl, writeText, automake, autoconf, aria, coreutils, curl, cvs, gcc, git, python, which, bison, flex, gperf, help2man, libtool, ncurses, texinfo, wget, file }: | |
| stdenv.mkDerivation { | |
| name = "xtensa-esp32-elf"; | |
| version = "1.22.x"; | |
| src = fetchgit { | |
| url = "https://github.com/espressif/crosstool-NG.git"; | |
| # branch = "xtensa-${version}"; | |
| rev = "6c4433a51e4f2f2f9d9d4a13e75cd951acdfa80c"; | |
| sha256 = "03qg9vb0mf10nfslggmb7lc426l0gxqhfyvbadh86x41n2j6ddg6"; |
| #EXTM3U | |
| #EXTINF:-1,Digitally Imported - Ambient | |
| http://pub1.diforfree.org:8000/di_ambient_hi | |
| #EXTINF:-1,Digitally Imported - Big Room House | |
| http://pub1.diforfree.org:8000/di_bigroomhouse_hi | |
| #EXTINF:-1,Digitally Imported - Breaks | |
| http://pub1.diforfree.org:8000/di_breaks_hi |
| #!/usr/bin/env sh | |
| # The default hostname to set | |
| DEFAULT_DOCKER_HOSTNAME=${DEFAULT_DOCKER_HOSTNAME-dockerhost.internal} | |
| # A comma-delimited list of extra hostnames to add as aliases | |
| EXTRA_DOCKER_HOSTNAMES=${EXTRA_DOCKER_HOSTNAMES-} | |
| # Whether to export variables | |
| EXPORT_DOCKERHOST=${EXPORT_DOCKERHOST-1} |
| pipeline { | |
| agent { node { label 'swarm-ci' } } | |
| environment { | |
| TEST_PREFIX = "test-IMAGE" | |
| TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}" | |
| TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}" | |
| REGISTRY_ADDRESS = "my.registry.address.com" | |
| SLACK_CHANNEL = "#deployment-notifications" |
| import org.sonatype.nexus.repository.storage.Asset | |
| import org.sonatype.nexus.repository.storage.Query | |
| import org.sonatype.nexus.repository.storage.StorageFacet | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| def request = new JsonSlurper().parseText(args) | |
| assert request.repoName: 'repoName parameter is required' | |
| assert request.startDate: 'startDate parameter is required, format: yyyy-mm-dd' |
WAL-E needs to be installed on all machines, masters and slaves.
Only one machine, the master, writes WAL segments via continuous archiving. The configuration for the master postgresql.conf is:
archive_mode = on
archive_command = 'envdir /etc/wal-e.d/env wal-e wal-push %p'
archive_timeout = 60