Slackbot
08/31/2023, 9:21 PMOr Weis
08/31/2023, 9:56 PMOr Weis
08/31/2023, 9:57 PMKevin Lin
08/31/2023, 10:36 PM<redis://url_here:6379> , is there any other configuration we need to do? We've been combing through the docs but dont see any issues with our setupOr Weis
08/31/2023, 10:41 PMKevin Lin
08/31/2023, 10:52 PMOr Weis
08/31/2023, 10:55 PMKevin Lin
08/31/2023, 10:57 PMOr Weis
08/31/2023, 10:59 PMKevin Lin
08/31/2023, 10:59 PMOr Weis
08/31/2023, 11:01 PMSteven Daniels
09/01/2023, 12:59 PMSteven Daniels
09/01/2023, 1:21 PMOr Weis
09/01/2023, 1:31 PMSteven Daniels
09/01/2023, 2:20 PMOr Weis
09/01/2023, 2:28 PMKevin Lin
09/01/2023, 2:33 PMJason McIntosh
09/01/2023, 4:29 PMOr Weis
09/01/2023, 4:56 PMisn’t the broadcast url thing only for server sync? OR is that for clients? I thought clients did a socket pub/sub to the opal serversIt’s for the servers to sync. But if client-1 subscribe to server-1 (or worker 1), and you publish to server-2, unless they are connected via the broadcaster the message won’t reach server-1, and so won’t reach client-1
Jason McIntosh
09/01/2023, 4:57 PMRo'e Katz
09/02/2023, 2:42 PMUVICORN_NUM_WORKERS to 1? (When doing so, it’s not even necessary to turn broadcaster off).
If you’re willing to share your server and client configurations (or just parts of it) - that might help us figure out what might be the issue.Steven Daniels
09/05/2023, 3:37 PMopal_common.topics.publisher |DEBUG | stopping topic publisher
2. connection made/lost logs from asyncio_redis.protocol
2023-09-05T14:10:38.759930+0000 | opal_server.data.data_update_publisher | INFO | [23] Publishing data update to topics: {'policy_data'}, reason: because, entries: [{'url': '', 'method': 'PATCH', 'path': '/food/for', 'inline_data': True, 'topics': ['policy_data']}]
2023-09-05T14:10:38.760169+0000 | opal_common.topics.publisher |DEBUG | started topic publisher
2023-09-05T14:10:38.760300+0000 | opal_common.topics.publisher |DEBUG | stopping topic publisher
2023-09-05T14:10:38.760524+0000 | fastapi_websocket_pubsub.pub_sub_server |DEBUG | Publishing message to topics: ['policy_data']
2023-09-05T14:10:38.760662+0000 | fastapi_websocket_pubsub.pub_sub_server |DEBUG | Acquiring broadcaster sharing context
2023-09-05T14:10:38.760808+0000 | fastapi_websocket_pubsub.event_broadc...|DEBUG | Did not subscribe to ALL_TOPICS: share count == 7
2023-09-05T14:10:38.761013+0000 | fastapi_websocket_pubsub.event_notifier | INFO | calling subscription callbacks: topic=policy_data, subscription_id=47584a88bc844224b34a4a212f570288, subscriber_id=3569da5a07454b749e91571dc8423470
2023-09-05T14:10:38.761689+0000 | fastapi_websocket_pubsub.rpc_event_me...| INFO | Notifying other side: subscription={'id': '47584a88bc844224b34a4a212f570288', 'subscriber_id': '3569da5a07454b749e91571dc8423470', 'topic': 'policy_data', 'notifier_id': None}, data=id='2' entries=[DataSourceEntry(url='', data={'thought': 'uses policy_data', 'key': 'value', 'services': ['1', '2']}, config=None, topics=['policy_data'], dst_path='/food/for', save_method='PATCH')] reason='because' callback=UpdateCallback(callbacks=[]), channel_id=3569da5a07454b749e91571dc8423470
2023-09-05T14:10:38.762027+0000 | fastapi_websocket_rpc.rpc_channel |DEBUG | Calling RPC method - {'message': RpcMessage(request=RpcRequest(method='notify', arguments={'subscription': Subscription(id='47584a88bc844224b34a4a212f570288', subscriber_id='3569da5a07454b749e91571dc8423470', topic='policy_data', notifier_id=None), 'data': DataUpdate(id='2', entries=[DataSourceEntry(url='', data={'thought': 'uses policy_data', 'key': 'value', 'services': ['1', '2']}, config=None, topics=['policy_data'], dst_path='/food/for', save_method='PATCH')], reason='because', callback=UpdateCallback(callbacks=[]))}, call_id='034ff542b9f94705bd3da54fea773d50'), response=None)}
2023-09-05T14:10:38.762701+0000 | fastapi_websocket_pubsub.event_notifier | INFO | calling subscription callbacks: topic=policy_data (ALL_TOPICS), subscription_id=f0112c744fa74bcdbdc9b2980af5d8c2, subscriber_id=849b01350ed044079d827607ac4fa02f
2023-09-05T14:10:38.762865+0000 | fastapi_websocket_pubsub.event_broadc...| INFO | Broadcasting incoming event: {'topic': 'policy_data', 'notifier_id': '849b01350ed044079d827607ac4fa02f'}
2023-09-05T14:10:38.763098+0000 | asyncio_redis.connection | INFO | Connecting to redis
2023-09-05T14:10:38.764908+0000 | asyncio_redis.protocol | INFO | Redis connection made
2023-09-05T14:10:38.765122+0000 | asyncio_redis.connection | INFO | Connecting to redis
2023-09-05T14:10:38.766236+0000 | asyncio_redis.protocol | INFO | Redis connection made
2023-09-05T14:10:38.772320+0000 | asyncio_redis.protocol | INFO | Redis connection lost
2023-09-05T14:10:38.772750+0000 | asyncio_redis.protocol | INFO | Redis connection lost
2023-09-05T14:10:38.772808+0000 | fastapi_websocket_pubsub.event_broadc...| INFO | Handling incoming broadcast event: {'topics': ['policy_data'], 'src': '849b01350ed044079d827607ac4fa02f'}
2023-09-05T14:10:38.772924+0000 | fastapi_websocket_pubsub.event_broadc...| INFO | Handling incoming broadcast event: {'topics': ['policy_data'], 'src': '849b01350ed044079d827607ac4fa02f'}Steven Daniels
09/05/2023, 3:38 PMOr Weis
09/05/2023, 3:46 PMOr Weis
09/05/2023, 3:46 PM