unsubscribe

2024-01-10 Thread Xiaolong Jiang
-- 
Best regards,
Xiaolong Jiang

Senior Software Engineer at Netflix
Columbia University


Re: does c* 3.0 use one ring for all datacenters?

2018-04-26 Thread Xiaolong Jiang
gt;> {dc2, node1} 1-50
> >> >> >> {dc2, node1} 51-100
> >> >> >>
> >> >> >> I think this is not a trivial question, because each key would be
> >> >> >> hashed to determine the token it belongs to, and
> >> >> >> the token range distribution in turns determine which node the key
> >> >> >> belongs
> >> >> >> to.
> >> >> >>
> >> >> >> Any official answer?
> >> >> >>
> >> >> >>
> >> >> >> 2018-04-11 20:54 GMT+08:00 Jacques-Henri Berthemet
> >> >> >> <jacques-henri.berthe...@genesys.com>:
> >> >> >> > Maybe I misunderstood something but from what I understand, each
> >> >> >> > DC
> >> >> >> > have
> >> >> >> > the same ring (0-100 in you example) but it's split differently
> >> >> >> > between
> >> >> >> > nodes in each DC. I think it's the same principle if using vnode
> >> >> >> > or
> >> >> >> > not.
> >> >> >> >
> >> >> >> > I think the confusion comes from the fact that the ring range is
> >> >> >> > the
> >> >> >> > same (0-100) but each DC manages it differently because nodes
> are
> >> >> >> > different.
> >> >> >> >
> >> >> >> > --
> >> >> >> > Jacques-Henri Berthemet
> >> >> >> >
> >> >> >> > -Original Message-
> >> >> >> > From: Jinhua Luo [mailto:luajit...@gmail.com]
> >> >> >> > Sent: Wednesday, April 11, 2018 2:26 PM
> >> >> >> > To: user@cassandra.apache.org
> >> >> >> > Subject: Re: does c* 3.0 use one ring for all datacenters?
> >> >> >> >
> >> >> >> > Thanks for your reply. I also think separate rings are more
> >> >> >> > reasonable.
> >> >> >> >
> >> >> >> > So one ring for one dc is only for c* 1.x or 2.x without vnode?
> >> >> >> >
> >> >> >> > Check these references:
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > https://docs.datastax.com/en/archived/cassandra/1.1/docs/
> initialize/token_generation.html
> >> >> >> > http://www.luketillman.com/one-token-ring-to-rule-them-all/
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > https://community.apigee.com/articles/13096/cassandra-
> token-distribution.html
> >> >> >> >
> >> >> >> > Even the riak official said c* splits the ring across dc:
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > http://basho.com/posts/business/riak-vs-cassandra-an-
> updated-brief-comparison/
> >> >> >> >
> >> >> >> > Why they said each dc has its own ring?
> >> >> >> >
> >> >> >> >
> >> >> >> > 2018-04-11 19:55 GMT+08:00 Jacques-Henri Berthemet
> >> >> >> > <jacques-henri.berthe...@genesys.com>:
> >> >> >> >> Hi,
> >> >> >> >>
> >> >> >> >> Each DC has the whole ring, each DC contains a copy of the same
> >> >> >> >> data.
> >> >> >> >> When you add replication to a new DC, all data is copied to the
> >> >> >> >> new
> >> >> >> >> DC.
> >> >> >> >>
> >> >> >> >> Within a DC, each range of token is 'owned' by a (primary) node
> >> >> >> >> (and
> >> >> >> >> replicas if you have RF > 1). If you add/remove a node in a DC,
> >> >> >> >> tokens will
> >> >> >> >> be rearranged between all nodes within the DC only, the other
> DCs
> >> >> >> >> won't be
> >> >> >> >> affected.
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Jacques-Henri Berthemet
> >> >> >> >>
> >> >> >> >> -Original Message-
> >> >> >> >> From: Jinhua Luo [mailto:luajit...@gmail.com]
> >> >> >> >> Sent: Wednesday, April 11, 2018 12:35 PM
> >> >> >> >> To: user@cassandra.apache.org
> >> >> >> >> Subject: does c* 3.0 use one ring for all datacenters?
> >> >> >> >>
> >> >> >> >> Hi All,
> >> >> >> >>
> >> >> >> >> I know it seems a stupid question, but I am really confused
> about
> >> >> >> >> the
> >> >> >> >> documents on the internet related to this topic, especially it
> >> >> >> >> seems
> >> >> >> >> that it
> >> >> >> >> has different answers for c* with vnodes or not.
> >> >> >> >>
> >> >> >> >> Let's assume the token range is 1-100 for the whole cluster,
> how
> >> >> >> >> does
> >> >> >> >> it distributed into the datacenters? Think that the number of
> >> >> >> >> datacenters is
> >> >> >> >> dynamic in a cluster, if there is only one ring, then the token
> >> >> >> >> range would
> >> >> >> >> change on each node when I add a new datacenter into the
> cluster?
> >> >> >> >> Then it
> >> >> >> >> would involve data migration? It doesn't make sense.
> >> >> >> >>
> >> >> >> >> Looking forward to clarification for c* 3.0, thanks!
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> 
> -
> >> >> >> >> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> >> >> >> >> For additional commands, e-mail:
> user-h...@cassandra.apache.org
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> 
> -
> >> >> >> >> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> >> >> >> >> For additional commands, e-mail:
> user-h...@cassandra.apache.org
> >> >> >> >
> >> >> >> >
> >> >> >> > 
> -
> >> >> >> > To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> >> >> >> > For additional commands, e-mail: user-h...@cassandra.apache.org
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >> 
> -
> >> >> >> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> >> >> >> For additional commands, e-mail: user-h...@cassandra.apache.org
> >> >> >>
> >> >> >
> >> >>
> >> >> 
> -
> >> >> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> >> >> For additional commands, e-mail: user-h...@cassandra.apache.org
> >> >>
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> >> For additional commands, e-mail: user-h...@cassandra.apache.org
> >>
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> For additional commands, e-mail: user-h...@cassandra.apache.org
>
>


-- 
Best regards,
Xiaolong Jiang

Software Engineer at Apple
Columbia University


Re: Running nodetool gossipinfo

2017-08-29 Thread Xiaolong Jiang
7 is the version number locally in each instance representing the instance 
state used by gossiper. it will increase at least one every second

Sent from my iPhone

> On Aug 29, 2017, at 11:40 AM, Harper, Paul  wrote:
> 
> Hello,
> Running nodetool gossipinfo trying to find out in the result set for release 
> version , what does the first digit (7) represent? I assume the rest is the 
> actual version number.
> RELEASE_VERSION:7:2.1.11  
>  
> Thanks Paul
> This email (including any attachments) is proprietary to Aspect Software, 
> Inc. and may contain information that is confidential. If you have received 
> this message in error, please do not read, copy or forward this message. 
> Please notify the sender immediately, delete it from your system and destroy 
> any copies. You may not further disclose or distribute this email or its 
> attachments.


Re: CCM remote debugger issue

2016-12-18 Thread Xiaolong Jiang
Never mind, I used our internal ccm and then it works. I did brew install
ccm at the beginning, looks like there is some bug in that brew install
version.

On Sun, Dec 18, 2016 at 12:49 AM, Xiaolong Jiang <xiaolong...@gmail.com>
wrote:

> Hi, I tried to use ccm to create a local cluster,
>
> What I did is:
>
> ccm create test
> ccm populate -d -n 3
> ccm start.
>
> So by default, it should have 2100 to remote debugger at 127.0.0.1
>
> But I can not connect from IDEA, also looks like java process doesn't have
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=2100
>
> Anyone know why?
>



-- 
Best regards,
Xiaolong Jiang

Software Engineer at Apple
Columbia University


CCM remote debugger issue

2016-12-18 Thread Xiaolong Jiang
Hi, I tried to use ccm to create a local cluster,

What I did is:

ccm create test
ccm populate -d -n 3
ccm start.

So by default, it should have 2100 to remote debugger at 127.0.0.1

But I can not connect from IDEA, also looks like java process doesn't have
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=2100

Anyone know why?


Re: Open source equivalents of OpsCenter

2016-07-16 Thread Xiaolong Jiang
I am interested in building the dashboard.

On Sat, Jul 16, 2016 at 7:20 AM, Scott Hirleman <sc...@smartcat.io> wrote:

> We built a Cassandra metrics tracking and monitoring project
> https://github.com/smartcat-labs/cassandra-diagnostics that will pump
> said metrics into your monitoring system; we are working on adding new
> features (maybe repair and restart) but I've also always heard good things
> about Spotify's Reaper https://github.com/spotify/cassandra-reaper re
> repairs
>
> Scott
> SmartCat - Big Data Development Consulting That Doesn't Suck
>
> On Thu, Jul 14, 2016 at 3:48 AM, Michał Łowicki <mlowi...@gmail.com>
> wrote:
>
>> My experience while looking for a replacement on
>>
>> https://medium.com/@mlowicki/alternatives-to-datastax-opscenter-8ad893efe063
>> <https://medium.com/@mlowicki/alternatives-to-datastax-opscenter-8ad893efe063#.icv7eukko>
>>
>> <https://medium.com/@mlowicki/alternatives-to-datastax-opscenter-8ad893efe063#.icv7eukko>
>> On Thursday, 14 July 2016, Stefano Ortolani <ostef...@gmail.com> wrote:
>>
>>> Replaced OpsCenter with a mix of:
>>>
>>> * metrics-graphite-3.1.0.jar installed in the same classpath of C*
>>> * Custom script to push system metrics (cpu/mem/io)
>>> * Grafana to create the dashboard
>>> * Custom repairs script
>>>
>>> Still not optimal but getting there...
>>>
>>> Stefano
>>>
>>> On Thu, Jul 14, 2016 at 10:18 AM, Romain Hardouin <romainh...@yahoo.fr>
>>> wrote:
>>>
>>>> Hi Juho,
>>>>
>>>> Out of curiosity, which stack did you use to make your dashboard?
>>>>
>>>> Romain
>>>>
>>>> Le Jeudi 14 juillet 2016 10h43, Juho Mäkinen <juho.maki...@gmail.com>
>>>> a écrit :
>>>>
>>>>
>>>> I'm doing some work on replacing OpsCenter in out setup. I ended
>>>> creating a Docker container which contains the following features:
>>>>
>>>>  - Cassandra 2.2.7
>>>>  - MX4J (a JMX to REST bridge) as a java-agent
>>>>  - metrics-graphite-3.1.0.jar (export some but not all JMX to graphite)
>>>>  - a custom ruby which uses MX4J to export some JMX metrics to graphite
>>>> which we don't otherwise get.
>>>>
>>>> With this I will get all our cassandra instances and their JMX exposed
>>>> data to graphite, which allows us to use Grafana and Graphite to draw
>>>> pretty dashboards.
>>>>
>>>> In addition I started writing some code which currently provides the
>>>> following features:
>>>>  - A dashboard which provides a similar ring view what OpsCenter does,
>>>> with onMouseOver features to display more info on each node.
>>>>  - Simple HTTP GET/POST based api to do
>>>> - Setup a new non-vnode based cluster
>>>> - Get a JSON blob on cluster information, all its tokens, machines
>>>> and so on
>>>> - Api for new cluster instances so that they can get a token slot
>>>> from the ring when they boot.
>>>> - Option to kill a dead node and mark its slot for replace, so the
>>>> new booting node can use cassandra.replace_address option.
>>>>
>>>> The node is not yet packaged in any way for distribution and some parts
>>>> depend on our Chef installation, but if there's interest I can publish at
>>>> least some parts from it.
>>>>
>>>>  - Garo
>>>>
>>>> On Thu, Jul 14, 2016 at 10:54 AM, Romain Hardouin <romainh...@yahoo.fr>
>>>> wrote:
>>>>
>>>> Do you run C* on physical machine or in the cloud? If the topology
>>>> doesn't change too often you can have a look a Zabbix. The downside is that
>>>> you have to set up all the JMX metrics yourself... but that's also a good
>>>> point because you can have custom metrics. If you want nice
>>>> graphs/dashboards you can use Grafana to plot Zabbix data. (We're also
>>>> using SaaS but that's not open source).
>>>> For the rolling restart and other admin stuff we're using Rundeck. It's
>>>> a great tool when working in a team.
>>>>
>>>> (I think it's time to implement an open source alternative to
>>>> OpsCenter. If some guys are interested I'm in.)
>>>>
>>>> Best,
>>>>
>>>> Romain
>>>>
>>>>
>>>>
>>>>
>>>> Le Jeudi 14 juillet 2016 0h01, Ranjib Dey <dey.ran...@gmail.com> a
>>>> écrit :
>>>>
>>>>
>>>> we use datadog (metrics emitted as raw statsd) for the dashboard. All
>>>> repair & compaction is done via blender & serf[1].
>>>> [1]https://github.com/pagerduty/blender
>>>>
>>>>
>>>> On Wed, Jul 13, 2016 at 2:42 PM, Kevin O'Connor <ke...@reddit.com>
>>>> wrote:
>>>>
>>>> Now that OpsCenter doesn't work with open source installs, are there
>>>> any runs at an open source equivalent? I'd be more interested in looking at
>>>> metrics of a running cluster and doing other tasks like managing
>>>> repairs/rolling restarts more so than historical data.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>> --
>> BR,
>> Michał Łowicki
>>
>>
>


-- 
Best regards,
Xiaolong Jiang

Software Engineer at Apple
Columbia University