Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tcpjunction
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frank Sauerburger
tcpjunction
Commits
7e65471c
Verified
Commit
7e65471c
authored
4 months ago
by
Frank Sauerburger
Browse files
Options
Downloads
Patches
Plain Diff
Add README and LICENSE
parent
b1f32c0a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#15470
failed
4 months ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LICENSE
+18
-0
18 additions, 0 deletions
LICENSE
README.md
+30
-0
30 additions, 0 deletions
README.md
with
48 additions
and
0 deletions
LICENSE
0 → 100644
+
18
−
0
View file @
7e65471c
Copyright 2024 Frank Sauerburger
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
README.md
0 → 100644
+
30
−
0
View file @
7e65471c
# TCP Junction
TCP junction is a tiny TCP-level reverse project implemented in Rust.
The binary doesn't read a configuration file and is completely configured via command-line arguments.
Upstream health is inferred from TCP connection success or failure.
TCP Junction makes it easy to implemented dynamic primary/standby setups or canary deployments.
## Junction logic
TCP Junction accepts at list of
`host:port`
as it's command-line arguments. The first entry
is the host and port to listen on, e.g.,
`0.0.0.0:8080`
. All allowing arguments are considered
upstream sockets.
*
By default, the first item in the list is the preferred socket and
all requests are sent to that host.
*
If the preferred socket is offline, all requests are sent to the next online socket in the list,
cycling back to the beginning at the end of the list.
*
If all sockets are offline and the search for an online socket reach the preferred server again,
requests are sent to the preferred socket regardless of its state.
*
When TCP Junction receives the
`USR1`
signal, the preferred host is advanced by one socket,
cycling back at the end.
Health probes are sent continuously to all configured upstream sockets.
## Usage example
```
bash
$
tcpjunction 0.0.0.0:8080 10.0.0.20:8080 10.0.0.21:8080
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment