faust icon indicating copy to clipboard operation
faust copied to clipboard

GlobalTable not working with multiple workers

Open vinaygopalkrishnan opened this issue 3 years ago • 2 comments

Hi,

Using a Global Table across 3 workers. The Global Table is used to store metadata used for joining in stream processing. The Table is supposed to have 300,000 keys. However, only 1 of the 3 workers has 300,000 keys. The other 2 workers stop reading keys after a certain point. The 2nd worker has 104688 keys and the 3rd worker has only 23,583 keys.

Here is the table definition:

test_changelog_topic = app.topic(f"test-changelog", partitions=1, compacting=True, deleting=False )

lookup_upc = app.GlobalTable('test', default=None, value_type=ApexUpc, partitions=1, changelog_topic=test_changelog_topic, extra_topic_configs= { "cleanup.policy": 'compact', }
)

vinaygopalkrishnan avatar May 23 '21 03:05 vinaygopalkrishnan

You might want to try the fork at https://github.com/faust-streaming/faust

It has a lot of fixes that have not been applied to this project, which has been unmaintained for a while now.

bobh66 avatar May 24 '21 00:05 bobh66

Thanks for the update, will try that fork.

vinaygopalkrishnan avatar May 26 '21 16:05 vinaygopalkrishnan