Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

tpcc: How to specify connection parameters (url, port, user, pass) #172

Description

@arruw

I couldn't find example how to set this <db URL>. I'm guessing that this should be JDBC connection string? Also how can I specify user and password?

$ docker run --rm cockroachdb/loadgen-tpcc -h
Usage of tpcc:
  tpcc <db URL>

  -check
        Run consistency checks.
  ...

I tried like that, but it doesn't work.

$ docker run --rm \
    --network roach_roach-net \
    cockroachdb/loadgen-tpcc \
    jdbc:postgresql://roach1:26257 \
    -drop \
    -load \
    -v \
    -ops-stats \
    -tolerate-errors
_time______opName__ops/s(inst)__ops/s(cum)__p50(ms)__p95(ms)__p99(ms)_pMax(ms)
   1s    newOrder          0.0         0.0      0.0      0.0      0.0      0.0
   2s    newOrder          0.0         0.0      0.0      0.0      0.0      0.0
   3s    newOrder          0.0         0.0      0.0      0.0      0.0      0.0
2018/03/20 21:04:41 error in payment: dial tcp 127.0.0.1:26257: getsockopt: connection refused

Thanks for any info :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions