Wednesday, 7 June 2017

Setting up consul and unbound

Create this file at /etc/unbound/local.d/consul.conf
do-not-query-localhost: no
stub-zone:
  name: "consul"
  stub-addr: 127.0.0.1@8600
server:
  domain-insecure: "consul"
Update /etc/resolv.conf
nameserver 127.0.0.1

Thursday, 29 September 2016

Thursday, 3 September 2015

Spring upgrade from 3.1.4.RELEASE to 4.1.4.RELEASE


  • Upgrade to Spring Security 3.2.5.RELEASE
  • Replace legacy XMLs
From:

<list>
  <ref local="objectName"/>
</list>

To:

<list>
  <ref bean="objectName"/>
</list>
  • Upgrade spring security version schema from 3.1 to 3.2

Tuesday, 26 May 2015

Checking tomcat version

$ java -cp CATALINA_BASE/lib/catalina.jar org.apache.catalina.util.ServerInfo

Wednesday, 4 February 2015

Sending a test message to a Kafka cluster

$ /usr/local/Cellar/kafka/0.8.1.1/bin/kafka-producer-perf-test.sh --broker-list localhost:9092 --topic  --messages 1 --producer-num-retries 1

Wednesday, 27 August 2014

Setting up a MongoDB replica set

  • All nodes have to be started with this flag --replSet "clusterName"
  • In one of the nodes, execute the following commands
    $ mongo
    > rs.initiate()
    > rs.add("hostname1")
    > rs.add("hostname2")
    
  • This command will allow you to execute queries in a slave node
    > rs.slaveOk()
    
  • This command will show you the status of the cluster
    > rs.status()