Author Archives: admin

Setting up Galera notification command on on Ubuntu

Galera Cluster: Galera Cluster is a synchronous multi-master database cluster, based on synchronous replication and Oracle’s MySQL/InnoDB. When Galera Cluster is in use, you can direct reads and writes to any node, and you can lose any individual node without … Continue reading

Posted in MariaDb, Uncategorized | Tagged | Leave a comment

Setting up Galera Arbitrator on Ubuntu

Galera Arbitrator: The recommended deployment of Galera Cluster is that you use a minimum of three instances. Three nodes, three datacenters and so on. In the event that the expense of adding resources, such as a third datacenter, is too … Continue reading

Posted in Architecture | Tagged , | Leave a comment

How to setup Apache Thrift on Ubuntu

How to setup Apache Thrift on Ubuntu: The Apache Thrift software framework, for scalable cross-language services development, combines a software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, PHP, Ruby, … Continue reading

Posted in Apache Thrift | Tagged | Leave a comment

Best Java tools for profiling

Best Java tools : Recently, I was building real-time, high performance back-end Java application which computes 16K ratios per company for around 70K companies (~1.1bn total) by pulling data from different data sources like, Mongodb, Cassandra, Mysql and Redis. It … Continue reading

Posted in Uncategorized | Leave a comment

How to setup cassandra on Ubuntu 14.04

What is Cassandra? The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission-critical data.Cassandra’s … Continue reading

Posted in Cassandra, Php, Uncategorized | Tagged | Leave a comment

How to setup a virtual machine

How to setup a virtual machine ? This post covers how to setup VirtualBox , VMware Workstation, VMware Player and Vagrant applications and how to setup guest operating system. Here, I’ve selected Windows 10 Home as Host OS and Ubunbu … Continue reading

Posted in Uncategorized, Virtualization | Tagged , , | Leave a comment

Cross-Origin Resource Sharing

Cross-Origin Resource Sharing: Cross-Origin Resource Sharing (CORS) is a specification that enables truly open access across domain-boundaries. If you serve public content, please consider using CORS to open it up for universal JavaScript/browser access. Usually web browsers forbids cross-domain requests, … Continue reading

Posted in Client-side Scripting. | Tagged , , | Leave a comment

Killing child process in shell script

Killing child process in shell script: Many time we need to kill child process which are hanged or block for some reason. eg. FTP connection issue. There are two approaches, 1) To create separate new parent for each child which … Continue reading

Posted in Shell Script | Tagged | Leave a comment

Setup solr using zookeeper ensemble on ubnutu

Setup Oracle Java: Follow quick step given below to setup java latest version on your system, java -version tar -zxvf jdk-8u45-linux-x64.tar.gz sudo mkdir -p /usr/lib/jvm/jdk1.8.0_45 sudo mv jdk1.8.0_45/* /usr/lib/jvm/jdk1.8.0_45/ sudo update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/jdk1.8.0_45/bin/java” 1 sudo update-alternatives –install “/usr/bin/javac” … Continue reading

Posted in Java, Solr, Uncategorized, Zookeeper | Tagged , , | Leave a comment

Setup ZooKeeper Ensemble on Ubuntu

Setup ZooKeeper Ensemble on Ubuntu: Download Apache ZooKeeper: The first step in setting up Apache ZooKeeper is, of course, to download the software. It’s available from #wget #tar -xvf zookeeper-3.4.6.tar.gz Configure the instance: Lets create one in conf/zoo1.cfg: … Continue reading

Posted in Zookeeper | Tagged | Leave a comment