Posts

Enable Disable sites in Apache web server

1. Create separate Virtual Host configuration files for each host if there are multiple sites within same apache server 3. Use below commands to enable and disable sites a2ensite // enable the site  a2dissite // disable the site  Where ' ' is the name of your site's Virtual Host configuration file, located in '/etc/apache2/sites-available/', minus the '.conf' extension. 4. Restart Apache after running those commands sudo systemctl restart apache2 or sudo service apache2 restart

JAVA based CMS

https://craftercms.org/

HADOOP CAPACITY PLANNING

Daily Data:- Historical Data which will be present always 400TB say it (A) XML data 100GB say it (B) Data from other sources 50GB say it (C) Replication Factor (Let us assume 3) 3 say it (D) Space for intermediate MR output (30% Non HDFS) = 30% of (B+C) say it (E) Space for other OS and other admin activities (30% Non HDFS) = 30% of (B+C) say it (F) Daily Data = (D * (B + C)) + E+ F = 3 * (150) + 30 % of 150 + 30% of 150 Daily Data = 450 + 45 + 45 = 540GB per day is absolute minimum. Add 5% buffer = 540 + 54 GB = 594 GB per Day Monthly Data = 30*594 + A = 18220 GB which nearly 18TB monthly approximately. Yearly Data = 18 TB * 12 = 216 TB Now we have got the approximate idea on yearly data, let us calculate other things:- Number of Node:- As a recommendation, a group of around 12 nodes, each with 2-4 disks (JBOD) of 1 to 4 TB capacity, will be a good starting point. 216 TB/12 Nodes = 18 TB per Node in a Cluster of 12 nodes So we keep JBOD of 4 disks of 5TB each then each node in...

GLASSFISH Application Server tuneup guide

Image
1.  Set JVM options -server instaed of -client -Xmx to 2048 -XX:MaxPermSize=2048m -XX:NewRatio=8 include -XX:+UseParallelGC 2. HTTP thread pool Max Thread Pool Size: 200 3. Reload: dissabled Auto Deploy: dissabled 4. HTTP listner Max Connections: 2500

blockchain alternative to swift

1. Ripple 

ubuntu and Docker

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04

Docker Commands

docker --version docker info docker image ls docker container ls --all ================================================================ Dockerfile # Use an official Python runtime as a parent image FROM python:2.7-slim # Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --trusted-host pypi.python.org -r requirements.txt # Make port 80 available to the world outside this container EXPOSE 80 # Define environment variable ENV NAME World # Run app.py when the container launches CMD ["python", "app.py"] #ENV http_proxy host:port #ENV https_proxy host:port # =============================================================== docker build -t friendlyhello . sudo service docker restart docker run -p 4000:80 friendlyhello docker run -d -p 4000:80 friendlyhello docker login  // https://hub....