k2v-academy / K2View-Academy

Other
0 stars 0 forks source link

Fabric connection to cassandra #512

Closed 4puGzW8N08vYiKdAIZitRdF2T1suLBwMQLFXFAu closed 2 years ago

4puGzW8N08vYiKdAIZitRdF2T1suLBwMQLFXFAu commented 2 years ago

Hello,

In absence of any policy defined in cassandra interface in studio, what policy does fabric use in communication with cassandra ? ( example DC-aware, token-aware policy )?

Regards, Prathamesh

OKDq2HFvrJwtI1UVpjpsmb7mK8QIvCejCkXMDNI commented 2 years ago

Hello,

The following policies and default configurations are defined in the Fabric/Home folder of your project, under config.ini file:

In particular the following entries are of interest:

Cassandra retries policy [DEFAULT/CUSTOM]

RETRY_POLICY=DEFAULT

Cassandra reconnect max delay in ms RECONNECT_MAX_DELAY_MS=1000

Storage can be: MEMORY/DISK/MDB/CASSANDRA/S3/AZURE_BLOB_STORE/NONE/ MDB_DEFAULT_SCHEMA_CACHE_STORAGE_TYPE=CASSANDRA

Compression algorithm to use when storing an instance in Cassandra. Possible values are : GZIP, LZ4 and NONE. Default is LZ4. COMPRESSION=LZ4

Use Cassandra lightweight transactions for masking cache. CASSANDRA_LIGHTWEIGHT_TRANSACTIONS=true

pWIqmFHmGnqqlIyFDwZIlw1JWRHoo8AgicH1IWD commented 2 years ago

Do these apply to external Cassandra DBs as well or only the local one that Fabric uses for storage and application management?

4puGzW8N08vYiKdAIZitRdF2T1suLBwMQLFXFAu commented 2 years ago

Hi Hardik,
Gregory is checking for our internal cassandra DB, I sent him an example detailed article yesterday regarding driver policy settings used by Fabric application.