Code Monkey home page Code Monkey logo

Comments (8)

flike avatar flike commented on August 17, 2024

yes, you can use kingshard as a mysql server. It speak Mysql protocol.

from kingshard.

pm-kartik-sura avatar pm-kartik-sura commented on August 17, 2024

Thanks a lot flike!
What about the distribution policies?
Can we do Min Replication load balancing? Also is it a statement level load balancing or connection level load balancing?

from kingshard.

flike avatar flike commented on August 17, 2024

You can use multi nodes(one master and multi slaves) to hold the data.
kingshard is statement level load balancing.
For example:
you can set the 'slave' item in config file like this: slave : 192.168.0.11@2,192.168.0.12@3.
kingshard will send two read sqls to 192.168.0.11, and send three read sqls to 192.168.0.12

from kingshard.

pm-kartik-sura avatar pm-kartik-sura commented on August 17, 2024

Can we add a functionality where the slave is selected which has the min replication lag? I can contribute too.

from kingshard.

flike avatar flike commented on August 17, 2024

yeah, welcome to contribute kingshard. But I think this function will make the load balancing disabled.

from kingshard.

pm-kartik-sura avatar pm-kartik-sura commented on August 17, 2024

Yes you are correct. But its a real life usecase in production. We could have a policy that says:
Select the nodes with min replication lag. If there are multiple nodes, then load balance evenly/load factor.

from kingshard.

flike avatar flike commented on August 17, 2024

en, I understand what you say. maybe this is another load banlancing policy of kingshard. You can contribute it in you branch, if many other users consider this function is very useful, I will merge it in the master branch. :)

from kingshard.

pm-kartik-sura avatar pm-kartik-sura commented on August 17, 2024

:)

from kingshard.

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.