{"id":24511901,"url":"https://github.com/paulo-correia/linux_keepalived","last_synced_at":"2025-09-23T03:27:18.163Z","repository":{"id":134106099,"uuid":"200380620","full_name":"paulo-correia/Linux_Keepalived","owner":"paulo-correia","description":"Instalação e Configuração do Keepalived","archived":false,"fork":false,"pushed_at":"2019-08-03T13:48:57.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T10:09:16.242Z","etag":null,"topics":["keepalived","linux"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulo-correia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-03T13:47:51.000Z","updated_at":"2019-08-03T13:49:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e2efc47-5c22-4afd-a3c1-b9e517e6f28e","html_url":"https://github.com/paulo-correia/Linux_Keepalived","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paulo-correia/Linux_Keepalived","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulo-correia%2FLinux_Keepalived","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulo-correia%2FLinux_Keepalived/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulo-correia%2FLinux_Keepalived/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulo-correia%2FLinux_Keepalived/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulo-correia","download_url":"https://codeload.github.com/paulo-correia/Linux_Keepalived/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulo-correia%2FLinux_Keepalived/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276509082,"owners_count":25654849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["keepalived","linux"],"created_at":"2025-01-22T00:43:08.901Z","updated_at":"2025-09-23T03:27:18.143Z","avatar_url":"https://github.com/paulo-correia.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keepalive\n\n\nKeepalived é um software de roteamento escrito em C.\n\nO objetivo principal deste projeto é fornecer instalações simples e robustas para balanceamento de carga e alta disponibilidade para sistemas Linux e infra-estruturas baseadas em Linux. A estrutura do Loadbalancing depende do módulo de kernel do Servidor Virtual Linux (IPVS) conhecido e amplamente utilizado que oferece o balanceamento de carga Layer4. OKeepalived implementa um conjunto de damas para manter e gerir de forma dinâmica e adaptável pool de servidores balanceados de acordo com a sua saúde. Por outro lado, a alta disponibilidade é alcançada pelo protocolo VRRP.\n\nO VRRP é um tijolo fundamental para o failover do roteador. Além disso, o Keepalived implementa um conjunto de ganchos na máquina de estados finitos VRRP que fornece interações de protocolo de baixo nível e alta velocidade.\n\nOs frameworks Keepalived podem ser usados de forma independente ou todos juntos para fornecer infra-estruturas resilientes.\n\n## Instalação\n\nToda a instalação é feita em **root**\n\n### Debian\n\nInstale o keepalive com o comando:\n\n`apt-get install keepalived`\n\n### CentOS\n\ninstale o keepalive com o comando:\n\n `yum install keeepalived`\n\nConfiguração\n------------\n\nEdite o arquivo /etc/keepalived/keepalived.conf, usando o editor de sua preferência\n\n**Onde:** global\\_defs sáo as definições globais, vrrp\\_instance o nome da instância, virtual\\_ipaddress o IP virtual e state se MASTER ou BACKUP\n\nexemplo:\n\n ```\nglobal_defs {\nnotification_email {\nacassen@firewall.loc\nailover@firewall.loc\nsysadmin@firewall.loc\n}\nnotification_email_from Alexandre.Cassen@firewall.loc\nsmtp_server 192.168.200.1\nsmtp_connect_timeout 30\nrouter_id LVS_DEVEL\n}\n\nvrrp_instance TESTE {\nstate MASTER\ninterface eth0\nvirtual_router_id 51\npriority 100\nadvert_int 1\nauthentication {\nauth_type PASS\nauth_pass 1111\n}\nvirtual_ipaddress {\n192.168.1.254\n} \n}\n```\n\n**Obs**: para o servidor de backup, altere o priority para um valor menor que o MASTER, caso queira que rode um script insira a seguinte linha abaixo de priority\n\n`notify \"caminho para o script\"`\n\n**Obs1**: O $3 é o status do servidor (MASTER/BACKUP)\n\n Inicie o serviço com o comando:\n\n`service keepalived start`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulo-correia%2Flinux_keepalived","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulo-correia%2Flinux_keepalived","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulo-correia%2Flinux_keepalived/lists"}