Server Virtualization Comparision

Please visit the following links for more details:


Introduction into Docker: Difference to other virtualization technology

References about Docker: container technology

Business Insights: (Container Technology)

Docker Container:

Docker Configuration:

Docker Swarm:

Docker Issues and Pitfalls:

  • [see only one docker nodes in docker swarm infos]:
    The Docker nodes were all copies of the same virtual machine that had already started Docker before cloning, which ended up creating the same Docker ID in /etc/docker/key.json. I stopped Docker, removed the key file, and then restarted so each daemon would create a new key file.

CAP Theorem

In a distributed system you can satisfy at most 2 out of the 3 guarantees:

  1. Consistency: all nodes see same data at any time, or reads return lastest written value by any client.
    • It means that even though there are multiple clients that are reading and writing the data. All the clients see the same data at any given point of time. The reads by any client return the latest written value by a particular client.
  2. Availability: the system allows operations all the time, and operations return quickly.
  3. Partition-tolerance: the system continues to work in spite of network partitions.
    • When the system is partitioned, some parts of the system fail, the system should still continue to work. It means that the remaining functioning partitions of system still need to guarantee both consistency and availability.
    • Partitions can happen across data-centers when the internet gets disconnected through “Internet router outages”, “Under-sea cables cut” or “DNS not working”
    • Partitions can also occur within a data-center, e.g. a rack switch outage.


  1. CAP Theorem is proposed by Eric Brewer (Berkeley) in 1998:
  2. CAP Theorem is subsequently proved by Gilbert and Lynch (Nus and MIT) in 2002: ACM SIGACT News, Volume 33 Issue 2 (2002), pg. 51-59
  3. Wikipedia article:

Memory Usage of Java Objects

Heap Space usage of Java Objects:

Red-Black Trees

A reference to Left-leaning Red-Black Trees by Professor Robert Sedgewick:

More Information about Red-Black Trees implementation are also available at: