clustering-key

Cassandra TimeUUID flood file descriptor when use uuid in default

大憨熊 提交于 2019-12-02 09:25:30
问题 I have Cassandra model as import uuid from cassandra.cqlengine import columns from cassandra.cqlengine.models import Model class MyModel(Model): ... ... created_at = columns.TimeUUID(primary_key=True, clustering_order='DESC', default=uuid.uuid1) ... ... Recentrly app hit the uuid1 creation doesn't close files - hits file descriptor limit. I try to find the solution, but seems what options I think might be not work Replace uuid1 in default with uuid4 , but TimeUUID need time part in it, and

Cassandra TimeUUID flood file descriptor when use uuid in default

杀马特。学长 韩版系。学妹 提交于 2019-12-02 06:41:07
I have Cassandra model as import uuid from cassandra.cqlengine import columns from cassandra.cqlengine.models import Model class MyModel(Model): ... ... created_at = columns.TimeUUID(primary_key=True, clustering_order='DESC', default=uuid.uuid1) ... ... Recentrly app hit the uuid1 creation doesn't close files - hits file descriptor limit . I try to find the solution, but seems what options I think might be not work Replace uuid1 in default with uuid4 , but TimeUUID need time part in it, and only uuid1 provide that. Relace uuid1 with cassandra.util.uuid_from_time(time.time()) , when check the