From 6db568428673c1d962f3c77c41d2d0359c7dd6b0 Mon Sep 17 00:00:00 2001 From: Gyubong Lee Date: Fri, 26 Apr 2024 07:38:46 +0000 Subject: [PATCH] chore: Delete unrelateds --- ddos.py | 13 ------------- run-backend.ai.sh | 33 --------------------------------- test.py | 11 ----------- 3 files changed, 57 deletions(-) delete mode 100644 ddos.py delete mode 100755 run-backend.ai.sh delete mode 100644 test.py diff --git a/ddos.py b/ddos.py deleted file mode 100644 index a8ad262473f..00000000000 --- a/ddos.py +++ /dev/null @@ -1,13 +0,0 @@ -import requests -import threading - -def send_request(): - response = requests.get('http://192.168.0.126:8091') - print(response) - print(response.headers) - - -# threading.Thread(target=send_request).start() - -for i in range(300): # Adjust this value based on your needs - threading.Thread(target=send_request).start() diff --git a/run-backend.ai.sh b/run-backend.ai.sh deleted file mode 100755 index cc9594f8e02..00000000000 --- a/run-backend.ai.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -# Use current Shell as API Mode -tmux rename-window API-Mode - -# Session Mode -tmux new-window -tmux rename-window Session-Mode - -# Manager -tmux new-window -tmux rename-window manager - -# Agent -tmux new-window -tmux rename-window agent - -# Storage -tmux new-window -tmux rename-window storage - -# Web UI -tmux new-window -tmux rename-window web - -sleep 2 - -tmux send-keys -t manager './backend.ai mgr start-server --debug' Enter -tmux send-keys -t agent './backend.ai ag start-server --debug' Enter -tmux send-keys -t storage './py -m ai.backend.storage.server' Enter -tmux send-keys -t web './py -m ai.backend.web.server' Enter -tmux send-keys -t API-Mode 'source env-local-admin-api.sh' Enter -tmux send-keys -t Session-Mode 'source env-local-admin-session.sh' Enter diff --git a/test.py b/test.py deleted file mode 100644 index 4d1d75a529f..00000000000 --- a/test.py +++ /dev/null @@ -1,11 +0,0 @@ -from ai.backend.client.session import Session - - -def test(): - with Session() as session: - result = session.RateLimit.get_hot_anonymous_clients() - print(result) - - -if __name__ == "__main__": - test() \ No newline at end of file