LB/LVS之Piranha Configuration Tool 配​置 ​LVS (DR)

2024-03-14 08:18

本文主要是介绍LB/LVS之Piranha Configuration Tool 配​置 ​LVS (DR),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!



Piranha Configuration Tool 配​置 ​LVS (DR)
=================================================================================
Piranha Configuration Tool为​ LVS 创​​建​所​需​配​置​文​件​ —/etc/sysconfig/ha/lvs.cf


环境:
lvs-DR

1.hosts
 cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.2       active.uplook.com active
192.168.1.3       backup.uplook.com backup
192.168.1.10     node1.uplook.com node1
192.168.1.20     node2.uplook.com node2

2.cip 192.168.1.1

   dip 192.168.1.2/24
   vip 192.168.1.100/32(调度器上无需配置 软件自己分配)
  
   rip1 192.168.1.10/24  vip lo 192.168.1.100/32
   rip2 192.168.1.20/24  vip lo 192.168.1.100/32
  
3.调度器
[rhel6]
name=Red Hat Enterprise Linux
baseurl=file:///mnt/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[LoadBalancer]
name=Red Hat Enterprise Linux
baseurl=file:///mnt/LoadBalancer
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


[HighAvailability]
name=Red Hat Enterprise Linux
baseurl=file:///mnt/HighAvailability
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[ResilientStorage]
name=Red Hat Enterprise Linux
baseurl=file:///mnt/ResilientStorage
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[ScalableFileSystem]
name=Red Hat Enterprise Linux
baseurl=file:///mnt/ScalableFileSystem
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

yum install ipvsadm  piranha -y (主备都安装)

4.piranha-passwd
   redhat

5.[root@active ~]# /etc/init.d/piranha-gui start
[root@active ~]# chkconfig piranha-gui on
[root@active ~]# netstat -tnlp |grep :3636
tcp        0      0 :::3636                    :::*                        LISTEN      1887/httpd

6.登录192.168.1.2 ,用户名和密码如下:
  piranha 
  redhat
 
 1)监控页面  刚开始为down
 2)全局确认主调 
 


 3)冗余为备调
 
  以上为虚拟服务名称和vip捆绑接口
 
 
 
 
 
  检测脚本
 
  将配置文件lvs.cf同步到备调度器
[root@active ~]# rsync -va /etc/sysconfig/ha/lvs.cf backup:/etc/sysconfig/ha/

启动进程pulse
[root@active ~]# /etc/init.d/pulse start
[root@active ~]# chkconfig pulse on

[root@backup ~]# /etc/init.d/pulse start
[root@backup ~]# chkconfig pulse on

只有活跃的调度器上才有lvs列表 虚拟ip在主上 注意开启路由转发


这篇关于LB/LVS之Piranha Configuration Tool 配​置 ​LVS (DR)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/807771

相关文章

dr 航迹推算 知识介绍

DR(Dead Reckoning)航迹推算是一种在航海、航空、车辆导航等领域中广泛使用的技术,用于估算物体的位置。DR航迹推算主要通过已知的初始位置和运动参数(如速度、方向)来预测物体的当前位置。以下是 DR 航迹推算的详细知识介绍: 1. 基本概念 Dead Reckoning(DR): 定义:通过利用已知的当前位置、速度、方向和时间间隔,计算物体在下一时刻的位置。应用:用于导航和定位,

LVS学习入门

1.LVS DR模式负载均衡配置详解(配置篇一) http://www.07net01.com/storage_networking/LVS_DRmoshifuzaijunhengpeizhixiangjie_peizhipianyi__56840_1358680093.html 2.LVS负载均衡DR模式部署 http://www.cnblogs.com/xdpxyxy/

How can I load the openai api configuration through js in html?

题意:怎样在HTML中通过JavaScript加载OpenAI API配置 问题背景: I am trying to send a request through js in my html so that openai analyzes it and sends a response, but if in the js I put the following: 我正在尝试通过HTM

Clickhouse LB实践

目前Clickhouse在线上使用,不管是多分片还是多副本都是以集群方式部署,那么对外暴露多台Clickhouse服务,通常会通过LB方式使每台服务器能够均匀的接受到客户端的请求,另外一点就是在其中一台服务发生故障,仍然能通过故障转移方式正常对外提供服务。接下来会介绍关于Clickhouse通常使用的两种LB方案。 BalancedClickhouseDataSource BalancedCl

lvs DR模式调试

DS配置: # cat /etc/keepalived_docker/keepalived.conf ! Configuration File for keepalivedglobal_defs {router_id LVS_70 # 设置lvs的id,在一个网络内应该是唯一的}vrrp_instance VI_70 {state MASTER #

编译u-boot报错configuration written to .config

编译u-boot报错 1.报错显示 1.报错显示 ## configuration written to .config#scripts/kconfig/conf --silentoldconfig Kconfig*** Error during update of the configuration.scripts/kconfig/Makefile:

Tool-SQL:基于Agent智能体的Text2SQL解决方案,显著提升Text2SQL效果

Tool-SQL:基于Agent智能体的Text2SQL解决方案,显著提升Text2SQL效果 近期,Text-to-SQL 技术通过整合数据库系统的反馈,有效利用了大型语言模型(LLMs)。尽管这些技术能有效纠正 SQL 查询的执行错误,但在处理数据库不匹配问题上仍显不足,这类问题不会引发执行异常。为此,我们设计了一个辅助工具框架,包括检索器和检测器,专门用于诊断并修正 SQL 查询中的不匹

SpringBoot无法扫描到@Configuration注解的Filter过滤器

SpringBoot的优点,就是整合了所有框架,便于快速开发,其他的就不多说了。在SpirngBoot工程中,过滤器Filter是经常使用的,下面先介绍一下过滤器的配置方法。 第一种方法:@WebFilter注解方式 使用@WebFilter注解为声明当前类为filter,第一个参数为该filter起一个名字,第二个参数为说明要拦截的请求地址,当前类需要实现Filter接口,里面有三个方法,分

LVS 负载均衡集群指南

1. 引言 LVS (Linux Virtual Server) 虚拟服务器,是 Linux 内核中实现的负载均衡技术,以其高性能、高可靠性和高可用性而闻名。LVS 工作在 TCP/IP 协议栈的第四层 (传输层),通过将流量分配到多个后端服务器,提高系统性能、可用性和可靠性。LVS 被广泛应用于各种场景,例如网站、数据库、游戏服务器等,是构建高可用、高性能 Web 服务的利器。 2. LVS

c tool系列------c语言编程常用语句

针对main函数的argc,argv for (i = 1; i < argc ;) {if (0 == strcmp(argv[i], "-m") && (argc - i > 1)) {tty_modem = argv[i + 1];i += 2;} else if (0 == strcmp(argv[i], "-p") && (argc - i > 1)) {tty_pc = a