Open nabajyoti123 opened 4 years ago
Hi @ipapapa @timiblossom please help me with this .
I am not following what you mean you are not achieving HA although you are achieving replication. By default, once you have many replicas if a replica is lost then you have another replica to failover. To bring the data back, you need a feature to do a warmup. This is part of Dynomite-manager.
Hi @ipapapa Thanks for the response . we are using normal linux machine .I have installed redis,dynomite and dynomite-manger .as this link https://github.com/Netflix/dynomite-manager says we have to implement some interfaces to run dynomite-manager .
can you provide me some example of implemented interfaces for normal linux machine ?
2.can we use couchbase/mysql for token management ? if yes how ?
what is the purpose of token management ?
im not able to create dynomite-manager.war file to deploy in tomcat server, installed in linux machine . how do i do that?
Searched so many places only found steps for working with AWS . please let me know the steps (like installation ,if some property/file change required for installing in normal linux environment with some example ,what all steps to be followed for warming-up a node using dynomite-manager )
Basically im trying to achieve warming-up a node with normal linux machine,redis,dynomite,dynomite-manager .if some other db required ,we can use couchbase/mysql .
please help me with this .struggling a lot . Thanks in advance!!
.war
in here.Hi @ipapapa @diegopacheco , im trying to implement IMembership interface . Followed AWSMembership class and trying to implement methods . So these are methods i need to implement and im neither using Amazon nor AWS . What exact implementation should i provide for these methods ? what is expected from this methods without Amazon and AWS ?for normal linux machine currently its giving me this exception .
A............................?
============================================================
1) Error injecting constructor, java.lang.IllegalArgumentException: hostname cannot be null
at com.netflix.nfsidecar.identity.InstanceIdentity.
2) Error injecting constructor, java.lang.IllegalArgumentException: hostname cannot be null
at com.netflix.nfsidecar.identity.InstanceIdentity.
bind(IMembership.class).to(AWSMembership.class); (what implementation should i provide in its implementation class without AWS Amazon ?for normal linux machine)
IMembership.java
/**
Get a list of Instances in the current RAC
*/
public List
/**
@return Get a list of Instances if there is a cross-account RAC
*/
public List
/**
@return Size of current RAC */ public int getRacMembershipSize();
/**
@return Size of the crossaccount RAC */ public int getCrossAccountRacMembershipSize();
/**
@param to
*/
public void addACL(Collection
/**
@param to
*/
public void removeACL(Collection
/**
List all ACLs
*/
public List
/**
bind(ICredential.class).to(IAMCredential.class);
(can i provide null for bellow method ) ? what implementation without AWS Amazon ?for normal linux machine
ICredential.java public AWSCredentialsProvider getAwsCredentialProvider();
bind(ICredential.class).annotatedWith(Names.named("awsroleassumption")).to(AwsRoleAssumptionCredential.class);
(what implementation should i provide in its implementation class which will accept above binding ? without AWS Amazon ?for normal linux machine)
bind(InstanceEnvIdentity.class).to(AwsInstanceEnvIdentity.class); for this i have changed like bellow as suggested by @diegopacheco Will it work for local without Amazon without AWS for linux machine ?
AwsInstanceEnvIdentity.class
package com.netflix.nfsidecar.aws;
import com.netflix.nfsidecar.identity.InstanceEnvIdentity; import com.netflix.nfsidecar.instance.InstanceDataRetriever; import com.netflix.nfsidecar.instance.VpcInstanceDataRetriever;
/**
*/ public class AwsInstanceEnvIdentity implements InstanceEnvIdentity {
public AwsInstanceEnvIdentity() {}
@Override
public Boolean isClassic() {
return false;
}
@Override
public Boolean isDefaultVpc() {
return true;
}
@Override
public Boolean isNonDefaultVpc() {
return false;
}
}
Hi All, i have created a cluster using Redis-dynomite with below configurations.
ServerA Configuration dyn.yml
dyn_o_mite: datacenter: dc-b rack: rack1 dyn_listen: x.x.x.152:7379 dyn_seeds:
dyn_o_mite: datacenter: dc-b rack: rack1 dyn_listen: x.x.x.152:7380 dyn_seeds:
ServerB Configuration dyn.yml
dyn_o_mite: datacenter: dc-a rack: rack1 dyn_listen: y.y.y.69:7379 dyn_seeds:
dyn_o_mite: datacenter: dc-a rack: rack1 dyn_listen: y.y.y.69:7380 dyn_seeds:
Here im able to acchieve replication while all nodes are up . But not able to achieve HA .
Steps im following to achieve HA
making x.x.x.152:22122 x.x.x.152:22123 down (making serverA redis-server nodes down). feeding to y.y.y.69:8380 and y.y.y.69:8379 as key value pair(using serverB redis-server nodes to feed data to redis cluster ) making x.x.x.152:22122 x.x.x.152:22123 Up.(making serverA redis-server nudes up) checking feeded data in x.x.x.152:8380 and x.x.x.152:8379(trying to retrieve serverB feeded data in serverA redis nodes.)
But not able to retrieve same .please help me with this .thanks!!