Title: The difference in runtime when using master node connection and multicast mode of GridDB
Tags: griddb
Question: I am trying to measure GridDB performance using sample1.py with GridDB python client.
When using multicast mode, it took 3.714s. I used this command: &quot;time python sample/sample1.py 151.154.11.224 31999 griddb admin admin&quot;
I tried using the master node instead of the multicast address and the time was reduced to 0.323s.
The command was : &quot;time python sample/sample1.py MASTER_NODE_IP_ADDRESS 10001 griddb admin admin&quot;.
=&gt; Event results are the same, but there are more than 10 times different in the execution time.
Why does the performance differ so much and when should we use the multicast mode?


Here is another answer: If you just connect to the master node, you will only be able see containers stored on the master node.
It is important to note, the initial connection time only occurs once so it's not fair to characterize it as being 10x slower. In your system it takes 3.5 seconds and and the actual operations take .3 seconds. Repeating those same operations would take another .3 seconds. In a real world application, the initialization time doesn't count towards actual system performance.
If you have an application that only performs a few operations, I find FIXED_LIST mode to connect faster.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2020:00:07/14/20', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<griddb>', 'Title': 'The difference in runtime when using master node connection and multicast mode of GridDB', 'ViewCount': 41, 'id': 62889811, 'user_AboutMe': None, 'user_AccountId': 17855534.0, 'user_DisplayName': 'Tung Duong', 'user_Reputation': 83.0, 'user_Views': 6.0, 'user_id': 12970238.0}}