UIUC Distributed Computing Research Group - Fall 2017
- Install PostgreSQL:
- https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
- Brew Install PostgreSQL:
brew update && brew install postgresql
- Login psql:
psql
- Create DB
dc
:create database dc
- Quit psql:
\q
- Login DB
dc
:psql -d dc
- Create table
keys
:CREATE TABLE keys (key VARCHAR(255), value VARCHAR(255), modified_by VARCHAR(255), time_modified TIMESTAMP WITHOUT TIME ZONE, version VARCHAR(255), temp2 VARCHAR(255), temp3 VARCHAR(255), pkey_id BIGSERIAL PRIMARY KEY);
- Force unique keys:
ALTER TABLE keys ADD CONSTRAINT uq_key UNIQUE(key, version);
- Create role
db_user
:CREATE ROLE db_user WITH PASSWORD 'db_pw';
- Add role login priviliges:
ALTER ROLE db_user WITH LOGIN;
- Add rest of privileges to role:
alter user db_user with superuser;
- requests
- netifaces
- psycopg2
- pathlib
- Postgres database READ/WRITE/DELETE API
- Message passing with causal consistency
- Averaging Algorithm in Cassandra
- Execution of an algorithm from template/config utilizing neighboring nodes
- Execution of an algorithm from template on an ad-hoc network of raspberry pi nodes