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

Unable to add "same" backend to multiple services #45

Open
wociscz opened this issue Jun 12, 2017 · 2 comments
Open

Unable to add "same" backend to multiple services #45

wociscz opened this issue Jun 12, 2017 · 2 comments

Comments

@wociscz
Copy link

wociscz commented Jun 12, 2017

When i try to add same backend (with same name - hostname) i have got

{
	"error": "specified object already exists"
}

For example, i'm trying to have one host/backend in multiple services for http 80 and https 443. So hostname/backend the same, but i must "create" for the same host/backend different "name" ...
The global uniqueness of backend name is not necessary - if i look at this from "perspective", or am i missing something..?

As workaround i'm creating backend name as hostname_portnumber, which is also "Bad" because one hostname with same port should be member of multiple services.. so as actual workaround of this i must creating backend name like servicename_hostname_port - it is ugly...

@wociscz
Copy link
Author

wociscz commented Jun 12, 2017

hmm i see - the global uniqueness is maybe for "counters" - like uptime?
should be possible to create this uniqueness only internally? just my 50cents

@kobolog
Copy link
Owner

kobolog commented Nov 28, 2017

Since services and backends are maintained as two separate maps, trying to create a new backend with the same particulars as the existing one would fail yeah. I think the right approach here would be to allow backends to be a part of multiple services, what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants