Open X1anWang opened 2 years ago
Hi, We used https://github.com/Percona-Lab/sysbench-tpcc for benchmarks. Also see Benchmarks section of this blog post.
What CPU do you run this on?
But there is 0 failure, as the final testing report showed. So I guess there is no bug for my program and EdgelessDB, since there is no failure, and possibly just because of the workload is too heavy?
I'd guess so, too. It might also be related to RocksDB. Do you use InnoDB or Myrocks as storage engine for the MySQL baseline?
Hi,
Thanks for your quick response.
{
"sql": [
"GRANT ALL ON *.* TO root"
]
}
Then you can connect with user root without password or certificate.
2. We did the benchmark on an Icelake CPU. Prior generations like your CPU suffer from small EPC size, so performance difference to native MariaDB is expected to be larger.
2.2 That's probably true.
- Use this as manifest:
{ "sql": [ "GRANT ALL ON *.* TO root" ] }
Then you can connect with user root without password or certificate.
- We did the benchmark on an Icelake CPU. Prior generations like your CPU suffer from small EPC size, so performance difference to native MariaDB is expected to be larger.
2.2 That's probably true.
Hi, @thomasten . I use the manifest like you provided, but I could not connect edb anyway. And the problem mentioned here no longer appear. My question is:
@thomasten Could you help me at your convenience?
Hi @zeuson0, Sorry for the late response. So if I run EdgelessDB
docker run --pull always -t --name my-edb -p3306:3306 -p8080:8080 -e OE_SIMULATION=1 ghcr.io/edgelesssys/edgelessdb-sgx-1gb
and then initialize it with that manifest
echo '{"sql":["GRANT ALL ON *.* TO root"]}' > manifest.json
curl -k --data-binary @manifest.json https://localhost:8080/manifest
I can connect to it with
mysql -h127.0.0.1 -uroot
Does this work for you? If not, please post any error messages you see.
mysql -h127.0.0.1 -uroot
Thanks for your response @thomasten. I did it like you provided, but It's not work for me. The error message post by mysql client is:
ERROR 1045 (28000): Access denied for user 'root'@'172.17.0.1' (using password: NO)
And edb didn't not post any error.
Does it make a difference if you run it on another port with
docker run --pull always -t --name my-edb -p3307:3306 -p8080:8080 -e OE_SIMULATION=1 ghcr.io/edgelesssys/edgelessdb-sgx-1gb
and connect with
mysql -h127.0.0.1 -P3307 -uroot
?
Does it make a difference if you run it on another port with
docker run --pull always -t --name my-edb -p3307:3306 -p8080:8080 -e OE_SIMULATION=1 ghcr.io/edgelesssys/edgelessdb-sgx-1gb
and connect with
mysql -h127.0.0.1 -P3307 -uroot
?
I originally used port 3307 to try it because the port was occupied. And I tried port 3306 just now, it caused the same error.
Try debug mode with
docker run --pull always -t --name my-edb -p3306:3306 -p8080:8080 -e OE_SIMULATION=1 -e EDG_EDB_DEBUG=1 ghcr.io/edgelesssys/edgelessdb-sgx-1gb
and manifest
echo '{"sql":["GRANT ALL ON *.* TO root"],"debug":true}' > manifest.json
Then edb may print something if you try to connect.
Hi,
I want to test the capacity of EdgelessDB (e.g., throughput). Given open-sourced TPC-C is for innoDB and sysbench does not support certificate authentication, I have to build a testing program myself (BTW, what tool do you use to gain the experimental result, EdgelessDB delivers close to the native performance?), which is finally decided to be built on the TPC-C GitHub repo.
While the testing program works well on my MySQL, the test on EdgelessDB results in:
While I know that there are many possible reasons for the result and have a few plans to evaluate them, it will be my honor if I can know your ideas and opinions about the issues. Hearty thanks for your time and patience : )