Comments (1)
sish is very much bound by CPU/network throughout moreso than anything else.
On a test VM I provisioned with 4 cores and 8gb of ram, here were the results I had. It's important to note that this wasn't exhaustive and is fairly anecdotal.
I ran sish with the configuration described in the readme. I then started a large number of ssh connections, each with a single tunnel forward. I did this by generating an ssh key for testing and then running this in a bash shell:
for i in {0..2000}; do ssh -i ./test -n -R 0:httpbin.org:80 ssi.sh & done
I ran this multiple times while watching the CPU/memory usage on the system with htop
.
Doing this, I ran ~15000 connections before I started getting bored (first run of the command above was for 1000 to see if I'd crash my machine, then i ran it 7x over the next few minutes). I then spawned another shell that was randomly firing curl requests at the ports that were bound. The load avg on the system never passed 2
. Memory was negligible, with max usage never peaking over 2gb.
Here's are some graphs I extracted from my monitoring instance:
Connections (purple is sish instance, blue is my dev machine):
From this, it's pretty safe to extrapolate the limits will be based on CPU and network. For this case, sish was listening on TCP ports, which could be a limitation depending on the number of ports available in your environment. If using sish for internal connections (aliases), this limit essentially disappears and instead you're left with number of concurrent ssh sessions and based on the throughput of the data you're transferring potentially being an I/O limit. Like I said, your mileage will vary.
from sish.
Related Issues (20)
- Panic with large body sizes HOT 6
- Usage guide via SSH HOT 1
- websocket connections will be closed once a while HOT 1
- Sish sometimes doesn't clean connections properly HOT 4
- Reconnect same tunnel HOT 1
- sish SSH question
- Force reset connection HOT 10
- Certificate provisioning issues
- URL string replacement in the returned HTML HOT 1
- [Feature-Request] - Record notes when starting a tunnel
- Multiple http/tcp ports on same subdomain HOT 3
- Can I use IP configuration? I have no domain name
- channel 0: open failed: connect failed: Temporary failure in name resolution stdio forwarding failed
- Feature request: allow reading password from file HOT 3
- Run behind SSL terminating proxy HOT 1
- how to disable random subdomain. HOT 1
- Is it possible to run it in debain or openwrt running in Rasberry Pi HOT 7
- cannot get sish to work, connection refused or hangs HOT 1
- [Support] Where to start for adding authentication features HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sish.