high-availability

Which part of the CAP theorem does Cassandra sacrifice and why?

左心房为你撑大大i 提交于 2019-12-03 07:08:36
问题 There is a great talk here about simulating partition issues in Cassandra with Kingsby's Jesper library. My question is - with Cassandra are you mainly concerned with the Partitioning part of the CAP theorem, or is Consistency a factor you need to manage as well? 回答1: Cassandra is typically classified as an AP system, meaning that availability and partition tolerance are generally considered to be more important than consistency. However, real world systems rarely fall neatly into these

How to setup Jenkins with HA?

我是研究僧i 提交于 2019-12-03 04:56:40
Currently we are using a Jenkins as our CI system and there is one master server and slaves which are provisioned by Saltstack on Openstack. If our Jenkins master server goes down, we need to create a new master and we need to pull the files from the old master & put it in new ones but it's gonna take at least 30mins. Is there any way to setup Jenkins with High Availability? I already check with Gearman Plugin , however if the Gearman server goes down for some reason, we need to setup a HA for Gearman also. Is there any other ways to setup a High Availability for Jenkins? Jenkins doesn't have

name node Vs secondary name node

给你一囗甜甜゛ 提交于 2019-12-03 04:18:00
问题 Hadoop is Consistent and partition tolerant, i.e. It falls under the CP category of the CAP theoram. Hadoop is not available because all the nodes are dependent on the name node. If the name node falls the cluster goes down. But considering the fact that the HDFS cluster has a secondary name node why cant we call hadoop as available. If the name node is down the secondary name node can be used for the writes. What is the major difference between name node and secondary name node that makes

Failover & Disaster Recovery [closed]

对着背影说爱祢 提交于 2019-12-03 03:17:31
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . What's the difference between failover and disaster recovery? Vinko Vrsalovic Failover: When one machine fails, another machine (usually in the same location) takes over and resumes service Disaster recovery: When Godzilla destroys your data center, you do have alternative locations to keep providing your service and protocols/means for the other location to know how to keep delivering

Zero downtime deployment for Java apps

半世苍凉 提交于 2019-12-03 00:44:11
I am trying to build the very lightweight solution for zero downtime deployment for Java apps. For the sake of simplicity lets think that we have two servers. My solution is to use: On the "front" -- some load balancer (software) - I am thinking about HAProxy here. On the "back" - two servers, both running Tomcat with deployed application. When we are about to deploy new release We disable one of the servers with HAProxy, so only one server (let's call it server A, which is running old release) will be available. Deploy new release on other server (let's call it server B), run production unit

Which part of the CAP theorem does Cassandra sacrifice and why?

家住魔仙堡 提交于 2019-12-02 20:45:58
There is a great talk here about simulating partition issues in Cassandra with Kingsby's Jesper library . My question is - with Cassandra are you mainly concerned with the Partitioning part of the CAP theorem, or is Consistency a factor you need to manage as well? Cassandra is typically classified as an AP system, meaning that availability and partition tolerance are generally considered to be more important than consistency. However, real world systems rarely fall neatly into these categories, so it's more helpful to view CAP as a continuum. Most systems will make some effort to be consistent

Normalize or Denormalize in high traffic websites

时间秒杀一切 提交于 2019-12-02 19:43:36
What are the best practices for database design and normalization for high traffic websites like stackoverflow? Should one use a normalized database for record keeping or a normalized technique or a combination of both? Is it sensible to design a normalized database as the main database for record keeping to reduce redundancy and at the same time maintain another denormalized form of the database for fast searching? or Should the main database be denormalized but with normalized views at the application level for fast database operations? or some other approach? The performance hit of joining

Redis deployment configuration - master slave replication

只愿长相守 提交于 2019-12-02 17:43:46
问题 Currently I have two servers which I have deployed node.js/Express.JS based web services API. I am using Redis for caching the JSON strings. What will be the best option deploying this setup in to production? I see here it advices to go with a dedicated server redis. OK. I take it and use a dedicated server for running redis master. Can I use existing app servers as slave nodes? Note : these app servers are running an Node/Express application. What other other options do I have? 回答1: You can.

High Availability in Cassandra

末鹿安然 提交于 2019-12-02 14:53:25
问题 1) I have 5 node cluster (172.30.56.60, 172.30.56.61, 172.30.56.62, 172.30.56.63, 172.30.56.129) 2) I created a keyspace with Replication Factor as 3 write consistency as 3 , I have inserted a row in a table with the partition as '1' like below, INSERT INTO user (user_id, user_name, user_phone) VALUES(1,'ram', 9003934069); 3) I verified the location of the data using the nodetool getendpoints utility and observed that the data is copied in three nodes 60, 129 and 62. ./nodetool getendpoints

Design Patterns (or techniques) for Scalability

一个人想着一个人 提交于 2019-12-02 13:54:36
What design patterns or techniques have you used that are specifically geared toward scalability ? Patterns such as the Flyweight pattern seem to me to be a specialized version of the Factory Pattern , to promote high scalability or when working within memory or storage constraints. What others have you used? ( Denormalization of Databases , etc.) Do you find that the rules change when high availability or scalability is your primary goal? Possible situations are: Mobile devices with more limited memory, processing power, and connectivity than a Desktop or Laptop High # of users on limited