Comments (10)
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?
from edgelessdb.
Hi,
Thanks for your quick response.
- You used https://github.com/Percona-Lab/sysbench-tpcc but I think it connects database by socket while EdgelessDB needs key/certificate authentication. May I know how you gap the bridge and implement the adaptation for the tpcc testing?
- We have 8 Intel(R) Xeon(R) CPUs (E3-1280 v6 @ 3.90GHz, with 4 cores each) for the testing. I ran the experiments several times and realized that:
1) the deadlocks are possibly related to RocksDB, since the deadlocks still existed even with much light workload and my experiment based on innoDB worked well. So I think my testing program is not suitable for EdgelessDB/RocksDB and try to base on your suggested repo.
2) It seems the result "EdgelessDB is slightly slower than native MariaDB and better than MySQL innoDB" has certain limitation, i.e. workload. Because when I increase the thread number from 4 to 32 in the experiment, the average throughput of MySQL-innoDB increased and even far outperformed EdgelessDB at thread 32, while the counterpart of EdgelessDB decreased.
from edgelessdb.
- Use this as manifest:
{
"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.
from edgelessdb.
- 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:
- How should I make the benchmark ?
- Has the issue mentioned above been fixed ?
from edgelessdb.
@thomasten Could you help me at your convenience?
from edgelessdb.
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.
from edgelessdb.
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.
from edgelessdb.
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
?
from edgelessdb.
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.
from edgelessdb.
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.
from edgelessdb.
Related Issues (20)
- 2022/05/25 09:23:10 http: panic serving 192.168.112.3:51396: cannot read MariaDB's error log: open /tmp/edb/mariadb-error.log: no such file or directory HOT 4
- Failed to get certificate quote verification collateral information. OE_QUOTE_PROVIDER_CALL_ERROR HOT 2
- using insecure PCCS_URL via docker env HOT 2
- failed run Percona-Lab/sysbench-tpcc HOT 6
- Is putting the password in the environment variable secure enough? HOT 2
- where is sgx_enclave & sgx_provision ? HOT 6
- no performance_schema feature? HOT 8
- Access Denied HOT 13
- Is this a way to attack? HOT 1
- Are there any benchmark numbers? HOT 1
- Grant permission to execute one specific query HOT 1
- Performance testing HOT 4
- Crash when running performance test. HOT 3
- Bug when process step 1 HOT 1
- fatal error: nanotime returning zero HOT 4
- data persistance expecations are not documented HOT 5
- Recovery question HOT 2
- Does EdgelessDB support backup? HOT 8
- Using ALTER TABLE to add an index after INSERT dumps the core HOT 5
- Is EdgelessDB the same way with Mysql writes data to disk? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edgelessdb.