hub_connect_ip, hub_connect_port, hub_connect_url - ?
See original GitHub issueI ran into this warning while starting up a JupyterHub deployed with z2jh.
[W 2018-08-01 10:17:10.155 JupyterHub app:1129] JupyterHub.hub_connect_port is deprecated as of 0.9. Use JupyterHub.hub_connect_url to fully specify the URL for connecting to the Hub.
This is what it looks like in the z2jh hub’s jupyterhub_config.py
:
c.JupyterHub.base_url = get_config('hub.base_url')
c.JupyterHub.db_url = get_config('hub.db_url')
c.JupyterHub.ip = os.environ['PROXY_PUBLIC_SERVICE_HOST']
c.JupyterHub.port = int(os.environ['PROXY_PUBLIC_SERVICE_PORT'])
# the hub should listen on all interfaces, so the proxy can access it
c.JupyterHub.hub_ip = '0.0.0.0'
c.JupyterHub.hub_connect_ip = os.environ['HUB_SERVICE_HOST']
c.JupyterHub.hub_connect_port = int(os.environ['HUB_SERVICE_PORT'])
# Spawner related
# ------------------------------------------------------------------------------
# Gives spawned containers access to the API of the hub
c.KubeSpawner.hub_connect_ip = os.environ['HUB_SERVICE_HOST']
c.KubeSpawner.hub_connect_port = int(os.environ['HUB_SERVICE_PORT'])
KubeSpawner question
- Do we need to make a change within
kubespawner
as well?
JupyterHub / Z2jh confirmation…
- Does this seem right?
c.JupyterHub.hub_connect_url = '{host}:{port}'.format(
host=os.environ['HUB_SERVICE_HOST'],
port=os.environ['HUB_SERVICE_PORT']
)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
HubConnection Class (Microsoft.AspNetCore.SignalR.Client)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. HubConnectionBuilder Class (Microsoft.AspNetCore.SignalR ...
Read more >How to use existing SignalR hubconnection in different pages ...
I have Blazor application (client and Server). In client application hub connection initialized in mainLayout with this code:
Read more >SignalR-Client-Swift/HubConnection.swift at master - GitHub
`HubConnection` is the client for interacting with SignalR server. It allows invoking server side hub methods and register handlers for client side methods....
Read more >SignalR modules with a shared connection using a C# Source ...
When we register a handler using the HubConnection.On method, it returns an IDisposable that can be used to unsubscribe from the hub method....
Read more >HubConnection | Documentation - Tivadar György Nagy
The HubConnection class is the main entry point for a SignalR Core connection. Protocols. SignalR Core supports different protocols to encode its messages ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The kubespawner hub_connect logic should be deprecated, in favor of the JupyterHub config
JupyterHub 0.8 (or 0.7?) added
hub_connect
config itself, which had been implemented in a few different Spawners. The Spawner implementations should be slowly deprecated, instead relying on the hub config. The first step is to have the Spawner values default to the Hub config, with a warning when they are overridden directly.We have updated the connection settings in jupyterhub_config.py part of the JupyterHub helm chart.