Hi I just installed enterprise 4.0 to test it
But getting a verry weird performance characteristic…
For what ever reason. The stats are showing 50 puts per second, and 60K gets/index scans. The funny thing is that I only have about 3K records in the bucket.
I’m testing on single physical node (32 cores with 128GB and SSDs) to discount any network issues etc…
I have tested 2 scenarios
1- Single write: Can achieve 10K writes per second. (This works great!)
2- RYOW: Can achive only 90 operations total. I.e: Write and then query. (This seems to show the weird behaviour explained above)
And here is the code I run.
Create the client on application start up. CouchbaseEnvironment env = DefaultCouchbaseEnvironment .builder() .queryEndpoints(32) .build(); cluster = CouchbaseCluster.create(env, "10.0.0.xxx"); bucket = cluster.openBucket(BUCKET_NAME);
Per application request…
bucket.insert(doc); String sql = "SELECT * FROM " + BUCKET_NAME + " WHERE fullName =$1"; N1qlParams params = N1qlParams.build().consistency(ScanConsistency.REQUEST_PLUS).adhoc(false); ParameterizedN1qlQuery query = N1qlQuery.parameterized(sql, JsonArray.create().add(fullName), params); N1qlQueryResult result = bucket.query(query);