openstf / stf

Control and manage Android devices from your browser.
https://openstf.io
Other
13.17k stars 2.71k forks source link

my sysytem connect 300 mobiles,it is caton.how to fix it ? #1031

Open dc77175363 opened 5 years ago

dc77175363 commented 5 years ago

I have 7 provider,300 mobiles total. My computer resoursc is : top - 23:47:50 up 83 days, 19:39, 5 users, load average: 40.88, 14.09, 5.08 Tasks: 543 total, 35 running, 452 sleeping, 1 stopped, 0 zombie %Cpu(s): 89.9 us, 8.8 sy, 0.0 ni, 0.1 id, 0.0 wa, 0.0 hi, 1.2 si, 0.0 st KiB Mem : 16263552 total, 1150164 free, 14354760 used, 758628 buff/cache KiB Swap: 2097148 total, 1927968 free, 169180 used. 1579840 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
13159 root 20 0 1009488 70656 20488 R 18.9 0.4 0:00.61 node
13125 root 20 0 1009496 70240 20384 R 18.2 0.4 0:00.62 node
13135 root 20 0 1009492 70896 20500 S 18.2 0.4 0:00.62 node

please help.

thinkhy commented 4 years ago

seems you need to scale out your cluster for STF backend service

UrielCh commented 1 year ago

How did you connect 300 USB devices on a single host? What kind of USB Hud are you using?

To deal with... some devices I scaled up my setup with a lot of extra software.

I embedded my adbkit instance within a web server, bundle them in a docker image, then deploy it in a Kubernetes cluster.

if you still want massively scall your setup, my setup may interest you.

https://github.com/UrielCh/remote-droid