Chuyển đến nội dung chính

Bài đăng

Thái Lan - Điểm đến đầu tiên trong chuyến du lịch.

Nhắc tới Thái Lan nhiều người chưa từng có cơ hội tới đây ban đầu sẽ mường tượng trong đầu là một đất nước nằm trong khu vực Đông Nam Á cách Việt Nam không xa. Khi chưa tới đây mình chỉ biết đến Thái Lan qua những trận cầu nảy lửa giữa Việt Nam - Thái Lan hihi. Bởi vì mình cũng là một fan của bóng đá. :) Nhưng chắc do bà xã kéo đi chơi nên mình cũng thử một lần đi cho biết thế nào. Thế là mình bắt đầu lên kế hoạch cho chuyến đi chơi đầu tiên của mình ra nước ngoài. Mình dự định sẽ đi BangkokThái Lan trong vòng 6 ngày và có 4 người khác cùng đồng hành. Việc đầu tiên là mình tìm kiếm vé máy bay cho chuyến đi. Ban đầu mình có suy nghĩ có thể sẽ đặt theo tour du lịch thì mình sẽ không cần phải lo tới việc đặt vé máy bay, đặt phòng khách sạn. Tại thời điểm đó mình cũng có tìm kiếm các tour du lịch Thái Lan trọn gói. Vì là lần đầu nên mình tìm hiểu khá kỹ. Các tour du lịch bắt đầu từ Hà Nội - Thái Lan đi 5 ngày 4 đêm có giá vé dao động khoảng 9 đến 10 triệu đồng cho một người. Tu...

How to pass "This app hasn't been verified by Google yet" in App Script

Why use App Script? App Script let's you do more with Google, all on a Javascript platform in the cloud. You can use Google Spreadsheet, Google Calendar, Gmail, Google Form ... Problems When you completed your application and need testing how it works. You click on run button After then you get. Oh my god :( Don't worry about it. You can see button Advanced . Please click on it Click Go to Testing (unsafe) --> Allow Done. Happy coding :)

Load balancing howto: LVS + ldirector + heartbeat 2

Problem A high capacity load balancing solution is needed to address current and future needs to provide highly available and scalable services. Solution Linux Virtual Server (LVS) provides the means of building scalable and high performing virtual cluster server. Heartbeat 2 can be used to feather increase the availability of the virtual services. Limitations Iptables redirection to avoid ARP problems with direct routing load balancing is not covered. Heartbeat 2 SSH STONITH is used without quorumd or pingd. Very limited "tiereaker" capability. Concepts LVS hides real servers behind a virtual IP and load balances the incoming request across all cluster nodes based on a scheduling algorithm. It implements transport-layer load balancing inside the Linux kernel, also called Layer-4 switching. There are 3 types of LVS load balancing: Network Address Translation (NAT) Incoming requests arrive at the virtual IP and are forwarded to the real servers by changing the...

Using Vim Editor

The Vim is a tool editor text. It is used as the most popular and powerful tool. In the context of Vim, it can operate in two modes: command mode and insert mode. The editor always starts in command mode. In the command mode, we can move through the text, search, replace, mark blocks and switch the editor to insert mode. The first, we will install Vim. On ubuntu sudo apt-get install vim On CentOS sudo yum install vim We use command vi file_name to open file in the Vim editor. We will start with some basic commands. Basic commands h to move the cursor to the left l to move it to the right k to move it to the up j to move it to the down G to move it to the begin of last line gg to move it to the begin of first line :n to move it to line n of the file Basic operations n dd will delete n lines starting from the current cursor position. u will undo. ctr + r will redo. n dw will delete n words starting from the current cursor position to right...

Introduction Heartbeat

In this tutorial, I show for you some concepts about heartbeat.  Heartbeat is a project from Linux-HA (Linux high available). The goal is t provide a High availability clustering solution for Linux. Heartbeat is the daemon which provides the cluster infrastructure. In order to be useful, heartbeat needs to be combined with a Cluster Resource Manager (CRM), which is the one in charge of starting and stopping the services (Web, DNS, Database, File servers and/or IP Addresss) to make them Highly Available. Through the years, Heartbeat has evolved and has different types of configurations: Heartbeat V1: This type of configuration uses the Version Cluster Resource Manager. This is also known as legacy Heartbeat. It allows us to configure two cluster node in active / passive or active / active configurations. Heartbeat V2: This type of configuration is related  to the use of the version 2 Cluster Resource Manager. It allows us to configure two or more nodes in active / pass...

Linux Virtual Server

Abstract: The Linux Virtual Sever Project (LVS) allows load balancing of networked services such as web or mail servers using Layer 4 Switching. It is very fast and allows such services to be scaled to service 10s or 100s of thousands of simultaneous connections. The purpose of this tutorial is demonstrate how to use various features of LVS to load balance Internet services, and how this can made highly avaiable using tools such as such as heartbeat and keepalived. It will also cover many advanced  topics which have been the subject of recent development including maintaining active connections in a highly available environment and using active feedback to better distribute load. Introduction The Linux Virtual Server (LVS) implements layers 4 Switching in the Linux Kernel. This allows TCP and UDP sessions to be to load balanced between multiple real server. Thus it provides a way to scale Internet services beyond a single host. HTTP and HTTPS traffic for the world wide w...