Comments (11)
yes, this will be general process to replace the bad volume for the service.
Wondering how the volume gets deleted. FireCamp will not delete the volume, even when you delete the service. Did you accidentally delete the volume?
from firecamp.
yes, this will be general process to replace the bad volume for the service.
I'm sorry - did not get this. What is the general process?
Yeah, that was my lame hands :)
from firecamp.
I'm sorry - did not get this. What is the general process?
Replacing the bad volume is the common feature. It is not for cassandra only. It will work for all services.
from firecamp.
Could you please give me some guidance on how to do that?
from firecamp.
Please, shed some light on where the stack keeps volumes ID? It's really hard to find..
from firecamp.
This is not a simple work.
Replacing the volume is easy. The bad volume id could be passed in as the parameter. The manage server could list all ServiceMember of the service, find out the bad volume belongs to which member, create a new volume and replace the bad volume in the service member. The volume plugin will automatically pick up the new volume.
While, things are more complex for each service, as different services have different internal mechanism. We need to follow and revise Cassandra's procedure. If the data volume fails, the cassandra node needs to be replaced, refer to https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsReplaceNode.html. If the journal volume fails, we might be able to simply replace the volume and do node repair, refer to https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsRecoverUsingJBOD.html. If the node repair fails, we have to switch back to replace the node.
from firecamp.
Let's try the simple solution first. We could add code to simply replace the cassandra volume. After the container starts, use cql to login to that container and run nodetool repair -full -local -seq
. If repair succeeds, check the data consistency from the application. If everything is good, then we fix the issue for now. If not, you will have to recreate the Cassandra service. We will support the Cassandra node replacement later.
from firecamp.
@JuniusLuo , that would be great! Looking forward for this to be implemented!
And thank you for the detailed answers!
from firecamp.
We added one tool to replace the volume for service. When the total solution is ready, we could remove this tool. You could get the tool from https://s3.amazonaws.com/cloudstax/firecamp/releases/latest/packages/firecamp-volume-replace.tgz
Recovery step:
- create a new volume in the same availability zone.
- run the tool:
firecamp-volume-replace -cluster=t1 -service=mycas -bad-volumeid=xxx -new-volumeid=xxx
- login to the Cassandra node. For example, if the first member is bad,
cqlsh mycas-0.t1-firecamp.com -u newsuperuser -p super
- run
nodetool repair -full -local -seq
If nodetool print out something like below, the repair succeeds. Go ahead and check the application.
[2017-12-13 23:02:33,585] Repair completed successfully
[2017-12-13 23:02:33,589] Repair command #1 finished in 0 seconds
- check the application data consistency.
from firecamp.
@JuniusLuo, worked like a charm! Thank you so much!
from firecamp.
Cool. Glad it works.
from firecamp.
Related Issues (20)
- Kafka JMX metrics are not available HOT 1
- update service doesn't change task definition HOT 2
- Zookeeper JMX port is not reachable
- Automatically add CloudWatch Logs filters and alarms
- Kafka configuration changes HOT 6
- MySQL/MardiaDB support? HOT 2
- zookeeper needs to be restarted after upgrading instance type HOT 18
- Unable to start kafka service HOT 10
- zookeeper error HOT 2
- The following resource(s) failed to create: [LambdaCustomResource] HOT 4
- Replace Kafka with the newest HOT 10
- how to update ecs agent? HOT 1
- Referencing Subnets (need output in master stack) HOT 1
- Unable to connect kafka outside containers programatically HOT 2
- Enable SSL for kafka HOT 4
- New ecs agent HOT 1
- Restore kafka data from another volume/snapshot
- Multi-Region Deployment HOT 1
- Questions about enable_materialized_views and enable_transient_replication HOT 1
- Show Error Details
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firecamp.