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

sql: add http_addr column to sqlliveness table #65720

Closed

Conversation

dhartunian
Copy link
Collaborator

In order to implement fan out requests between
SQL pods, we need a place to store their HTTP
addresses so the pods can independently know how
to talk to other tenants.

This commit adds a column http_addr to the
system.sqlliveness table and populates it with
the HTTP listening address of the tenant pod on
startup.

Resolves #64475

Release note: None

In order to implement fan out requests between
SQL pods, we need a place to store their HTTP
addresses so the pods can independently know how 
to talk to other tenants.

This commit adds a column `http_addr` to the
`system.sqlliveness` table and populates it with
the HTTP listening address of the tenant pod on
startup.

Resolves cockroachdb#64475

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@ajwerner
Copy link
Contributor

I am rather opposed to this. Maybe you should also be in the meeting we're having this afternoon about allocating instance IDs. Network addresses should be there and not here.

Also, I think we're missing some over-arching design. These are really tightly linked concepts.

cc @rimadeodhar @knz

@dhartunian
Copy link
Collaborator Author

I am rather opposed to this. Maybe you should also be in the meeting we're having this afternoon about allocating instance IDs. Network addresses should be there and not here.

Also, I think we're missing some over-arching design. These are really tightly linked concepts.

cc @rimadeodhar @knz

Gotcha. I'll attend. Thx for flagging.

@dhartunian
Copy link
Collaborator Author

Pausing this for now pending decision on the Instance IDs

@dhartunian dhartunian closed this May 26, 2021
@dhartunian dhartunian deleted the store-ids-of-sql-pods branch November 14, 2022 16:38
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.

server: store instance ID and network addresses of SQL pods
3 participants