Home Database Mysql Tutorial Oracle RAC 客户端连接负载均衡(Load Balance)

Oracle RAC 客户端连接负载均衡(Load Balance)

Jun 07, 2016 pm 05:21 PM
oracle rac load balancing

实现负载均衡(Load Balance)是Oracle RAC最重要的特性之一,主要是把负载平均分配到集群中的各个节点,以提高系统的整体吞吐能力

实现负载均衡(Load Balance)是Oracle RAC最重要的特性之一,主要是把负载平均分配到集群中的各个节点,以提高系统的整体吞吐能力。通常情况下有两种方式来实现负载均衡,一个是基于客户端连接的负载均衡,一个是基于服务器端监听器(Listener)收集到的信息来将新的连接请求分配到连接数较少实例上的实现方式。本文主要讨论的是基于客户端连接的负载均衡,并给出演示。

与负载均衡配置之前的监听配置请参考

ORACLE RAC 监听配置 (listener.ora tnsnames.ora)

ORACLE RAC 下非缺省端口监听配置(listener.ora tnsnames.ora)

一、客户端的负载均衡

客户端的负载均衡主要是通过为tnsnames.ora增加load_balance=yes条目来实现,下面看看oracle(Note:226880.1)的解释

The client load balancing feature enables clients to randomize connection requests among the listeners. Oracle Net progresses through the list of

protocol addresses in a random sequence, balancing the load on the various listeners. Without client load balancing, Oracle Net progresses through the

list of protocol addresses sequentially until one succeeds.  This normally is referred to connect-time load balance.

从上面的描述中可以得知,如果未开启load_balance=yes时,Oracle Net会根据地址列表按顺序来选择一个进行连接,直到连接成功为止。

如果第一个host主机连接失败,在有多个地址的情形下,接下来选择第二个地址连接,依此类推,直到连接成功为止。

当开启了load_balance=yes时,则Oracle Net会从多个地址中随机地选择一个地址进行连接,直到连接成功为止。

注意,,此连接方式仅根据地址列表随机选择,并不考虑到各个实例上当前真正连接数量的多少,也即是没有考虑各个节点真实的连接负载情况。

二、服务器与客户端的配置情况

1、服务器端监听器配置 

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to optimize TCP/IP performance and network performance of Linux systems How to optimize TCP/IP performance and network performance of Linux systems Nov 07, 2023 am 11:15 AM

In the field of modern computers, the TCP/IP protocol is the basis for network communication. As an open source operating system, Linux has become the preferred operating system used by many businesses and organizations. However, as network applications and services become more and more critical components of business, administrators often need to optimize network performance to ensure fast and reliable data transfer. This article will introduce how to improve the network transmission speed of Linux systems by optimizing TCP/IP performance and network performance of Linux systems. This article will discuss a

Failover and recovery mechanism in Nginx load balancing solution Failover and recovery mechanism in Nginx load balancing solution Oct 15, 2023 am 11:14 AM

Introduction to the failover and recovery mechanism in the Nginx load balancing solution: For high-load websites, the use of load balancing is one of the important means to ensure high availability of the website and improve performance. As a powerful open source web server, Nginx's load balancing function has been widely used. In load balancing, how to implement failover and recovery mechanisms is an important issue that needs to be considered. This article will introduce the failover and recovery mechanism in Nginx load balancing and give specific code examples. 1. Failover mechanism

High availability and disaster recovery solution for Nginx load balancing solution High availability and disaster recovery solution for Nginx load balancing solution Oct 15, 2023 am 11:43 AM

High Availability and Disaster Recovery Solution of Nginx Load Balancing Solution With the rapid development of the Internet, the high availability of Web services has become a key requirement. In order to achieve high availability and disaster tolerance, Nginx has always been one of the most commonly used and reliable load balancers. In this article, we will introduce Nginx’s high availability and disaster recovery solutions and provide specific code examples. High availability of Nginx is mainly achieved through the use of multiple servers. As a load balancer, Nginx can distribute traffic to multiple backend servers to

Building a high-availability load balancing system: Best practices for Nginx Proxy Manager Building a high-availability load balancing system: Best practices for Nginx Proxy Manager Sep 27, 2023 am 08:22 AM

Building a high-availability load balancing system: Best practices for NginxProxyManager Introduction: In the development of Internet applications, the load balancing system is one of the essential components. It can achieve high concurrency and high availability services by distributing requests to multiple servers. NginxProxyManager is a commonly used load balancing software. This article will introduce how to use NginxProxyManager to build a high-availability load balancing system and provide

Dynamic failure detection and load weight adjustment strategy in Nginx load balancing solution Dynamic failure detection and load weight adjustment strategy in Nginx load balancing solution Oct 15, 2023 pm 03:54 PM

Dynamic failure detection and load weight adjustment strategies in the Nginx load balancing solution require specific code examples. Introduction In high-concurrency network environments, load balancing is a common solution that can effectively improve the availability and performance of the website. Nginx is an open source, high-performance web server that provides powerful load balancing capabilities. This article will introduce two important features in Nginx load balancing, dynamic failure detection and load weight adjustment strategy, and provide specific code examples. 1. Dynamic failure detection Dynamic failure detection

Application of load balancing strategy in Java framework performance optimization Application of load balancing strategy in Java framework performance optimization May 31, 2024 pm 08:02 PM

Load balancing strategies are crucial in Java frameworks for efficient distribution of requests. Depending on the concurrency situation, different strategies have different performance: Polling method: stable performance under low concurrency. Weighted polling method: The performance is similar to the polling method under low concurrency. Least number of connections method: best performance under high concurrency. Random method: simple but poor performance. Consistent Hashing: Balancing server load. Combined with practical cases, this article explains how to choose appropriate strategies based on performance data to significantly improve application performance.

Using Nginx Proxy Manager to implement reverse proxy load balancing strategy Using Nginx Proxy Manager to implement reverse proxy load balancing strategy Sep 26, 2023 pm 12:05 PM

Use NginxProxyManager to implement reverse proxy load balancing strategy NginxProxyManager is an Nginx-based proxy management tool that can help us easily implement reverse proxy and load balancing. By configuring NginxProxyManager, we can distribute requests to multiple backend servers to achieve load balancing and improve system availability and performance. 1. Install and configure NginxProxyManager

Backend server health check and dynamic adjustment in Nginx load balancing solution Backend server health check and dynamic adjustment in Nginx load balancing solution Oct 15, 2023 am 11:37 AM

Backend server health check and dynamic adjustment in the Nginx load balancing solution require specific code examples Summary: In the Nginx load balancing solution, the health status of the backend server is an important consideration. This article will introduce how to use Nginx's health check module and dynamic adjustment module to implement health check and dynamic adjustment of the back-end server, and give specific code examples. Introduction In modern application architecture, load balancing is one of the commonly used solutions to improve application performance and reliability. Ngi

See all articles