Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adnan Ahmad
YCSB
Commits
c8d316e9
Commit
c8d316e9
authored
9 years ago
by
Jean-Daniel Cryans
Browse files
Options
Downloads
Patches
Plain Diff
Make kudu_sync_ops default to true, adjust the doc
parent
c5a9ec95
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kudu/README.md
+2
-3
2 additions, 3 deletions
kudu/README.md
kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java
+4
-4
4 additions, 4 deletions
kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java
with
6 additions
and
7 deletions
kudu/README.md
+
2
−
3
View file @
c8d316e9
...
...
@@ -34,12 +34,11 @@ Additional configurations:
uses 4 tablets. A good rule of thumb is to use 5 per tablet server.
*
`kudu_table_num_replicas`
: The number of replicas that each tablet will have. The default is 3. Should
only be configured to use 1 instead, for single node tests.
*
`kudu_sync_ops`
: If the client should buffer data before sending it. The default is false. Should
always be set to true for the run phase.
*
`kudu_sync_ops`
: If the client should wait after every write operation. The default is true.
*
`kudu_block_size`
: The data block size used to configure columns. The default is 4096 bytes.
Then, you can run the workload:
```
bin/ycsb run kudu -P workloads/workloada
-p kudu_sync_ops=true
bin/ycsb run kudu -P workloads/workloada
```
This diff is collapsed.
Click to expand it.
kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java
+
4
−
4
View file @
c8d316e9
...
...
@@ -84,13 +84,13 @@ public class KuduYCSBClient extends com.yahoo.ycsb.DB {
initClient
(
debug
,
tableName
,
getProperties
());
this
.
session
=
client
.
newSession
();
if
(
getProperties
().
getProperty
(
SYNC_OPS_OPT
)
!=
null
&&
getProperties
().
getProperty
(
SYNC_OPS_OPT
).
equals
(
"true"
))
{
this
.
session
.
setFlushMode
(
KuduSession
.
FlushMode
.
AUTO_FLUSH_SYNC
);
}
else
{
getProperties
().
getProperty
(
SYNC_OPS_OPT
).
equals
(
"false"
))
{
this
.
session
.
setFlushMode
(
KuduSession
.
FlushMode
.
AUTO_FLUSH_BACKGROUND
);
this
.
session
.
setMutationBufferSpace
(
100
);
}
else
{
this
.
session
.
setFlushMode
(
KuduSession
.
FlushMode
.
AUTO_FLUSH_SYNC
);
}
this
.
session
.
setMutationBufferSpace
(
100
);
try
{
this
.
table
=
client
.
openTable
(
tableName
);
}
catch
(
Exception
e
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment