Giter VIP home page Giter VIP logo

Comments (5)

timiblossom avatar timiblossom commented on May 11, 2024

@xcl3721 Here are the answers.

  1. A token along with DC and Rack is like an identifier for a node. Based on this, nodes can know what subset of data they can own. Of course, nodes in different rack/dc can own the same subset of data.
  2. Look at this script and it gives you an idea how you should generate tokens:
    https://github.com/Netflix/dynomite/blob/master/scripts/generate_yamls.py
  3. Answer is similar to #2. Take a look at the output files from that script to understand the topology
  4. I don't see this is the case. Please explain in more details. Probably you had a wrong configuration somewhere.
  5. You can read this issue here as it relates to your question:
    #51
    Furthermore, we are currently working on data repair as additional process to fix bad data.

from dynomite.

137-rick avatar 137-rick commented on May 11, 2024

thank u sir
can we support php extension like dyo?

my config is here

dyn_o_mite:
datacenter: dc
rack: rack1
dyn_listen: 172.1.1.61:8101
dyn_seed_provider: simple_provider
dyn_seeds:

  • 172.1.1.62:8101:rack1:dc:1721162
  • 172.1.1.63:8101:rack2:dc:1721161
  • 172.1.1.64:8101:rack2:dc:1721162
    listen: 0.0.0.0:6399
    timeout: 3000
    server_retry_timeout: 3000
    servers:
  • 127.0.0.1:6379:1
    tokens: '1721161'
    secure_server_option: datacenter
    server_connections: 4
    auto_eject_hosts: true
    server_failure_limit: 3
    pem_key_file: /etc/dynomite/dynomite.pem
    redis: true

dyn_o_mite:
datacenter: dc
rack: rack1
dyn_listen: 172.1.1.62:8101
dyn_seed_provider: simple_provider
dyn_seeds:

  • 172.1.1.61:8101:rack1:dc:1721161
  • 172.1.1.63:8101:rack1:dc:1721161
  • 172.1.1.64:8101:rack1:dc:1721162
    listen: 0.0.0.0:6399
    timeout: 3000
    server_retry_timeout: 3000
    servers:
  • 127.0.0.1:6379:1
    tokens: '1721162'
    secure_server_option: datacenter
    server_connections: 4
    auto_eject_hosts: true
    server_failure_limit: 3
    pem_key_file: /etc/dynomite/dynomite.pem
    redis: true

dyn_o_mite:
datacenter: dc
rack: rack2
dyn_listen: 172.1.1.63:8101
dyn_seed_provider: simple_provider
dyn_seeds:

  • 172.1.1.61:8101:rack1:dc:1721161
  • 172.1.1.62:8101:rack1:dc:1721162
  • 172.1.1.64:8101:rack2:dc:1721162
    listen: 0.0.0.0:6399
    timeout: 3000
    server_retry_timeout: 3000
    servers:
  • 127.0.0.1:6379:1
    tokens: '1721161'
    secure_server_option: datacenter
    server_connections: 4
    auto_eject_hosts: true
    server_failure_limit: 3
    pem_key_file: /etc/dynomite/dynomite.pem
    redis: true

dyn_o_mite:
datacenter: dc
rack: rack2
dyn_listen: 172.1.1.64:8101
dyn_seed_provider: simple_provider
dyn_seeds:

  • 172.1.1.61:8101:rack1:dc:1721161
  • 172.1.1.62:8101:rack1:dc:1721162
  • 172.1.1.63:8101:rack2:dc:1721161
    listen: 0.0.0.0:6399
    timeout: 3000
    server_retry_timeout: 3000
    servers:
  • 127.0.0.1:6379:1
    tokens: '1721162'
    secure_server_option: datacenter
    server_connections: 4
    auto_eject_hosts: true
    server_failure_limit: 3
    pem_key_file: /etc/dynomite/dynomite.pem
    redis: true

and then add new one config--------------
dyn_o_mite:
datacenter: dc
rack: rack
dyn_listen: 172.1.1.66:8101
dyn_seed_provider: simple_provider
dyn_seeds:

  • 172.1.1.61:8101:rack1:dc:1721161
  • 172.1.1.62:8101:rack1:dc:1721162
  • 172.1.1.64:8101:rack2:dc:1721162
  • 172.1.1.63:8101:rack2:dc:1721161
    listen: 0.0.0.0:6399
    timeout: 3000
    server_retry_timeout: 3000
    servers:
  • 127.0.0.1:6379:1
    tokens: '3333333'
    secure_server_option: datacenter
    server_connections: 1
    auto_eject_hosts: true
    server_failure_limit: 3
    pem_key_file: /etc/dynomite/dynomite.pem
    redis: true

from dynomite.

timiblossom avatar timiblossom commented on May 11, 2024

Sorry but we don't have the resource for PHP client like Dyno at this time.
However, you can just use any Redis PHP client and take care of the failover in your application layer yourself?

from dynomite.

137-rick avatar 137-rick commented on May 11, 2024

ok
:) ~ thank u~

from dynomite.

patademahesh avatar patademahesh commented on May 11, 2024

How can we achieve failover in application layer using PHP redis client ?

Any hints.. !!

Thanks
Mahesh

from dynomite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.