README 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. DHCP micro-benchmarks
  2. -----------------------
  3. This directory contains simplified prototypes for various DB back-ends
  4. that are planned or considered as a backend engine for BIND10 DHCP.
  5. Athough trivial now, they are expected to evolve into useful tools
  6. that will allow users to measure performance in their specific environment.
  7. Currently the following benchmarks are planned:
  8. - in memory+flat file
  9. - SQLite
  10. - MySQL
  11. As they require additional (sometimes heavy) dependencies, they are not
  12. built by default. Actually, their build system completely separated.
  13. It will be eventually merged with the main BIND10 makefile system, but
  14. that is a low priority for now.
  15. MySQL backend
  16. ---------------
  17. MySQL backend requires MySQL client development libraries. It uses
  18. mysql_config tool (that works similar to pkg-config) to discover
  19. required compilation and linking options. To install required packages
  20. on Ubuntu, use the following command:
  21. sudo apt-get install mysql-client mysql-server libmysqlclient-dev
  22. Running MySQL server is required. Make sure that you have your setup
  23. configured so there is a user that is able to create databases.
  24. Before running tests, you need to initialize your database. You can
  25. use mysql-init.sql script for that purpose.
  26. WARNING: It will drop existing Kea database. Do not run this on
  27. your production server. Assuming your MySQL user is kea, you can
  28. initialize your test database by:
  29. mysql -u kea -p < mysql-init.sql
  30. After that step, you are ready to run the test:
  31. ./mysql_ubench