Skip to content

Commit 2c2b9c4

Browse files
committed
storage tuning
1 parent 6fe94be commit 2c2b9c4

2 files changed

Lines changed: 56 additions & 12 deletions

File tree

infrastructure/storage/csi-driver-nfs/storage-class.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ mountOptions:
1717
- nfsvers=4.1
1818
- nolock
1919
- tcp
20+
- rsize=1048576
21+
- wsize=1048576
22+
- noatime
23+
- nconnect=4
2024
---
2125
# llama-cpp NFS storage class (10G)
2226
apiVersion: storage.k8s.io/v1
@@ -33,3 +37,7 @@ mountOptions:
3337
- nfsvers=4.1
3438
- nolock
3539
- tcp
40+
- rsize=1048576
41+
- wsize=1048576
42+
- noatime
43+
- nconnect=4

infrastructure/storage/csi-driver-smb/storage-class.yaml

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# =============================================================================
2+
# 10G SMB Storage Classes (192.168.10.133) - Optimized for 10G
3+
# =============================================================================
4+
15
# ComfyUI specific storage class
26
apiVersion: storage.k8s.io/v1
37
kind: StorageClass
@@ -7,13 +11,18 @@ provisioner: smb.csi.k8s.io
711
parameters:
812
source: //192.168.10.133/k8s/comfyui
913
csi.storage.k8s.io/node-stage-secret-name: smbcreds
10-
# ✅ CORRECTED: Point to the namespace where the secret is actually created
1114
csi.storage.k8s.io/node-stage-secret-namespace: csi-driver-smb
1215
mountOptions:
1316
- dir_mode=0770
1417
- file_mode=0660
1518
- vers=3.0
16-
- noserverino # Recommended for stability
19+
- noserverino
20+
- cache=loose
21+
- rsize=4194304
22+
- wsize=4194304
23+
- actimeo=60
24+
- echo_interval=60
25+
- max_credits=64
1726
reclaimPolicy: Retain
1827
volumeBindingMode: Immediate
1928
allowVolumeExpansion: true
@@ -25,15 +34,20 @@ metadata:
2534
name: ollama-smb
2635
provisioner: smb.csi.k8s.io
2736
parameters:
28-
# Point directly to the ollama subfolder on the SMB share
2937
source: //192.168.10.133/k8s/ollama
3038
csi.storage.k8s.io/node-stage-secret-name: smbcreds
3139
csi.storage.k8s.io/node-stage-secret-namespace: csi-driver-smb
3240
mountOptions:
3341
- dir_mode=0770
3442
- file_mode=0660
3543
- vers=3.0
36-
- noserverino # Recommended for stability
44+
- noserverino
45+
- cache=loose
46+
- rsize=4194304
47+
- wsize=4194304
48+
- actimeo=60
49+
- echo_interval=60
50+
- max_credits=64
3751
reclaimPolicy: Retain
3852
volumeBindingMode: Immediate
3953
allowVolumeExpansion: true
@@ -45,15 +59,20 @@ metadata:
4559
name: frigate-smb
4660
provisioner: smb.csi.k8s.io
4761
parameters:
48-
# Point directly to the ollama subfolder on the SMB share
4962
source: //192.168.10.133/k8s/frigate
5063
csi.storage.k8s.io/node-stage-secret-name: smbcreds
5164
csi.storage.k8s.io/node-stage-secret-namespace: csi-driver-smb
5265
mountOptions:
5366
- dir_mode=0770
5467
- file_mode=0660
5568
- vers=3.0
56-
- noserverino # Recommended for stability
69+
- noserverino
70+
- cache=loose
71+
- rsize=4194304
72+
- wsize=4194304
73+
- actimeo=60
74+
- echo_interval=60
75+
- max_credits=64
5776
reclaimPolicy: Retain
5877
volumeBindingMode: Immediate
5978
allowVolumeExpansion: true
@@ -65,20 +84,25 @@ metadata:
6584
name: llama-cpp-smb
6685
provisioner: smb.csi.k8s.io
6786
parameters:
68-
# Point directly to the ollama subfolder on the SMB share
6987
source: //192.168.10.133/k8s/llama-cpp
7088
csi.storage.k8s.io/node-stage-secret-name: smbcreds
7189
csi.storage.k8s.io/node-stage-secret-namespace: csi-driver-smb
7290
mountOptions:
7391
- dir_mode=0770
7492
- file_mode=0660
7593
- vers=3.0
76-
- noserverino # Recommended for stability
94+
- noserverino
95+
- cache=loose
96+
- rsize=4194304
97+
- wsize=4194304
98+
- actimeo=60
99+
- echo_interval=60
100+
- max_credits=64
77101
reclaimPolicy: Retain
78102
volumeBindingMode: Immediate
79103
allowVolumeExpansion: true
80104
---
81-
# tubearchivist specific storage class (uses 2.5G network - not AI workload)
105+
# tubearchivist specific storage class
82106
apiVersion: storage.k8s.io/v1
83107
kind: StorageClass
84108
metadata:
@@ -92,12 +116,18 @@ mountOptions:
92116
- dir_mode=0770
93117
- file_mode=0660
94118
- vers=3.0
95-
- noserverino # Recommended for stability
119+
- noserverino
120+
- cache=loose
121+
- rsize=4194304
122+
- wsize=4194304
123+
- actimeo=60
124+
- echo_interval=60
125+
- max_credits=64
96126
reclaimPolicy: Retain
97127
volumeBindingMode: Immediate
98128
allowVolumeExpansion: true
99129
---
100-
# kiwix specific storage class (uses 2.5G network - not AI workload)
130+
# kiwix specific storage class
101131
apiVersion: storage.k8s.io/v1
102132
kind: StorageClass
103133
metadata:
@@ -112,6 +142,12 @@ mountOptions:
112142
- file_mode=0660
113143
- vers=3.0
114144
- noserverino
145+
- cache=loose
146+
- rsize=4194304
147+
- wsize=4194304
148+
- actimeo=60
149+
- echo_interval=60
150+
- max_credits=64
115151
reclaimPolicy: Retain
116152
volumeBindingMode: Immediate
117-
allowVolumeExpansion: true
153+
allowVolumeExpansion: true

0 commit comments

Comments
 (0)