Add SSD-backed Flash-Next endpoint profile and benchmark evidence

This commit is contained in:
Mikei386 committed 2026-10-09 16:42:50 +02:00
1 parent c15dfad35c
commit 95cf2d9fd5
59 files changed
+9971 -7

No files matched your search

+6 -1
View File
@@ -142,11 +142,16 @@ def launch(config):
base=Path(config['base'])
args=['docker','run','-d','--name',config['name'],'--label',LABEL+'='+str(base),
'--restart','unless-stopped','--read-only','--cap-drop','ALL','--security-opt','no-new-privileges:true',
'--pids-limit','256' if config.get('image_runtime') else '128','--memory','32g' if config.get('image_runtime') else '8g','--cpus','6', '--tmpfs','/tmp:rw,nosuid,nodev,size=1g',
'--pids-limit','256' if config.get('image_runtime') else '128','--memory',config.get('memory_limit','32g' if config.get('image_runtime') else '8g'),'--cpus','6', '--tmpfs','/tmp:rw,nosuid,nodev,size=1g',
'-v',str(base/'state')+':/var/lib/deck:rw','--mount','type=bind,src=/proc,dst=/host/proc,readonly','-e','DECK_HOST_PROC=/host/proc','-e','DECK_ALLOWED_HOSTS=127.0.0.1:'+str(config['port'])+',localhost:'+str(config['port']),
'-p','127.0.0.1:'+str(config['port'])+':8108',
'--health-cmd', 'python3 -c "import urllib.request,json; assert json.load(urllib.request.urlopen(\'http://127.0.0.1:8108/api/v1/auth/status\',timeout=3))[\'initialized\']"',
'--health-interval','30s','--health-timeout','5s','--health-retries','3']
if config.get('memory_swap_limit'):args+=['--memory-swap',str(config['memory_swap_limit'])]
for external in config.get('external_model_roots',[]):
path=Path(external)
if not path.is_absolute() or not path.is_dir() or ',' in str(path):raise RuntimeError('Ungültiger externer Modellpfad.')
args+=['--mount',f'type=bind,src={path},dst={path},readonly']
if config['port'] in (8134,8135,8139) or set(config.get('api_ports',[])) & {8134,8135,8139}:raise RuntimeError('Ports 8134/8135/8139 sind für interne Stimmwerkzeug-Brücken reserviert.')
args+=['-p','127.0.0.1:8134:8134','-p','127.0.0.1:8135:8135','-p','127.0.0.1:8139:8139']
if config.get('api_ports'):