Configuration HazelcastClient for start_async=True

23 views
Skip to first unread message

UCA ForumTeam

unread,
May 30, 2022, 1:13:58 PM5/30/22
to Hazelcast
I try to make my application as fast as possible and tried to play with async in Hazelcast.

My config is:
```
client = hazelcast.HazelcastClient(
async_start=True,
retry_jitter=0.2,
redo_operation=True,
smart_routing=False,
retry_max_backoff=15,
retry_multiplier=1.5,
retry_initial_backoff=1,
cluster_connect_timeout=120,
reconnect_mode=ReconnectMode.ASYNC,
lifecycle_listeners=[lambda state: print("Lifecycle event >>>", state)],
)

I run "hz" server via docker-compose(I attached the screenshot of the successful start)

However, when I run:
coinpairs_map = client.get_map("coinpairs-map")


I get this error:

hazelcast.errors.ClientOfflineError: No connection found to cluster

All I need to execute async/await operations and do write/read process async
```
Screenshot from 2022-05-30 23-04-38.png
Reply all
Reply to author
Forward
0 new messages