fix: semaphore+singleflight for ensureUserNS, fix 504 on 10 parallel new users (v0.8.12)

This commit is contained in:
Naeel
2026-04-25 14:41:35 +03:00
parent ca43d0a7d7
commit 3b9c6e2c5e
15 changed files with 3414 additions and 67 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
BASE="https://fission.kube5s.ru/console/api"
NAME59=$(python3 -c "print('a'*59)")
echo "Name len: ${#NAME59}"
echo "Pkg name would be: ${NAME59}-pkg (len=$(python3 -c "print(59+4)"))"
curl -s -w "\nHTTP:%{http_code}" -X POST "${BASE}/functions" \
-H "X-Test-Sub: len59direct@test.local" \
-H "Content-Type: application/json" \
--data-raw "{\"name\":\"${NAME59}\",\"language\":\"nodejs\",\"code\":\"module.exports=async()=>42\"}"
echo