gorb icon indicating copy to clipboard operation
gorb copied to clipboard

Unable to add "same" backend to multiple services

Open wociscz opened this issue 8 years ago • 2 comments

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 avatar Jun 12 '17 12:06 wociscz

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

wociscz avatar Jun 12 '17 12:06 wociscz

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?

kobolog avatar Nov 28 '17 20:11 kobolog