First creat 3 postgre databases: leader
, follower1
, follower2
Execute this statement for each database:
create table data_item
(
key varchar(100)
constraint data_item_pk
primary key,
value int not null
);
create unique index data_item_key_uindex
on data_item (key);
-
The project is built on
Maven
. Be sure to install the dependencies by clicking reload button in IDEA or run with:mvn install
before running the project. -
Modify the
username
andpassword
injdbc.conf
with your postgre settings. -
Create a
logs/
folder under the project root directory if not already there. After running the program, the logs will be generated here. -
Then run:
Launch.class