- Installed redis
sudo apt-get -y install redis-serverThe default configuration with no password and tied to the loopbask is fine. In production environments, of course add a password.You may want to download and install the latest version.https://redislabs.com/python-redis\- pip install redis
Well now that I have mongo and postgresql certification, I am ready to start my dad project again. It will initially support MySQL, Mogno, and PostgreSQL without replication. Then add in replication, vertica, voltdb, and cassandra. There are different types of replication, and it can be a pain. I will update the progress to this blog for DAD.
Project list:
Part 1
1. Load from YAML options file what database and location to run DAD from. Initially MySQL, Postgresql, or Mongo.
2. Basic connection for database.
3. Initial DAD setup scripts.
4. Store process information
5. Store OS information
6. Store misc information
7. Store diskspace according to database and according to OS.
8. One module for each database type with the same functions to get data.
9. Each module will have a support module.
10. Modules are dynamically loaded when needed and otherwise abort. Aborting one type of database doesn't kill the scripts from running with the other databases.
11. Log file for errors which rotates.
12. Global module is database independent.
13. All data transfer, inserting and selecting data, will be done by either json or a python dictionary (probably python). Also, printing and inserting data will be checked for on each field so that a print won't abort a server if there is no info, and inserts won't abort if one field is missing. There should never be NULLs in fields. use empty spaces. NULLs mean no data was inserted.
Part 1-2.
1. Make global available dashboard on AWS for systems.
Part 2
1. Automatic dev packages. Dependecy checks and not override later versions.
2. Automatic rpm packages. Dependency checks and not override later versions.
3. Everything in YAML will have variables that will not collide between versions, or minimally. It should work by default if no options are given and state what the default options are.
4. Encrypt data option which is needed at startup by a config file or a loaded program. Have program run only on localhost.
Part 3
1. voltdb
2. couchdb
3. cassandra
4. vertica
Part 4
1. Add in replication and cluster columns for all databases.
Part 5
1. Run DAD from other databases. (have to chose which ones).
Part 5
1. sqllite
2. bsd files with replication
-----------------------------------------------------
Misc stuff I neded to do:
- Install Percona MySQL 5.7. I used Linux Mint instead of Ubuntu because Ubuntu hasn't figured out in 10 years their stupid Unity desktop sucks rocks.
- wget https://repo.percona.com/apt/percona-release_0.1-3.trusty_all.deb
- sudo dpkg -i percona-release_0.1-3.trusty_all.deb
- sudo apt-get update
- sudo apt-get install percona-server-server-5.7
- Its uses a plugin system for passwords now, and you have to be as root to login when you don't have a password. You have to change the plugin used for the account and password. Overall its a good move.
Mongo and postgresql were already installed. For now, just doing no replication dashboard.
The memory overhead for these 3 systems is VERY low. So I just leave them on.
Driver installation:
The memory overhead for these 3 systems is VERY low. So I just leave them on.
Driver installation:
- postgresql
- http://initd.org/psycopg/docs/install.html
- sudo apt-get install python-psycopg2
- pip install psycopg2
- OR
- apt-get install python-psycopg2
- MySQL
- sudo apt-get install python-mysqldb
- I didn't use the pip version.
- Mongo
- python -m pip install pymongo
No comments:
Post a Comment