Compare commits

..

7 Commits

Author SHA1 Message Date
d202f1624a Use latest grafana image. 2024-02-27 05:46:55 +00:00
a0b1646675 Update node nixpkg. 2024-02-26 22:17:25 +00:00
8cdc5c62e4 More RAM. 2024-02-26 22:17:19 +00:00
2ce06d597c Add meta tag. 2024-02-26 22:17:10 +00:00
01181f3ffe Further increase redo log size. 2024-02-09 08:53:18 +00:00
8f48abc4b0 Meta tags. 2024-02-06 13:45:15 +00:00
1a999dc1a7 Update flake inputs. 2024-02-06 05:53:24 +00:00
7 changed files with 26 additions and 14 deletions

18
flake.lock generated
View File

@@ -40,11 +40,11 @@
}, },
"impermanence": { "impermanence": {
"locked": { "locked": {
"lastModified": 1703656108, "lastModified": 1706639736,
"narHash": "sha256-hCSUqdFJKHHbER8Cenf5JRzjMlBjIdwdftGQsO0xoJs=", "narHash": "sha256-CaG4j9+UwBDfinxxvJMo6yOonSmSo0ZgnbD7aj2Put0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "impermanence", "repo": "impermanence",
"rev": "033643a45a4a920660ef91caa391fbffb14da466", "rev": "cd13c2917eaa68e4c49fea0ff9cada45440d7045",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -55,11 +55,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1705916986, "lastModified": 1707091808,
"narHash": "sha256-iBpfltu6QvN4xMpen6jGGEb6jOqmmVQKUrXdOJ32u8w=", "narHash": "sha256-LahKBAfGbY836gtpVNnWwBTIzN7yf/uYM/S0g393r0Y=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d7f206b723e42edb09d9d753020a84b3061a79d8", "rev": "9f2ee8c91ac42da3ae6c6a1d21555f283458247e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -71,11 +71,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1705856552, "lastModified": 1706913249,
"narHash": "sha256-JXfnuEf5Yd6bhMs/uvM67/joxYKoysyE3M2k6T3eWbg=", "narHash": "sha256-x3M7iV++CsvRXI1fpyFPduGELUckZEhSv0XWnUopAG8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "612f97239e2cc474c13c9dafa0df378058c5ad8d", "rev": "e92b6015881907e698782c77641aa49298330223",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -1,6 +1,10 @@
job "clickhouse" { job "clickhouse" {
datacenters = ["alo"] datacenters = ["alo"]
meta {
uuid = uuidv4()
}
group "db" { group "db" {
network { network {
port "clickhouse" { port "clickhouse" {

View File

@@ -1,6 +1,10 @@
job "farmos" { job "farmos" {
datacenters = ["alo"] datacenters = ["alo"]
meta {
uuid = uuidv4()
}
group "os" { group "os" {
network { network {
port "http" { port "http" {

View File

@@ -1,6 +1,10 @@
job "ghost" { job "ghost" {
datacenters = ["alo"] datacenters = ["alo"]
meta {
uuid = uuidv4()
}
group "web" { group "web" {
network { network {
port "http" { port "http" {

View File

@@ -12,7 +12,7 @@ job "grafana" {
driver = "docker" driver = "docker"
config { config {
image = "grafana/grafana-enterprise" image = "grafana/grafana-enterprise:latest"
ports = [ "http" ] ports = [ "http" ]
volumes = [ "/data/compute/appdata/grafana:/var/lib/grafana" ] volumes = [ "/data/compute/appdata/grafana:/var/lib/grafana" ]
} }

View File

@@ -24,7 +24,7 @@ job "instasync" {
driver = "exec" driver = "exec"
config { config {
command = "/nix/store/2y52nmyfpsq497cppgc43x9v6lkp3q25-nodejs-20.5.1/bin/node" command = "/nix/store/knc67zp8bgg3a3p10jmkzv7br0lmg9if-nodejs-20.9.0/bin/node"
args = ["/code/instasync/sync.js"] args = ["/code/instasync/sync.js"]
} }

View File

@@ -20,8 +20,8 @@ job "mysql" {
config { config {
image = "mysql:8.3" image = "mysql:8.3"
args = [ args = [
# 200M, up from default of 100M to see if it helps with running out and crashing (glusterfs weirdness suspected) # 300M, up from default of 100M
"--innodb-redo-log-capacity=209715200", "--innodb-redo-log-capacity=314572800",
] ]
ports = ["db"] ports = ["db"]
volumes = [ volumes = [
@@ -46,7 +46,7 @@ job "mysql" {
resources { resources {
cpu = 3000 cpu = 3000
memory = 1024 memory = 1500
} }
} }