Time 5:30pm
Download: 45.5 Mbps
Upload: 15 Mbps
MyRepublic
Download: 40 Mbps
Upload: 8 Mbps
Exetel is faster, cheaper and has better phone plans and provides static ip for free. Exetel wins hands down.
Tips and experience about developing websites with various technologies
<global>
<email_notification>yes</email_notification>
<email_to>philip.wu@anu.edu.au</email_to>
<smtp_server>localhost</smtp_server>
<email_from>patient-lookup@130.56.244.180</email_from>
</global>
<global>
<email_notification>yes</email_notification>
<email_to>philip.wu@anu.edu.au</email_to>
<smtp_server>127.0.0.1</smtp_server>
<email_from>patient-lookup@130.56.244.180</email_from>
</global>
[root@webserver data]# systemctl status postgresql.service ● postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2018-07-22 23:18:52 UTC; 8s ago Process: 2903 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=exited, status=1/FAILURE) Process: 2897 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS) Jul 22 23:18:51 webserver.novalocal systemd[1]: Starting PostgreSQL database server...
Jul 22 23:18:51 webserver.novalocal pg_ctl[2903]: postgres cannot access the server configuration file "/var/lib/pgsql/data/postgresql.conf": Permission denied
Jul 22 23:18:52 webserver.novalocal pg_ctl[2903]: pg_ctl: could not start server Jul 22 23:18:52 webserver.novalocal systemd[1]: postgresql.service: control process exited, code=exited status=1 Jul 22 23:18:52 webserver.novalocal systemd[1]: Failed to start PostgreSQL database server. Jul 22 23:18:52 webserver.novalocal systemd[1]: Unit postgresql.service entered failed state. Jul 22 23:18:52 webserver.novalocal systemd[1]: postgresql.service failed.
[root@webserver var]# ls -Z /var/lib/pgsql/data/ drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 base drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 global drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_clog -rw-------. postgres postgres system_u:object_r:unlabeled_t:s0 pg_hba.conf -rw-------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_ident.conf drwx------. postgres postgres unconfined_u:object_r:postgresql_log_t:s0 pg_log drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_multixact drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_notify drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_serial drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_snapshots drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_stat_tmp drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_subtrans drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_tblspc drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_twophase -rw-------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 PG_VERSION drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_xlog
-rw-------. postgres postgres system_u:object_r:default_t:s0 postgresql.conf
-rw-------. postgres postgres system_u:object_r:postgresql_db_t:s0 postmaster.opts
chcon -R system_u:object_r:postgresql_db_t:s0 /var/lib/pgsql/data/**
[root@webserver var]# ls -Z /var/lib/pgsql/data/
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 base
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 global
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_clog
-rw-------. postgres postgres system_u:object_r:unlabeled_t:s0 pg_hba.conf
-rw-------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_ident.conf
drwx------. postgres postgres unconfined_u:object_r:postgresql_log_t:s0 pg_log
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_multixact
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_notify
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_serial
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_snapshots
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_stat_tmp
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_subtrans
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_tblspc
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_twophase
-rw-------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 PG_VERSION
drwx------. postgres postgres unconfined_u:object_r:postgresql_db_t:s0 pg_xlog
-rw-------. postgres postgres system_u:object_r:postgresql_db_t:s0 postgresql.conf
-rw-------. postgres postgres system_u:object_r:postgresql_db_t:s0 postmaster.opts
service postgresql start
discovery.zen.ping.unicast.hosts: ["10.0.0.1", "10.0.0.2", "10.0.0.3", "10.0.0.4"]
discovery.zen.minimum_master_nodes: 3
[root@mongo-elastic-node-1 centos]# curl -XGET 10.0.0.1:9200/_cluster/health?pretty { "cluster_name" : "cpi", "status" : "green", "timed_out" : false, "number_of_nodes" : 4, "number_of_data_nodes" : 4, "active_primary_shards" : 40, "active_shards" : 71,
"relocating_shards" : 2,
"initializing_shards" : 0, "unassigned_shards" : 0, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0, "task_max_waiting_in_queue_millis" : 0, "active_shards_percent_as_number" : 100.0 }
[root@mongo-elastic-node-1 centos]# curl -XGET http://10.0.0.9:9200/_cat/shards | grep RELO
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7881 100 7881 0 0 318k 0 --:--:-- --:--:-- --:--:-- 334k
cpi12 2 p RELOCATING 6953804 5.8gb 10.0.0.2 cpi2 -> 10.0.0.4 fBmdkD2gT6-jTJ6k_bEF0w cpi4
cpi12 0 r RELOCATING 6958611 5.5gb 10.0.0.3 cpi3 -> 10.0.0.4 fBmdkD2gT6-jTJ6k_bEF0w cpi4
[root@elastic-node-4 elasticsearch]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vdb 69G 52M 66G 1% /mnt
curl 'http://localhost:9200/_cluster/settings?pretty'
and look for cluster.routing
settings [root@mongo-elastic-node-1 bin]# curl -XGET http://10.0.0.1:9200/_cat/shards | grep UNASS
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5250 100 5250 0 0 143k 0 --:--:-- --:--:-- --:--:-- 146k
.marvel-es-2017.05.13 0 p UNASSIGNED
.marvel-es-2017.05.13 0 r UNASSIGNED
.marvel-es-2017.05.14 0 p UNASSIGNED
.marvel-es-2017.05.14 0 r UNASSIGNED
cpi14 1 p UNASSIGNED
cpi13 1 p UNASSIGNED
cpi13 4 p UNASSIGNED
[root@elastic-node-3 elasticsearch]# cd /usr/share/elasticsearch/bin
[root@elastic-node-3 bin]# ./plugin list
Installed plugins in /usr/share/elasticsearch/plugins:
- license
- marvel-agent
[root@elastic-node-3 bin]# ./plugin remove license
-> Removing license...
Removed license
[root@elastic-node-3 bin]# ./plugin remove marvel-agent
-> Removing marvel-agent...
Removed marvel-agent
[root@mongo-elastic-node-1 elasticsearch]# curl -XPOST -d '{ "commands" : [{ "allocate" : { "index": "cpi14", "shard":1, "node":"cpi4", "allow_primary":true } }]}' localhost:9200/_cluster/reroute?pretty
[root@elastic-node-4 elasticsearch]# curl -XGET localhost:9200/_cluster/health?pretty { "cluster_name" : "cpi", "status" : "green", "timed_out" : false, "number_of_nodes" : 4, "number_of_data_nodes" : 4, "active_primary_shards" : 40, "active_shards" : 71,
"relocating_shards" : 2,
"initializing_shards" : 0, "
unassigned_shards" : 0,
"delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0, "task_max_waiting_in_queue_millis" : 0, "active_shards_percent_as_number" : 100.0 }
db.serverStatus().storageEngine
{ "name" : "wiredTiger", "supportsCommittedReads" : true }