Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LB Algorithms #108

Merged
merged 8 commits into from
Sep 13, 2021
Merged

LB Algorithms #108

merged 8 commits into from
Sep 13, 2021

Conversation

fabiocicerchia
Copy link
Owner

Closes #15

@fabiocicerchia fabiocicerchia force-pushed the feature/issue-15 branch 2 times, most recently from e6fadb1 to 8dc30c5 Compare September 9, 2021 20:13
.env.dist Outdated Show resolved Hide resolved
server/balancer/balancer.go Outdated Show resolved Hide resolved
server/balancer/balancer.go Outdated Show resolved Hide resolved
server/balancer/balancer.go Outdated Show resolved Hide resolved
server/balancer/balancer.go Outdated Show resolved Hide resolved
// HealthCheckInterval - Health Check Frequency
const HealthCheckInterval time.Duration = 30 * time.Second

// TODO: make it customizable
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo

server/balancer/roundrobin.go Outdated Show resolved Hide resolved

rc.GetLogger().Debugf("Async Store Response: %s", rc.Request.URL.String())
go doStoreResponse(rcDTO, rc.DomainConfig.Cache)
rc.GetLogger().Debugf("Sync Store Response: %s", rc.Request.URL.String())
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the connection with client closed? if so, it's ok

@@ -29,7 +29,9 @@ import (
"github.com/fabiocicerchia/go-proxy-cache/utils"
)

var r *dnscache.Resolver = &dnscache.Resolver{}
var r *dnscache.Resolver = &dnscache.Resolver{
// TODO: Customize timeout
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo

server/balancer/balancer.go Outdated Show resolved Hide resolved
@lgtm-com
Copy link

lgtm-com bot commented Sep 13, 2021

This pull request introduces 1 alert when merging 3a74484 into 4ab33a3 - view on LGTM.com

new alerts:

  • 1 for Disabled TLS certificate check

@lgtm-com
Copy link

lgtm-com bot commented Sep 13, 2021

This pull request introduces 1 alert when merging d61a1ae into 4ab33a3 - view on LGTM.com

new alerts:

  • 1 for Disabled TLS certificate check

@fabiocicerchia fabiocicerchia merged commit 8e53070 into main Sep 13, 2021
@fabiocicerchia fabiocicerchia deleted the feature/issue-15 branch March 29, 2022 06:21
fabiocicerchia added a commit that referenced this pull request Apr 1, 2022
* new: LB Algorithms #15
* refactoring
* refactoring + added docs
* minor changes + fixing data races
* fixing pipeline
* added tests for different lb algo
* code review
* Update .github/workflows/main.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LB Algorithms
1 participant