碱性是什么意思| facebook什么意思| 598分能上什么大学| 戒断反应是什么意思| 肿瘤是什么| 帝舵手表什么档次| 猫癣传染人什么症状| 耳鸣是什么病引起的| 一班三检是指什么| religion什么意思| 魑魅魍魉什么意思| 什么是原发性高血压和继发性高血压| 正法是什么意思| 眼花缭乱的意思是什么| 屠苏指的是什么| 牛黄清心丸治什么病| 幽门螺杆菌有什么症状| 尿酸高吃什么水果好| 洗牙有什么危害吗| 脸部肌肉跳动是什么原因| 脂蛋白a高是什么原因引起的| wb是什么| 真菌阳性是什么意思| 肌张力高有什么症状| o型血孩子父母是什么血型| 2017属什么生肖| 白细胞减少吃什么药| 第二职业干点什么好呢| 二尖瓣关闭不全是什么意思| 花干是什么做的| 脊椎侧弯挂什么科| 以前没有狐臭为什么突然就有了| 填充鼻子最好的材料是什么| 什么是功德| 中性粒细胞数目偏高是什么意思| 什么的秃鹫| 什么洗面奶好| 12月出生是什么星座| 什么情况下用妇炎洁| 老年斑用什么药膏可以去掉| 白带黄是什么原因| 眼睛感染用什么眼药水| 丹毒病是什么原因引起的| 什么食物含蛋白质多| 梦见人头是什么征兆| 三头六臂是什么生肖| 手指缝里长水泡还痒是什么原因| 鼻涕倒流吃什么药效果好| 为什么不快乐| 龙虾和什么不能一起吃| 1996属鼠的是什么命| 男怕穿靴女怕戴帽什么意思| 小孩拉肚子吃什么药效果好| 亚人是什么意思| 看破红尘什么意思| 刺激性干咳是什么症状| 瑞舒伐他汀钙片治什么病| 韬光养晦什么意思| 梦到抓到鱼是什么意思| 心电轴重度左偏是什么意思| exr是什么牌子| 空亡什么意思| 不能吃辛辣是指什么| 痛风吃什么药| 退行性改变是什么意思| 震颤是什么病| 下面痛是什么原因| 高考什么时候恢复的| 疼和痛有什么区别| 一天两包烟会导致什么后果| 用加一笔是什么字| 贫血要吃什么| 血小板吃什么补得快点| crayons什么意思| 心脏不大是什么意思| 酸菜鱼可以放什么配菜| 什么的滋味| 什么是口腔溃疡| 什么叫封闭针| 坐班是什么意思| 跳蚤是什么样的图片| 辞职是什么意思| 全麦粉和小麦粉的区别是什么| 鼓的偏旁部首是什么| 肝郁血虚吃什么中成药| 2型糖尿病是什么意思| vc是什么| 什么运动可以瘦脸| 什么是拿铁| 强阳下降到什么程度开始排卵| 淋巴结肿大吃什么食物好| 类风湿阳性是什么意思| 道理是什么意思| 什么面什么方| 吃什么中药能降血压| 睡觉小腿抽筋是什么原因| mpe是什么意思| 家里进黄鼠狼是什么预兆| ig是什么| 淀粉酶偏高是什么原因| 什么是微量元素| 格列本脲和格列美脲有什么区别| 肾阴虚是什么原因造成的| 晚上睡觉容易醒是什么原因| 尿酸高去医院挂什么科| 一什么瓜地| 月亮星座是什么意思| 鬼压床是什么| m2是什么单位| 心慌吃什么药能缓解| 属鸡是什么命| 落红的血是什么样子的| 今年37岁属什么生肖| 吃什么长胎| 西安古时候叫什么| 2月10号是什么星座| 什么时候喝牛奶效果最佳| 积食吃什么食物帮助消化| 前列腺炎是什么症状| 大脚趾头麻木是什么原因| 望远镜什么牌子好| 什么啤酒好| 腹水是什么原因引起的| 山药煲汤搭配什么好| 30岁是什么之年| 52年属什么生肖| 中医的精髓是什么| 孤帆远影碧空尽的尽是什么意思| 症瘕病是什么病| 增致牛仔属于什么档次| 缓刑什么意思| 什么是数字化| 什么伐桂| 山东为什么简称鲁| 吃什么补血补气最快| 王毅什么级别| 口下面一个巴念什么| 孟姜女姓什么| 淋巴是什么| 保险属于什么行业| 缺营养吃什么补身体最好| 练字用什么笔好| 托人办事送什么礼物较好| 风湿属于什么科| 梦见自己结婚了是什么征兆| 闲是什么生肖| 芒果什么人不适合吃| 相中是什么意思| 干燥综合症吃什么药| 挪威用什么货币| 2月4日什么星座| 尿崩症是什么症状| 肾蕨是什么植物| 黑客帝国4什么时候上映| 1990属马的是什么命| dbm是什么意思| 什么人不适合去高原| 二月二十二日是什么星座| 活检检查是什么意思| 粘鞋子用什么胶水最好| 鹿象征什么寓意| bl和bg是什么意思| 什么叫矫正视力| 自强不息的息是什么意思| 前呼后拥是什么意思| 煎牛排用什么锅| 大便不正常是什么原因造成的| 肝火旺吃什么调理| 紫色属于五行属什么| 玫瑰和月季有什么区别| 不孕不育有什么症状| 电子证件照是什么| 绿色食品是什么意思| 逼长什么样| 咳嗽能吃什么水果最好| 肾结石发作有什么症状| 事业编制是什么意思| 埋没是什么意思| 身上经常痒是什么原因| 辟谷是什么意思| 霍家为什么娶郭晶晶| 叕怎么读音是什么意思| 五台山是求什么的| 意犹未尽什么意思| 肠炎吃什么消炎药| 友女是什么意思| 什么人靠别人的脑袋生活| ca125是什么检查项目| 12月12号什么星座| 糖稀是什么| 莱昂纳多为什么叫小李子| 武警和特警有什么区别| 小清新是什么意思啊| 蜂蜜跟什么不能一起吃| 借你吉言是什么意思| 偷窥是什么意思| 怀孕三个月吃什么对胎儿好| 血液凝固快是什么原因| 梦见自己手机丢了是什么意思| 人得猫癣用什么药| 高危型hpv66阳性是什么意思| 吃什么补津液| 羊经后半边读什么| 什么叫流年| 地震为什么会发生| 遇人不淑是什么意思| 咽喉干燥是什么原因| 梦见跟妈妈吵架是什么意思| 什么死法不痛苦| 中签是什么意思| 呼吸道感染一般用什么消炎药| 老汉推车是什么姿势| 两个a是什么牌子| 什么是埋线双眼皮| 瑞五行属什么| 夏天为什么会感冒| 吃什么可以提高记忆力| 相夫教子是什么意思| 风生水起是什么生肖| 脑梗三项是检查什么| 一天老是放屁是什么原因| b超是检查什么的| 腿麻挂什么科| 珍珠鸟吃什么食物| 什么节气| lmp医学上什么意思| 分子是什么| 强身之道的强是什么意思| pre是什么的缩写| 苹果醋有什么好处| 直接胆红素高是什么病| 月经为什么推迟不来| 家里放什么最招财| 吃什么能丰胸| 农村适合养殖什么| 下眼睑红肿是什么原因| 坯子是什么意思| 是什么字| 高压高是什么原因| 什么是梭织面料| 龙须菜是什么菜| 什么是cp| 表现手法有什么| 并是什么意思| 莫逆之交是什么意思| 降血压喝什么茶| 信五行属什么| 胸疼什么原因| cosplay是什么意思| 产褥热是什么病| 白细胞高是什么原因造成的| 藏风聚气是什么意思| 一吃东西就牙疼是什么原因引起的| 眼睛干涩用什么眼药水好| 眼带用什么方法消除| 吃什么疏通血管最快| 补气补血吃什么好| 白癜风不能吃什么食物| 安乐片是什么药| 春雨绵绵是什么生肖| 什么布料最好| 清关是什么| 脸色苍白没有血色是什么原因| 望闻问切的闻是什么意思| 百度
DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Attention Kubernetes users! DZone is researching how K8s usage is evolving in 2025 — tell us the good, the bad, + the frustrating.

Getting Started With DevSecOps: This Refcard provides actionable insights for embedding security into your DevOps culture and workflows.

Data Engineering: Not your average "AI is changing everything" report. Dive into tooling, strategy, + systems in scalable data ecosystems.

Java Caching: This Refcard explores core caching concepts and demonstrates how to implement them using Java’s JCache API.

Related

  • Comparing Managed Postgres Options on The Azure Marketplace
  • Manual Sharding in PostgreSQL: A Step-by-Step Implementation Guide
  • Database Query Service With OpenAI and PostgreSQL in .NET
  • PostgreSQL 12 End of Life: What to Know and How to Prepare

Trending

  • Optimizing Data Pipelines in Cloud-Based Systems: Tools and Techniques
  • Modern Data Projects Need Agile Thinking — Not Just Tech
  • 1-Line IO in Java
  • AI-Powered AWS CloudTrail Analysis: Using Strands Agent and Amazon Bedrock for Intelligent AWS Access Pattern Detection
  1. DZone
  2. Data Engineering
  3. Databases
  4. Asynchronous Master-Slave Replication of PostgreSQL Databases in One Click

律师说法:快递“被风吹走了”背后的法律问题新闻中心中国常州网 常州第一门户网 常州龙网 常州日报 常州晚报

Replicating your data has obvious benefits, but can be a bit tedious to setup. Take a look at how to easily set it up using PostgreSQL and Jelastic's cloud.

By 
Tetiana Markova user avatar
Tetiana Markova
·
May. 26, 17 · Tutorial
Likes (5)
Comment
Save
Tweet
Share
9.8K Views
百度 法律顾问:展曙光律师()展曙光,北京市鑫诺律师事务所律师、注册企业法律顾问。

Join the DZone community and get the full member experience.

Join For Free

as a critical component for most applications, data has to be available for end users in a dynamically changing environment. storing data in one location is a subject to risk in case of a system failure. therefore, you need to come up with a strategy on how to ensure high availability — and one of the solutions is to maintain the data on multiple synchronized servers.

having your data replicated to another database can be very helpful for a variety of reasons, such as improving performance, running backup services, analyzing information, and by all means alleviating system failures.

among numerous database clustering solutions , jelastic provides the postgresql package with master-slave asynchronous replication that can be installed automatically and run with no additional configurations required.

now let’s take a quick look at the package specs and follow the step-by-step installation guide.

the presented postgresql replication solution for one-click installation is based on jelastic certified?postgresql 9.5.5 template. by default, it deploys two database containers (one per role: master and slave) with asynchronous replication between them.

the primary (master) server runs active database which handles read-write operations, whilst the standby (slave) server operates with this db copy and handles read-only operations. therefore, if the primary database fails, the system will run data from the fail-over slave container.

asynchronous master-slave replication

within the package, each database container has a default vertical scaling from?1 reserved?to?24 dynamic?cloudlets?(up to 3 gib of ram and 9.6 ghz of cpu) that are allocated dynamically based on the incoming load. subsequently, you can change the resource allocation limit by following the above-linked guide.

now, let’s proceed further to get the postgresql package up and running in the cloud.

deploying postgresql replication package

the package installation is a fairly simple process that you can perform in just a few clicks.

  1. log into the jelastic platform with your credentials and click marketplace in the top pane.

    marketplace

    within the apps section, use the search box to find the?postgresql database replication package and click install .

    tip: the postgresql replication package sources are available within jelastic jps collection alongside with other useful solutions, any of which can be integrated through importing a manifest.jps file from the appropriate repository.
  2. in the installation window, type environment name and display name ( alias ), select a region (if several regions are available) and click install .

    installation

    when the package installation is completed, you’ll see a confirmation message with the master node url and simultaneously receive an email notification with your administration data.

    success

    now, let’s put the master database into action to check that data is successfully replicated to the slave.

    to ensure that data is replicated properly, we’ll create a new db instance in the master container and check its presence inside the slave.

create new pg database

  1. click open in browser next to the postgresql?master node to launch the?phppgadmin web interface.

    postgresql admin

  2. under servers , click postgresql and log in with credentials you’ve received via email after the package installation.

    login postgresql

  3. click create database , fill in the name box (e.g. jelastic ), and click create .

    create database

    now, when the database is created in the master node, let’s check the replicated data within the slave container.

check the replication

to ensure that data replication from the master to the slave container works as intended, perform the following steps.

  1. click open in browser next to the postgresql slave node to launch the?phppgadmin?web interface.

    open postgresql admin panel

  2. access the admin interface with the same?username?and?password?that you’ve received via email after the package installation.

    postgresql database

    once logged in, you can see and manage the database (jelastic, in our example) that was earlier created in the master container.

that’s it! the postgresql environment with master-slave asynchronous replication is up and ready for data processing.

as a next step, you can already connect these postgresql replicated databases to your project. the process depends on application specifics, so follow the instructions below for:

  • java application
  • php application
Database PostgreSQL Replication (computing)

Published at DZone with permission of Tetiana Markova, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Comparing Managed Postgres Options on The Azure Marketplace
  • Manual Sharding in PostgreSQL: A Step-by-Step Implementation Guide
  • Database Query Service With OpenAI and PostgreSQL in .NET
  • PostgreSQL 12 End of Life: What to Know and How to Prepare

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

碘酊和碘伏有什么区别 湿气重是什么原因引起的 钾偏低是什么原因 昏睡是什么症状 李叔同为什么出家
吃什么药可以延长时间 冲击波治疗有什么效果 甲沟炎用什么药 血氧低是什么原因 神经递质是什么意思
郭富城什么星座 梦到狗是什么意思 涤纶是什么面料优缺点 遗传物质是什么 春梦是什么意思
b细胞淋巴肿瘤是一种什么病 深圳属于什么气候 吃饭出虚汗是什么原因 知了猴什么时候出来 锁骨上的痣代表什么
低烧是什么症状96micro.com mrmrs是什么牌子hcv7jop5ns5r.cn 什么是大健康hcv7jop5ns3r.cn 生活方式是什么意思hcv9jop5ns5r.cn 办理护照需要什么手续hcv9jop6ns8r.cn
心率低于60说明什么xinjiangjialails.com 小学什么时候报名hcv9jop2ns1r.cn 淋巴细胞是什么意思hcv9jop8ns3r.cn 寒疾现代叫什么病hcv9jop6ns3r.cn 鸦片鱼是什么鱼hcv8jop4ns4r.cn
手术后吃什么补品好hcv8jop6ns9r.cn 吃牛油果有什么好处hcv9jop0ns6r.cn 气场是什么意思hcv8jop2ns6r.cn 腰间盘突出有什么好的治疗方法hcv8jop8ns4r.cn 1级高血压是什么意思hcv9jop0ns4r.cn
蚂蚁属于什么动物cl108k.com dic是什么hcv7jop5ns2r.cn 血红蛋白浓度偏高是什么原因hcv8jop1ns0r.cn 开眼镜店需要什么条件hcv9jop8ns3r.cn 课代表是什么意思hcv7jop5ns2r.cn
百度