diff options
author | Rory&::Emma <root@rory.gay> | 2024-03-19 00:28:59 +0000 |
---|---|---|
committer | Rory&::Emma <root@rory.gay> | 2024-03-19 00:28:59 +0000 |
commit | 9370c65c51e961de69c21965a19d3197ac9edf1f (patch) | |
tree | 871af45c7b4fd9de1e15eb954f8bf6c65a106f1d | |
parent | Update flake lock (diff) | |
download | Rory-Open-Architecture-9370c65c51e961de69c21965a19d3197ac9edf1f.tar.xz |
Update from server
-rw-r--r-- | flake.lock | 68 | ||||
-rwxr-xr-x | host/Rory-nginx/services/matrix/synapse.nix | 14 | ||||
-rwxr-xr-x | host/Rory-nginx/services/postgres.nix | 24 |
3 files changed, 53 insertions, 53 deletions
diff --git a/flake.lock b/flake.lock index 3e129d2..429836f 100644 --- a/flake.lock +++ b/flake.lock @@ -55,11 +55,11 @@ ] }, "locked": { - "lastModified": 1708797853, - "narHash": "sha256-v6oqDvpJVs3tCGKypNdK1T4yfhtE5OcDB4YCB24e/qE=", + "lastModified": 1710602287, + "narHash": "sha256-6hjHSfH3jfTDxD6hELL7RGoqv2pnyVAtS81H5Le6qkk=", "owner": "girlbossceo", "repo": "conduwuit", - "rev": "342400fe2d186ef0fa8e1214827fe2b26f280a8d", + "rev": "930bf3891c5a1279b23e16f3f10ce02c47b9b4cb", "type": "github" }, "original": { @@ -107,8 +107,8 @@ }, "original": { "owner": "ipetkov", - "ref": "master", "repo": "crane", + "rev": "2c653e4478476a52c6aa3ac0495e4dea7449ea0e", "type": "github" } }, @@ -121,11 +121,11 @@ "rust-analyzer-src": "rust-analyzer-src" }, "locked": { - "lastModified": 1707891749, - "narHash": "sha256-SeikNYElHgv8uVMbiA9/pU3Cce7ssIsiM8CnEiwd1Nc=", + "lastModified": 1709619709, + "narHash": "sha256-l6EPVJfwfelWST7qWQeP6t/TDK3HHv5uUB1b2vw4mOQ=", "owner": "nix-community", "repo": "fenix", - "rev": "3115aab064ef38cccd792c45429af8df43d6d277", + "rev": "c8943ea9e98d41325ff57d4ec14736d330b321b2", "type": "github" }, "original": { @@ -202,11 +202,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1705309234, - "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "lastModified": 1709126324, + "narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=", "owner": "numtide", "repo": "flake-utils", - "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "rev": "d465f4819400de7c8d874d50b982301f28a84605", "type": "github" }, "original": { @@ -238,11 +238,11 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1708806879, - "narHash": "sha256-MSbxtF3RThI8ANs/G4o1zIqF5/XlShHvwjl9Ws0QAbI=", + "lastModified": 1710796387, + "narHash": "sha256-ve/vpbby+4LPJrlNGqGyuzZMLL7zHUZhvvKu1StsaC8=", "owner": "nix-community", "repo": "home-manager", - "rev": "4ee704cb13a5a7645436f400b9acc89a67b9c08a", + "rev": "baf7659448ffa6ab6870dba1ca681a4868c3068a", "type": "github" }, "original": { @@ -255,11 +255,11 @@ "mtxclientSrc": { "flake": false, "locked": { - "lastModified": 1708709484, - "narHash": "sha256-gDnashMX05xYimPAnKWR5+F/bLYKwHDlhCoQgpwVjVQ=", + "lastModified": 1710558918, + "narHash": "sha256-N92nf1Ay27auUQR9pZSXx4HMFCG9UGTBei+Eva18TLU=", "owner": "Nheko-reborn", "repo": "mtxclient", - "rev": "158e991f537184ebb197341f8b77e5462de9f89d", + "rev": "4fb7d678aeea197d16b52bfb1dc35b506673bb52", "type": "github" }, "original": { @@ -272,11 +272,11 @@ "nhekoSrc": { "flake": false, "locked": { - "lastModified": 1708201985, - "narHash": "sha256-5Ng6lPJCJHpTyXY+Na2mwDzXODudFBGCIxR6UT1sVxw=", + "lastModified": 1710586292, + "narHash": "sha256-60D9LZg7WiJmQ2BOIbiTP/ftWmPRLWzu2/CoLmXqBTM=", "owner": "Nheko-reborn", "repo": "nheko", - "rev": "0649bc342dea6402dc9ba3d697c3ab9f91eca033", + "rev": "6d44c8e30dbdac75b34d05b1de08b2377cffd797", "type": "github" }, "original": { @@ -308,11 +308,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1708788887, - "narHash": "sha256-4HprTKLKiY8rXmthsuRAwXHW7hGaXsSlzmbXSWdOa7g=", + "lastModified": 1710519878, + "narHash": "sha256-0dbc10OBFUVYyXC+C+N6vRUd8xyBSRxkcZ4Egipbx0M=", "owner": "nix-community", "repo": "NixOS-WSL", - "rev": "7e3fc6a99a2c9e6701e2e0d37f1755e29a798b91", + "rev": "aef95bdb6800a3a2af7aa7083d6df03067da6592", "type": "github" }, "original": { @@ -339,11 +339,11 @@ }, "nixpkgs-RoryNix": { "locked": { - "lastModified": 1708702655, - "narHash": "sha256-qxT5jSLhelfLhQ07+AUxSTm1VnVH+hQxDkQSZ/m/Smo=", + "lastModified": 1710695816, + "narHash": "sha256-3Eh7fhEID17pv9ZxrPwCLfqXnYP006RKzSs0JptsN84=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c5101e457206dd437330d283d6626944e28794b3", + "rev": "614b4613980a522ba49f0d194531beddbb7220d3", "type": "github" }, "original": { @@ -403,11 +403,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1708118438, - "narHash": "sha256-kk9/0nuVgA220FcqH/D2xaN6uGyHp/zoxPNUmPCMmEE=", + "lastModified": 1709961763, + "narHash": "sha256-6H95HGJHhEZtyYA3rIQpvamMKAGoa8Yh2rFV29QnuGw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5863c27340ba4de8f83e7e3c023b9599c3cb3c80", + "rev": "3030f185ba6a4bf4f18b87f345f104e6a6961f34", "type": "github" }, "original": { @@ -435,11 +435,11 @@ }, "nixpkgs_5": { "locked": { - "lastModified": 1708655239, - "narHash": "sha256-ZrP/yACUvDB+zbqYJsln4iwotbH6CTZiTkANJ0AgDv4=", + "lastModified": 1710631334, + "narHash": "sha256-rL5LSYd85kplL5othxK5lmAtjyMOBg390sGBTb3LRMM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "cbc4211f0afffe6dfd2478a62615dd5175a13f9a", + "rev": "c75037bbf9093a2acb617804ee46320d6d1fea5a", "type": "github" }, "original": { @@ -465,11 +465,11 @@ "rust-analyzer-src": { "flake": false, "locked": { - "lastModified": 1707849817, - "narHash": "sha256-If6T0MDErp3/z7DBlpG4bV46IPP+7BWSlgTI88cmbw0=", + "lastModified": 1709571018, + "narHash": "sha256-ISFrxHxE0J5g7lDAscbK88hwaT5uewvWoma9TlFmRzM=", "owner": "rust-lang", "repo": "rust-analyzer", - "rev": "a02a219773629686bd8ff123ca1aa995fa50d976", + "rev": "9f14343f9ee24f53f17492c5f9b653427e2ad15e", "type": "github" }, "original": { diff --git a/host/Rory-nginx/services/matrix/synapse.nix b/host/Rory-nginx/services/matrix/synapse.nix index df0b172..26c61a1 100755 --- a/host/Rory-nginx/services/matrix/synapse.nix +++ b/host/Rory-nginx/services/matrix/synapse.nix @@ -25,16 +25,16 @@ max_long_retry_delay = "30s"; }; - event_cache_size = "30K"; #defaults to 10K + event_cache_size = "1200K"; #defaults to 10K caches = { - global_factor = 50.0; - cache_entry_ttl = "60m"; + global_factor = 5000.0; + cache_entry_ttl = "12h"; expire_caches = true; - sync_response_cache_duration = "5m"; + sync_response_cache_duration = "6h"; cache_autotuning = { - max_cache_memory_usage = "4096M"; - target_cache_memory_usage = "1024M"; - min_cache_ttl = "30m"; + max_cache_memory_usage = "65536M"; + target_cache_memory_usage = "32768M"; + min_cache_ttl = "6h"; }; }; diff --git a/host/Rory-nginx/services/postgres.nix b/host/Rory-nginx/services/postgres.nix index fcfbc65..3545a31 100755 --- a/host/Rory-nginx/services/postgres.nix +++ b/host/Rory-nginx/services/postgres.nix @@ -24,15 +24,15 @@ dataDir = "/mnt/postgres/data"; settings = { # https://pgconfigurator.cybertec.at/ - max_connections = 100; + max_connections = 250; superuser_reserved_connections = 3; - shared_buffers = "8192MB"; - work_mem = "64MB"; - maintenance_work_mem = "420MB"; + shared_buffers = "32565MB"; + work_mem = "512MB"; + maintenance_work_mem = "1024MB"; huge_pages = "try"; - effective_cache_size = "22GB"; - effective_io_concurrency = "1"; + effective_cache_size = "60GB"; #was 22 + effective_io_concurrency = "8"; random_page_cost = 4; # can use this to view stats: SELECT query, total_time, calls, rows FROM pg_stat_statements ORDER BY total_time DESC LIMIT 10; @@ -44,7 +44,7 @@ wal_level = "replica"; max_wal_senders = 0; - synchronous_commit = "on"; + synchronous_commit = "off"; #was on checkpoint_timeout = "15min"; checkpoint_completion_target = "0.9"; @@ -63,10 +63,10 @@ bgwriter_lru_multiplier = "2.0"; bgwriter_flush_after = "0"; - max_worker_processes = "14"; - max_parallel_workers_per_gather = "7"; - max_parallel_maintenance_workers = "7"; - max_parallel_workers = "14"; + max_worker_processes = "32"; #was 14 + max_parallel_workers_per_gather = "16"; #was 7 + max_parallel_maintenance_workers = "16"; #was 7 + max_parallel_workers = "32"; #was 14 parallel_leader_participation = "on"; enable_partitionwise_join = "on"; @@ -74,7 +74,7 @@ jit = "on"; max_slot_wal_keep_size = "1GB"; track_wal_io_timing = "on"; - maintenance_io_concurrency = "1"; + maintenance_io_concurrency = "4"; wal_recycle = "on"; }; |