Re: how does compaction_throughput_kb_per_sec affect disk io?

2011-09-26 Thread mcasandra
I would think that compaction_throughput_kb_per_sec does have indirect impact
on disk IO. High number means or setting it to 0 means there is no
throttling on how much IO is being performed. Wouldn't it impact normal
reads from disk during the time when disk IO or util is high which
compaction is taking place?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/how-does-compaction-throughput-kb-per-sec-affect-disk-io-tp6831711p6832308.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: LevelDB type compaction

2011-09-16 Thread mcasandra


 
 and updates could be scattered all over
 before compaction?
 
 No, updates to a given row will be still be in a single sstable.
 
 

Can you please explain little more? You mean that if Level 1 file contains
range from 1-100 all the updates would still go in that file?

The link on leveldb says:



 The compaction picks a file from level L and all overlapping files from
 the next level L+1
 

If all updates go in the same sstables then how do overlapping files get
generated. By overlapping I am assuming it means new or updated value for a
given key exists in multiple files?

Thanks for the explanation

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/LevelDB-type-compaction-tp6798334p6802772.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: [BETA RELEASE] Apache Cassandra 1.0.0-beta1 released

2011-09-15 Thread mcasandra
This is a great new! Is it possible to do a write-up of main changes like
Leveldb and explain it a little bit. I get lost reading JIRA and sometimes
is difficult to follow the thread. It looks like there are some major
changes in this release.


--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/BETA-RELEASE-Apache-Cassandra-1-0-0-beta1-released-tp6797930p6798330.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: 4/20 nodes get disproportionate amount of mutations

2011-08-25 Thread mcasandra
Thanks for the update

Jeremy Hanna wrote:
 
 It appears though that when choosing the non-local replicas, it looks for
 the next token in the ring of the same rack and the next token of a
 different rack (depending on which it is looking for).  

Can you please explain this little more?


--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/4-20-nodes-get-disproportionate-amount-of-mutations-tp6714958p6724943.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Is Cassandra suitable for this use case?

2011-08-25 Thread mcasandra

Ruby Stevenson wrote:
 
 hi Sasha -
 
 Yes indeed. this solution was in the second part of my original
 question - it just seems out of norm on what people usually use
 Cassandra for, I guess I am looking for some reassurance before I roll
 up the sleeve of trying it.
 
 Thanks
 
 Ruby
 
 
 

It really depends on the requirements. If you have high volume, bandwidth
requirements with SLAs around response times then this is not the right
solution. Once you start testing soon you will find performance issues with
reads specifically. You can run stress test real quick to get an idea.

We found Cassandra not suitable for large, unstructured files.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Is-Cassandra-suitable-for-this-use-case-tp6724102p6725250.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: no stack trace :(

2011-08-05 Thread mcasandra
Are you seeing lot of these errors? Can you try XX:-OmitStackTraceInFastThrow

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/no-stack-trace-tp6654590p6657485.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: move one node for load re-balancing then it status stuck at Leaving

2011-08-04 Thread mcasandra
Check things like netstats, disk space etc to see why it's in Leaving state.
Anything in the logs that shows Leaving?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/move-one-node-for-load-re-balancing-then-it-status-stuck-at-Leaving-tp6655168p6655326.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Question about eventually consistent in Cassandra

2011-08-03 Thread mcasandra
What happens when DC is in different time zone so 9:00 pacific vs 11:00
Central

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Question-about-eventually-consistent-in-Cassandra-tp6646430p6649490.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: how to solve one node is in heavy load in unbalanced cluster

2011-07-31 Thread mcasandra
First run nodetool move and then you can run nodetool repair. Before you run
nodetool move you will need to determine tokens that each node will be
responsible for. Then use that token to perform move.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/how-to-solve-one-node-is-in-heavy-load-in-unbalanced-cluster-tp6630827p6638649.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: how to solve one node is in heavy load in unbalanced cluster

2011-07-31 Thread mcasandra

springrider wrote:
 
 is that okay to do nodetool move before a completely repair?
 
 using this equation?
 def tokens(nodes):
 
- for x in xrange(nodes):
   - print 2 ** 127 / nodes * x
 

Yes use that logic to get the tokens. I think it's safe to run move first
and reair later. You are moving some nodes data as is so it's no worse than
what you have right now.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/how-to-solve-one-node-is-in-heavy-load-in-unbalanced-cluster-tp6630827p6639317.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Can we store java objects and images/files in cassandra

2011-07-27 Thread mcasandra

CASSANDRA learner wrote:
 
 Hi,
 
 Can we store images , java objects, files in cassandra, if so , how
 Please let me know this as i need it urgently...
 

Look at  http://goo.gl/S2E3C http://goo.gl/S2E3C 

It really depends on your workload. With heavy workloads cassandra is not
the right solution to store images and other large objects. You will get hit
by compactions taking longer, slow reads, disk space wastage since currently
you need 50% of unused disk space. But if you have low throughput
requirements then you can probably go with Cassandra. It's best to run some
stress test with bigger column size and projected traffic for next several
years.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Can-we-store-java-objects-and-images-files-in-cassandra-tp6625130p6626986.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


How are column sort handled?

2011-07-18 Thread mcasandra
Trying to understand the overhead when multiple columns are spread accross
ssTables. For eg: Key K1 column b and c are in ssTable 1 and column a in
ssTable 2. As I understand columns in a given row are sorted at the time
it's stored. So does it mean that when a goes to ssTable 2 it also fetches
column b and c from ssTable 1 and writes a,b,c in ssTable 2? Or in this
case the sorting occurs on the columnSlice read call?

When ssTables are merged I am sure they are stored in sorted order but not
sure in the case above.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-are-column-sort-handled-tp6595415p6595415.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: How are column sort handled?

2011-07-18 Thread mcasandra
Thanks! Then does it mean that before compaction if read call comes for that
key sort is done at the read time since column b, c and a are in different
ssTables.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-are-column-sort-handled-tp6595415p6595918.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: commitlog replay missing data

2011-07-13 Thread mcasandra

Peter Schuller wrote:
 
 Recently upgraded to 0.8.1 and noticed what seems to be missing data
 after a
 commitlog replay on a single-node cluster. I start the node, insert a
 bunch
 of stuff (~600MB), stop it, and restart it. There are log messages
 
 If you stop by a kill, make sure you use batched commitlog synch mode
 instead of periodic if you want guarantees on individual writes.
 

What are the other ways to stop Cassandra?

What's the difference between batch vs periodic?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/commitlog-replay-missing-data-tp6573659p6580886.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Cassandra Capistrano recipes

2011-07-06 Thread mcasandra
try nohup

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Cassandra-Capistrano-recipes-tp6556591p6556636.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: RAID or no RAID

2011-06-28 Thread mcasandra

aaron morton wrote:
 
 Not sure what the intended purpose is, but we've mostly used it as an
 emergency disk-capacity-increase option
 
 Thats what I've used it for.  
 
 Cheers
 

How does compaction work in terms of utilizing multiple data dirs? Also, is
there a reference on wiki somewhere that says not to use multiple data dirs?


--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/RAID-or-no-RAID-tp6522904p6527219.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: RAID or no RAID

2011-06-27 Thread mcasandra
I thought there is an option to give multiple data dirs in cassandra.yaml.
What's the purpose of that?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/RAID-or-no-RAID-tp6522904p6523523.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


How to create data model from RDBMS ERD

2011-06-23 Thread mcasandra
How should one go about creating a data model from RDBMS ER into Big Table
Data model? For eg: RDBMS has many indexes required for queries and I think
this is the most important aspect when desiging the data model in Big Table. 

I was initially planning to denormalize into one CF and use secondary
indexes. However I also read that creating secondary indexes have
performance impact. So other option is to create inverted index. But it also
seems to be bad to have too many CFs. We have requirements to support high
volume min of 500 writes + 500 reads per sec.

What would you advise?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-to-create-data-model-from-RDBMS-ERD-tp6509041p6509041.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Storing files in blob into Cassandra

2011-06-22 Thread mcasandra
Speaking purely from my personal experience, I haven't found cassandra
optimal for storing big fat rows. Even if it is only 100s of KB I didn't
find cassandra suitable for it. In my case I am looking at 400 writes + 400
reads per sec and grow 20%-30% every ear with file sizes from 70k-300k. What
I found is that when you have simultaneous reads and writes going in
parallel that is inserting and reading big rows it kills the performance of
cassandra. Even if you add more nodes it doesn't scale at the level you
would expect it to. You would start to see dropped messaged all around.
With 8 node cluster, good disks (SAS) and following recommendations of
tunning cassandra performance I was only able to get 140 inserts and 80
reads per sec.

You can simply test it by using stress tool and you will see the difference
as you start to increase the column size. and you would see that performance
of small columns that starts with 1000s / sec gets dropped quickly as you
start to increase column size.

But if your traffic is low volume it might work ok. Also, if over period you
will have tons of Blobs you might find yourself in difficult situation. I
suggest doing some tests.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Storing-files-in-blob-into-Cassandra-tp6503165p6505188.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: 99.999% uptime - Operations Best Practices?

2011-06-22 Thread mcasandra
In my opinion 5 9s don't matter. It's the number of impacted customers. You
might be down during peak for 5 mts causing 1000s of customer turn aways
while you might be down during night causing only few customer turn aways.

There is no magic bullet. It's all about learning and improving. You will
not get HA right away, but over period of time as you learn and improve you
will do better.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/99-999-uptime-Operations-Best-Practices-tp6506227p6506511.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: 99.999% uptime - Operations Best Practices?

2011-06-22 Thread mcasandra
Start with reading comments on cassandra.yaml and 
http://wiki.apache.org/cassandra/Operations
http://wiki.apache.org/cassandra/Operations 

As far as I know there is no comprehensive list for performance tuning. More
specifically common setting applicable to everyone. For most part issues
revolve around compactions and GC tuning.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/99-999-uptime-Operations-Best-Practices-tp6506227p6506529.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: 99.999% uptime - Operations Best Practices?

2011-06-22 Thread mcasandra

Les Hazlewood wrote:
 
 I have architected, built and been responsible for systems that support
 4-5
 9s for years. 
 

So have most of us. But probably by now it should be clear that no
technology can provide concrete recommendations. They can only provide what
might be helpful which varies from env to env. That's why I suggest look at
the comments in cassandra.yaml and see which are applicable in your
scenario. I learn something new everytime I read it.

BTW: Can you be clear as to what kind of recommendations are you referring
to? NetworkToplogy, how many copies to store, uptime, load balancing,
request routing when on DC is down? If you ask specific questions you might
get better response.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/99-999-uptime-Operations-Best-Practices-tp6506227p6506565.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Is LOCAL_QUORUM as strong as QUORUM?

2011-06-22 Thread mcasandra
LOCAL_QUORUM gurantees consistency in the local data center only. Other
replica nodes in the same DC and other DC not part of the QUORUM will be
eventually consistent. If you want to ensure consistency accross DCs you can
use EACH_QUORUM but keep in mind the latency involved assuming DCs are not
located within short distance.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Is-LOCAL-QUORUM-as-strong-as-QUORUM-tp6506592p6506621.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Is LOCAL_QUORUM as strong as QUORUM?

2011-06-22 Thread mcasandra
Well it depends on the requirements. If you use any combination of CL with
EACH_QUORUM it means you are accepting the fact that you are ok if one of
the DC is down. And in your scenario you care more about DCs being
consistent even if writes were to fail. Also you are ok with network
latency.

I think there is a broader design question here and you might be able to
solve it with LOCAL_QUORUM if you handled it at application or load
balancing layer. Is this active/active data center? What's your actual
requirements? Are these external clients that can go to any data center?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Is-LOCAL-QUORUM-as-strong-as-QUORUM-tp6506592p6506937.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Direct control over where data is stored?

2011-06-05 Thread mcasandra
Please give more detailed info about what exactly you are worried about or
trying to solve.

Please take a step back and look at cassandra's architecture again and what
it's trying to solve. It's a distributed database so if you do what you are
describing there is a potential of getting hotspots. Which will probably
lead in other problems. You might solve one problem but then intriduce
another like slow reads or one node getting overloaded.

IF you really want to do what you described you can solve it simply by
designing your data model in that way. For eg: For User A you can store
information for all it's friends. This will lead to duplicate data but will
solve your problem.

I also suggest run some stress test and worry about the load, performance
only if it is a real problem for your kind of data.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Direct-control-over-where-data-is-stored-tp6441048p6442802.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Direct control over where data is stored?

2011-06-05 Thread mcasandra

Khanh Nguyen wrote:
 
 Is there a way to tell where a piece of data is stored in a cluster?
 For example, can I tell if LastNameColumn['A'] is stored at node 1 in
 the ring?
 

I have not used it but you can see getNaturalEndpoints in jmx. It will tell
you which nodes are responsible for a given row *key*

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Direct-control-over-where-data-is-stored-tp6441048p6443571.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Reading quorum

2011-06-03 Thread mcasandra

Fredrik Stigbäck wrote:
 
 Does reading quorum mean only waiting for quorum respones or does it mean
 quorum respones with same latest timestamp?
 
 Regards
 /Fredrik
 

Well it depends on how your CL is for writes. If you write with QUORUM and
then read with QUORUM then yes you will get at least one response with
latest timestamp.

http://wiki.apache.org/cassandra/API http://wiki.apache.org/cassandra/API 

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Reading-quorum-tp6435568p6436020.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: EC2 node adding trouble

2011-05-25 Thread mcasandra
Can you post the output of netstat -anp|grep LISTEN|grep java from all
the 3 nodes?

Also compare seconds nodes yaml with new nodes yaml and see what diff. you
find, if any.

Another thing try telnet tests from seed node to the new node.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/EC2-node-adding-trouble-tp6399102p6403602.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Exception when starting

2011-05-20 Thread mcasandra
Whenever I hear someone say data is corrupted I panic :) I have seen few
people have reported that but have not seen the real reason for it. Is it a
manual error, config error, bug etc. It will be good to identify why these
things happen so that it can  be fixed before it happens in PROD :(

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Re-Exception-when-starting-tp6383464p6386809.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: How to reduce the Read Latency.

2011-05-20 Thread mcasandra
What's your avg column size and row size? Your read latency in most case will
directly be related to how much you are trying to read. In my experience you
will see high read latency if you have big column size.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-to-reduce-the-Read-Latency-tp6385107p6386817.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Cassandra Vs. Oracle Coherence

2011-05-20 Thread mcasandra
Coherence is similar to memcachd (free). It's in memory cache layer on top of
the DB. You as a user need to keep that cache in sync with the DB.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Cassandra-Vs-Oracle-Coherence-tp6375561p6386847.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Exception when starting

2011-05-20 Thread mcasandra

Brandon Williams wrote:
 
 There was a bug, it is fixed.  It's just a cache, chill.
 

There is no time to chill when fighting it in production :) It's good to
know it's fixed.

Another question, when this happens are we able to restore data from replica
nodes?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Re-Exception-when-starting-tp6383464p6386925.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Exception when starting

2011-05-20 Thread mcasandra
In this case, yes. I was asking for the cases where commit log corruption was
reported.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Re-Exception-when-starting-tp6383464p6387101.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Inconsistent results using secondary indexes between two DC

2011-05-19 Thread mcasandra
I am wondering if running nodetool repair will help in anyway

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Inconsistent-results-using-secondary-indexes-between-two-DC-tp632p6382819.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Commitlog Disk Full

2011-05-17 Thread mcasandra
Do you see anything in log files?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Commitlog-Disk-Full-tp6356797p6374234.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Commitlog Disk Full

2011-05-17 Thread mcasandra
Those messages are ok to ignore. It's basically deleting the files that are
already flused as SSTables.

Which version are you running?

Have you tried restarting the node?

Pick one node and send ls -ltr output also the complete log files since
your last restart from the same node. I looked at the code and it looks like
you should see something in the logs for those files.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Commitlog-Disk-Full-tp6356797p6375353.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Commitlog Disk Full

2011-05-16 Thread mcasandra
You can try to update column family using cassandra-cli. Try to set
memtable_throughput to 32 first.

[default@unknown] help update column family;
update column family Bar;
update column family Bar with att1=value1;
update column family Bar with att1=value1 and att2=value2...;

Update a column family with the specified values for the given set of
attributes. Note that you must be using a keyspace.

valid attributes are:
- column_type: Super or Standard
- comment: Human-readable column family description. Any string is
acceptable
- rows_cached: Number or percentage of rows to cache
- row_cache_save_period: Period with which to persist the row cache, in
seconds
- keys_cached: Number or percentage of keys to cache
- key_cache_save_period: Period with which to persist the key cache, in
seconds
- read_repair_chance: Probability (0.0-1.0) with which to perform read
repairs on CL.ONE reads
- gc_grace: Discard tombstones after this many seconds
- column_metadata: null
- memtable_operations: Flush memtables after this many operations (in
millions)
- memtable_throughput: ... or after this many MB have been written
- memtable_flush_after: ... or after this many minutes
- default_validation_class: null
- min_compaction_threshold: Avoid minor compactions of less than this
number of sstable files
- max_compaction_threshold: Compact no more than this number of sstable
files at once
- column_metadata: Metadata which describes columns of column family.
Supported format is [{ k:v, k:v, ... }, { ... }, ...]
Valid attributes: column_name, validation_class (see comparator),
  index_type (integer), index_name.


--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Commitlog-Disk-Full-tp6356797p6370913.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Commitlog Disk Full

2011-05-13 Thread mcasandra
Is there a way to look at the actual size of memtable? Would that help?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Commitlog-Disk-Full-tp6356797p6360001.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Commitlog Disk Full

2011-05-13 Thread mcasandra
5G in one hour is actually very low. Something else is wrong. Peter pointed
to something related to memtable size could be causing this problem, can you
turn down memtable_throughput and see if that helps.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Commitlog-Disk-Full-tp6356797p6362301.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Strange corrupt sstable

2011-04-28 Thread mcasandra
What do you mean by Bad memory? Is it less heap size, OOM issues or something
else? What happens in such scenario, is there a data loss?

Sorry for many questions just trying to understand since data is critical
afterall :)

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Strange-corrupt-sstable-tp6314052p6314218.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: AW: AW: Two versions of schema

2011-04-19 Thread mcasandra
What would be the procedure in this case? Run drain on the node that is
disagreeing? But is it enough to run just drain or you suggest drain + rm
system files?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Two-versions-of-schema-tp6277365p6287863.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: AW: Two versions of schema

2011-04-18 Thread mcasandra
In my case all hosts were reachable and I ran nodetool ring before running
the schema update. I don't think it was because of node being down. I tihnk
for some reason it just took over 10 secs because I was reducing key_cache
from 1M to 1000. I think it might be taking long to trim the keys hence 10
sec default may not be the right way.

What is drain?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Two-versions-of-schema-tp6277365p6284276.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Two versions of schema

2011-04-16 Thread mcasandra
I don't think I got correct answer to my original post. Can someone please
help?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Two-versions-of-schema-tp6277365p6280070.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Key cache hit rate

2011-04-15 Thread mcasandra

How to intepret  Key cache hit rate? What does this no mean?


Keyspace: StressKeyspace
Read Count: 87579
Read Latency: 11.792417360326105 ms.
Write Count: 179749
Write Latency: 0.009272318622078566 ms.
Pending Tasks: 0
Column Family: StressStandard
SSTable count: 59
Space used (live): 52432078035
Space used (total): 52432078035
Memtable Columns Count: 229
Memtable Data Size: 114103248
Memtable Switch Count: 375
Read Count: 87579
Read Latency: NaN ms.
Write Count: 179751
Write Latency: 0.007 ms.
Pending Tasks: 0
Key cache capacity: 100
Key cache size: 78576
Key cache hit rate: 3.8880248833592535E-4
Row cache: disabled
Compacted row minimum size: 182786
Compacted row maximum size: 5839588
Compacted row mean size: 532956


--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Key-cache-hit-rate-tp6277236p6277236.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Two versions of schema

2011-04-15 Thread mcasandra
Is there a problem?


[default@StressKeyspace] update column family StressStandard with
keys_cached=100;
854ee0a0-6792-11e0-81f9-93d987913479
Waiting for schema agreement...
The schema has not settled in 10 seconds; further migrations are ill-advised
until it does.
Versions are 854ee0a0-6792-11e0-81f9-93d987913479:[10.18.62.202,
10.18.62.203, 10.18.62.200, 10.18.62.204, 10.18.62.199, 10.18.62.196,
10.18.62.197],22d165ff-6783-11e0-81f9-93d987913479:[10.18.62.198]


I remember reading somewhere before that when you have 2 versions of schemas
you are basically in trouble. Can someone explain what it means and it's
implications?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Two-versions-of-schema-tp6277365p6277365.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


All nodes down even though ring shows up

2011-04-14 Thread mcasandra
I ran stress test to read 50K rows and since then I am getting below error
even though ring show all nodes are up:

ERROR 12:40:29,999 Exception:
me.prettyprint.hector.api.exceptions.HectorException: All host pools marked
down. Retry burden pushed out to client.
at
me.prettyprint.cassandra.connection.HConnectionManager.getClientFromLBPolicy(HConnectionManager.java:308)
at
me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:213)
at
me.prettyprint.cassandra.service.KeyspaceServiceImpl.operateWithFailover(KeyspaceServiceImpl.java:129)
at
me.prettyprint.cassandra.service.KeyspaceServiceImpl.batchMutate(KeyspaceServiceImpl.java:100)
at
me.prettyprint.cassandra.service.KeyspaceServiceImpl.batchMutate(KeyspaceServiceImpl.java:106)
at
me.prettyprint.cassandra.model.MutatorImpl$2.doInKeyspace(MutatorImpl.java:203)
at
me.prettyprint.cassandra.model.MutatorImpl$2.doInKeyspace(MutatorImpl.java:200)
at
me.prettyprint.cassandra.model.KeyspaceOperationCallback.doInKeyspaceAndMeasure(KeyspaceOperationCallback.java:20)
at
me.prettyprint.cassandra.model.ExecutingKeyspace.doExecute(ExecutingKeyspace.java:85)
at
me.prettyprint.cassandra.model.MutatorImpl.execute(MutatorImpl.java:200)
at
com.riptano.cassandra.stress.InsertCommand.call(InsertCommand.java:117)
at
com.riptano.cassandra.stress.InsertCommand.call(InsertCommand.java:1)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)


---

No errors logged in the system.log and tpsats shows nothing.

nodetool -h dsdb1 tpstats
Pool NameActive   Pending  Completed
ReadStage 0 0  50176
RequestResponseStage  0 0 207223
MutationStage 0 0 199473
ReadRepairStage   0 0  14615
GossipStage   0 0  39835
AntiEntropyStage  0 0  0
MigrationStage0 0207
MemtablePostFlusher   0 0386
StreamStage   0 0  0
FlushWriter   0 0385
FILEUTILS-DELETE-POOL 0 0   1446
MiscStage 0 0  0
FlushSorter   0 0  0
InternalResponseStage 0 0   1230
HintedHandoff 0 0  7


compaction stats say pending: 0



--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/All-nodes-down-even-though-ring-shows-up-tp6274152p6274152.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: flush_largest_memtables_at messages in 7.4

2011-04-13 Thread mcasandra

Peter Schuller wrote:
 
 Saturated.
 
But read latency is still something like 30ms which I would think would be
much higher if it's saturated.


--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/flush-largest-memtables-at-messages-in-7-4-tp6266221p6269655.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: flush_largest_memtables_at messages in 7.4

2011-04-13 Thread mcasandra
One correction qu size in iostat ranges between 6-120. But still this doesn't
explain why read latency is low in cfstats.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/flush-largest-memtables-at-messages-in-7-4-tp6266221p6269875.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: flush_largest_memtables_at messages in 7.4

2011-04-13 Thread mcasandra
I still don't understand. You would expect read latency to increase
drastically when it's fully saturated and lot of READ drop messages also,
correct? I don't see that in cfstats or system.log which I don't really
understand why.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/flush-largest-memtables-at-messages-in-7-4-tp6266221p6270244.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: flush_largest_memtables_at messages in 7.4

2011-04-13 Thread mcasandra
Actually when I run 2 stress clients in parallel I see Read Latency stay the
same. I wonder if cassandra is reporting accurate nos.

I understand your analogy but for some reason I don't see that happening
with the results I am seeing with multiple stress clients running. So I am
just confused where the real bottleneck is.



--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/flush-largest-memtables-at-messages-in-7-4-tp6266221p6270942.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Timeout during stress test

2011-04-12 Thread mcasandra
Here is what cfhistograms look like. Don't really understand what this means,
will try to read. I also %util in iostat continuously 90%. Not sure if this
is caused by extra reads by cassandra. It seems unusual.

[root@dsdb4 ~]# nodetool -h `hostname` cfhistograms StressKeyspace
StressStandard
StressKeyspace/StressStandard histograms
Offset  SSTables Write Latency  Read Latency  Row Size 
Column Count
1  45720 0 0 0  
 
498857
2  0 0 0 0  
  
0
3  0 0 0 0  
  
0
4  0 0 0 0  
  
0
5  0 0 0 0  
  
0
6  0 0 1 0  
  
0
7  0 0 1 0  
  
0
8  0 0 0 0  
  
0
10 0 0 0 0  
  
0
12 0 0 0 0  
  
0
14 0 0 0 0  
  
0
17 0 1 0 0  
  
0
20 0 2 0 0  
  
0
24 0 1 0 0  
  
0
29 0 6 0 0  
  
0
35 068 0 0  
  
0
42 0   509 0 0  
  
0
50 0  1128 0 0  
  
0
60 0  1449 0 0  
  
0
72 0   789 0 0  
  
0
86 0   400 0 0  
  
0
1030   319 0 0  
  
0
1240   388 0 0  
  
0
1490   456 0 0  
  
0
1790   519 0 0  
  
0
2150   262 0 0  
  
0
2580   194 0 0  
  
0
310048 0 0  
  
0
3720 5 0 0  
  
0
4460 1 0 0  
  
0
5350 0 0 0  
  
0
6420 0 0 0  
  
0
7700 1 0 0  
  
0
9240 1 0 0  
  
0
1109   0 0 0 0  
  
0
1331   0 1 0 0  
  
0
1597 0 0 0  
  
0
1916 1 0 0  
  
0
2299 0 0 0  
  
0
2759 0 0 0  
  
0
3311 0 0 0  
  
0
3973 1 0 0  
  
0
4768 5 0 0  
  
0
572219 0 0  
  
0
686646 0 0  
  
0
8239   102 0 0  
  
0
9887   226 0 0  
  
0
11864  368 0 0  
  
0
14237  572 0   

Re: Lot of pending tasks for writes

2011-04-12 Thread mcasandra
Can someone please help?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Lot-of-pending-tasks-for-writes-tp6263462p6266213.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


flush_largest_memtables_at messages in 7.4

2011-04-12 Thread mcasandra
I am using cassandra 7.4 and getting these messages.

Heap is 0.7802529021498031 full. You may need to reduce memtable and/or
cache sizes Cassandra will now flush up to the two largest memtables to free
up memory. Adjust flush_largest_memtables_at threshold in cassandra.yaml if
you don't want Cassandra to do this automatically

How do I verify that I need to adjust any thresholds? And how to calculate
correct value?

When I got this message only reads were occuring.

create keyspace StressKeyspace
with replication_factor = 3
and placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy';

use StressKeyspace;
drop column family StressStandard;
create column family StressStandard
with comparator = UTF8Type
and keys_cached = 100
and memtable_flush_after = 1440
and memtable_throughput = 128;

 nodetool -h dsdb4 tpstats
Pool NameActive   Pending  Completed
ReadStage32   281 456598
RequestResponseStage  0 0 797237
MutationStage 0 0 499205
ReadRepairStage   0 0 149077
GossipStage   0 0 217227
AntiEntropyStage  0 0  0
MigrationStage0 0201
MemtablePostFlusher   0 0   1842
StreamStage   0 0  0
FlushWriter   0 0   1841
FILEUTILS-DELETE-POOL 0 0   3670
MiscStage 0 0  0
FlushSorter   0 0  0
InternalResponseStage 0 0  0
HintedHandoff 0 0 15

cfstats

Keyspace: StressKeyspace
Read Count: 460988
Read Latency: 38.07654727454945 ms.
Write Count: 499205
Write Latency: 0.007409593253272703 ms.
Pending Tasks: 0
Column Family: StressStandard
SSTable count: 9
Space used (live): 247408645485
Space used (total): 247408645485
Memtable Columns Count: 0
Memtable Data Size: 0
Memtable Switch Count: 1878
Read Count: 460989
Read Latency: 28.237 ms.
Write Count: 499205
Write Latency: NaN ms.
Pending Tasks: 0
Key cache capacity: 100
Key cache size: 299862
Key cache hit rate: 0.6031833150384193
Row cache: disabled
Compacted row minimum size: 219343
Compacted row maximum size: 5839588
Compacted row mean size: 497474


--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/flush-largest-memtables-at-messages-in-7-4-tp6266221p6266221.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: flush_largest_memtables_at messages in 7.4

2011-04-12 Thread mcasandra
64 bit 12 core 96 GB RAM

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/flush-largest-memtables-at-messages-in-7-4-tp6266221p6266400.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: flush_largest_memtables_at messages in 7.4

2011-04-12 Thread mcasandra
Yes

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/flush-largest-memtables-at-messages-in-7-4-tp6266221p6266726.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: flush_largest_memtables_at messages in 7.4

2011-04-12 Thread mcasandra
One thing I am noticing is that cache hit rate is very low even though my
cache key size is 1M and I have less than 1M rows. Not sure why so many
cache miss?

Keyspace: StressKeyspace
Read Count: 162506
Read Latency: 45.22479006928975 ms.
Write Count: 247180
Write Latency: 0.011610943442026053 ms.
Pending Tasks: 0
Column Family: StressStandard
SSTable count: 184
Space used (live): 99616537894
Space used (total): 99616537894
Memtable Columns Count: 351
Memtable Data Size: 171716049
Memtable Switch Count: 543
Read Count: 162507
Read Latency: 317.892 ms.
Write Count: 247180
Write Latency: 0.006 ms.
Pending Tasks: 0
Key cache capacity: 100
Key cache size: 256013
Key cache hit rate: 0.33801452784503633
Row cache: disabled
Compacted row minimum size: 182786
Compacted row maximum size: 5839588
Compacted row mean size: 537470



--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/flush-largest-memtables-at-messages-in-7-4-tp6266221p6267234.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: flush_largest_memtables_at messages in 7.4

2011-04-12 Thread mcasandra
Does it really matter how long cassandra has been running? I thought it will
keep keys of 1M at least.

Regarding your previous question about queue size in iostat I see it ranging
from 114-300.



--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/flush-largest-memtables-at-messages-in-7-4-tp6266221p6267728.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Timeout during stress test

2011-04-11 Thread mcasandra
I am running stress test using hector. In the client logs I see:

me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException()
at
me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:32)
at
me.prettyprint.cassandra.service.HColumnFamilyImpl$1.execute(HColumnFamilyImpl.java:256)
at
me.prettyprint.cassandra.service.HColumnFamilyImpl$1.execute(HColumnFamilyImpl.java:227)
at
me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:101)
at
me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:221)
at
me.prettyprint.cassandra.model.ExecutingKeyspace.doExecuteOperation(ExecutingKeyspace.java:97)
at
me.prettyprint.cassandra.service.HColumnFamilyImpl.doExecuteSlice(HColumnFamilyImpl.java:227)
at
me.prettyprint.cassandra.service.HColumnFamilyImpl.getColumns(HColumnFamilyImpl.java:139)
at
com.riptano.cassandra.stress.SliceCommand.call(SliceCommand.java:48)
at
com.riptano.cassandra.stress.SliceCommand.call(SliceCommand.java:20)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: TimedOutException()
at
org.apache.cassandra.thrift.Cassandra$get_slice_result.read(Cassandra.java:7174)
at
org.apache.cassandra.thrift.Cassandra$Client.recv_get_slice(Cassandra.java:540)
at
org.apache.cassandra.thrift.Cassandra$Client.get_slice(Cassandra.java:512)
at
me.prettyprint.cassandra.service.HColumnFamilyImpl$1.execute(HColumnFamilyImpl.java:236)


But I don't see anything in cassandra logs.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Timeout-during-stress-test-tp6262430p6262430.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Timeout during stress test

2011-04-11 Thread mcasandra
I see this occurring often when all cassandra nodes all of a sudden show CPU
spike. All reads fail for about 2 mts. GC.log and system.log doesn't reveal
much.

Only think I notice is that when I restart nodes there are tons of files
that gets deleted. cfstats from one of the nodes looks like this:

nodetool -h `hostname` tpstats
Pool NameActive   Pending  Completed
ReadStage2727  21491
RequestResponseStage  0 0 201641
MutationStage 0 0 236513
ReadRepairStage   0 0   7222
GossipStage   0 0  31498
AntiEntropyStage  0 0  0
MigrationStage0 0  0
MemtablePostFlusher   0 0324
StreamStage   0 0  0
FlushWriter   0 0324
FILEUTILS-DELETE-POOL 0 0   1220
MiscStage 0 0  0
FlushSorter   0 0  0
InternalResponseStage 0 0  0
HintedHandoff 1 3  9

--


Keyspace: StressKeyspace
Read Count: 21957
Read Latency: 46.91765058978913 ms.
Write Count: 222104
Write Latency: 0.008302124230090408 ms.
Pending Tasks: 0
Column Family: StressStandard
SSTable count: 286
Space used (live): 377916657941
Space used (total): 377916657941
Memtable Columns Count: 362
Memtable Data Size: 164403613
Memtable Switch Count: 326
Read Count: 21958
Read Latency: 631.464 ms.
Write Count: 222104
Write Latency: 0.007 ms.
Pending Tasks: 0
Key cache capacity: 100
Key cache size: 22007
Key cache hit rate: 0.002453626459907744
Row cache: disabled
Compacted row minimum size: 87
Compacted row maximum size: 5839588
Compacted row mean size: 552698




--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Timeout-during-stress-test-tp6262430p6263087.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Timeout during stress test

2011-04-11 Thread mcasandra
It looks like hector did retry on all the nodes and failed. Does this then
mean cassandra is down for clients in this scenario? That would be bad.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Timeout-during-stress-test-tp6262430p6263270.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Lot of pending tasks for writes

2011-04-11 Thread mcasandra
I am running stress test and on one of the nodes I see:

[root@dsdb5 ~]# nodetool -h `hostname` tpstats
Pool NameActive   Pending  Completed
ReadStage 0 0   2495
RequestResponseStage  0 0 242202
MutationStage48   521 287850
ReadRepairStage   0 0799
GossipStage   0 0  10639
AntiEntropyStage  0 0  0
MigrationStage0 0202
MemtablePostFlusher   1 2   1047
StreamStage   0 0  0
FlushWriter   1 1   1047
FILEUTILS-DELETE-POOL 0 0   2048
MiscStage 0 0  0
FlushSorter   0 0  0
InternalResponseStage 0 0  0
HintedHandoff 1 3  5

and cfstats

Keyspace: StressKeyspace
Read Count: 2494
Read Latency: 4987.431669206095 ms.
Write Count: 281705
Write Latency: 0.017631469090005503 ms.
Pending Tasks: 49
Column Family: StressStandard
SSTable count: 882
Space used (live): 139589196497
Space used (total): 139589196497
Memtable Columns Count: 6
Memtable Data Size: 14204955
Memtable Switch Count: 1932
Read Count: 2494
Read Latency: 5921.633 ms.
Write Count: 282522
Write Latency: 0.017 ms.
Pending Tasks: 32
Key cache capacity: 100
Key cache size: 1198
Key cache hit rate: 0.0013596193065941536
Row cache: disabled
Compacted row minimum size: 219343
Compacted row maximum size: 5839588
Compacted row mean size: 557125

I am just running simple test in 6 node cassandra 4 GB heap, 96 GB RAM and
12 core per host. I am inserting 1M rows with avg col size of 250k. I keep
getting Dropped mutation messages in logs. Not sure how to troubleshoot or
tune it.

Can someone please help?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Lot-of-pending-tasks-for-writes-tp6263462p6263462.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Timeout during stress test

2011-04-11 Thread mcasandra
But I don't understand the reason for oveload. It was doing simple read of 12
threads and reasing 5 rows. Avg CPU only 20%, No GC issues that I see. I
would expect cassandra to be able to process more with 6 nodes, 12 core, 96
GB RAM and 4 GB heap.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Timeout-during-stress-test-tp6262430p6263470.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Timeout during stress test

2011-04-11 Thread mcasandra

aaron morton wrote:
 
 You'll need to provide more information, from the TP stats the read stage
 could not keep up. If the node is not CPU bound then it is probably IO
 bound. 
 
 
 What sort of read?
 How many columns was it asking for ? 
 How many columns do the rows have ?
 Was the test asking for different rows ?
 How many ops requests per second did it get up to?
 What do the io stats look like ? 
 What does nodetool cfhistograms say ?
 
It's simple read of 1M rows with one column of avg size of 200K. Got around
70 req per sec.

Not sure how to intepret the iostats output with things happening async in
cassandra. Can you give little description on how to interpret it?

I have posted output of cfstats. Does cfhistograms provide better info?


--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Timeout-during-stress-test-tp6262430p6263859.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Columns values(integer) need frequent updates/ increments

2011-04-10 Thread mcasandra
What's the difference between a row index and sstable index?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Columns-values-integer-need-frequent-updates-increments-tp6251464p6259882.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: What need to be monitored while running stress test

2011-04-09 Thread mcasandra
What is a storage proxy latency?

By query latency you mean the one in cfstats and cfhistorgrams?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/What-need-to-be-monitored-while-running-stress-test-tp6255765p6257932.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Columns values(integer) need frequent updates/ increments

2011-04-09 Thread mcasandra
If there are multiple updates to same columns and scattered accross multiple
sstables then how does cassandra know which sstable has the most recent
value.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Columns-values-integer-need-frequent-updates-increments-tp6251464p6257960.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Heads up: restarting a node with autobootstrap=true after nodetool move will re-bootstrap the node in 0.7.0-0.7.4

2011-04-09 Thread mcasandra
Thanks for the info!

Does this also happens if initial_token is set?

Also, I am unable to understand the last line in that JIRA



 A potential complication was that seed nodes were moved without using the
 correct procedure of de-seeding them first. This was clearly wrong
 

What is de-seeding and why would it cause this problem? Relation of seeding
and auto_bootstrap always confuses me. If and when you have time can you
please explain it to me.

Thanks

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Heads-up-restarting-a-node-with-autobootstrap-true-after-nodetool-move-will-re-bootstrap-the-node-in4-tp6257434p6257988.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Columns values(integer) need frequent updates/ increments

2011-04-09 Thread mcasandra
That I understand but my basic quesiton was how does it know that there are
multiple updates that have occurred on the same column? and how does it
efficiently knows which sstable have these updates?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Columns-values-integer-need-frequent-updates-increments-tp6251464p6258033.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


auto_bootstrap

2011-04-08 Thread mcasandra
in yaml:
# Set to true to make new [non-seed] nodes automatically migrate data
# to themselves from the pre-existing nodes in the cluster. 

Why only non-seed nodes? What if seed nodes need to bootstrap?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/auto-bootstrap-tp6254993p6254993.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


CF config for Stress Test

2011-04-08 Thread mcasandra
I am starting a stress test using hector on 6 node machine 4GB heap and 12
core. In hectore readme this is what I got by default:

create keyspace StressKeyspace
with replication_factor = 3
and placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy';

use StressKeyspace;
drop column family StressStandard;
create column family StressStandard
with comparator = UTF8Type
and keys_cached = 1
and memtable_flush_after = 1440
and memtable_throughput = 32;

Are these good values? I was thinking of highher keys_cached but not sure if
it's in bytes or no of keys.

Also not sure how to tune memtable values.

I have set concurrent_readers to 32 and writers to 48.

Can someone please help me with good values that I can start this test with?

Also, any other suggested values that I need to change?

Thanks

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/CF-config-for-Stress-Test-tp6255608p6255608.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


What need to be monitored while running stress test

2011-04-08 Thread mcasandra
What are the key things to monitor while running a stress test? There is tons
of details in nodetoll tpstats/netstats/cfstats. What in particular should I
be looking at?

Also, I've been looking at iostat and await really goes high but cfstats
shows low latency in microsecs. Is latency in cfstats calculated per
operation?

I am just trying to understand what I need to look just to make sure I don't
overlook important points in process of evaluating cassandra.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/What-need-to-be-monitored-while-running-stress-test-tp6255765p6255765.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: 0.7.4 - Cassandra Nodes Do Not Start

2011-04-06 Thread mcasandra
I see this error in the logs posted. Is this normal?

java.io.IOError: java.io.EOFException
at
org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:73)
Caused by: java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:375)
at
org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:61)



--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/0-7-4-Cassandra-Nodes-Do-Not-Start-tp6246431p6246900.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: LB scenario

2011-04-06 Thread mcasandra
I think best is to have global load balancer in front of web servers/app
servers. And leave app servers to handle requests at local quoram. If data
center goes down then load balancer will simply hand out only one DCs ips.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/LB-scenario-tp6224754p6246968.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


RE: Ditching Cassandra

2011-04-01 Thread mcasandra
Where can I read more about CQL? I am assuming it's similar to SQL and
drivers like JDBC can be written on top of it. Is that right?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Ditching-Cassandra-tp6221436p6231654.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Endless minor compactions after heavy inserts

2011-04-01 Thread mcasandra
Is there a way to monitor the compactions using nodetools? I don't see it in
tpstats.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Endless-minor-compactions-after-heavy-inserts-tp6229633p6231672.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Understanding cfhistogram output

2011-04-01 Thread mcasandra
I can't find it on wiki. Do you have a link where it can give detail help?

Also, is the latency in micro sec. or millisec?

How about latency in cfstats? Is it micro or mill? It says ms which is gen.
millisec.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Understanding-cfhistogram-output-tp6231927p6232572.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: How to determine if repair need to be run

2011-03-31 Thread mcasandra
If I am not wrong node repair need to be run on all the nodes in staggerred
manner. It is required to take care of tombstones. Please correct me team if
I am wrong :)

See Distributed Deletes:

http://wiki.apache.org/cassandra/Operations



--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-to-determine-if-repair-need-to-be-run-tp6220005p6227778.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


nodetool cfstathistogram error

2011-03-31 Thread mcasandra
Cassandra 7.4:

nodetool -h `hostname` cfhistograms system schema
Exception in thread main java.lang.reflect.UndeclaredThrowableException
at $Proxy5.getRecentReadLatencyHistogramMicros(Unknown Source)
at
org.apache.cassandra.tools.NodeCmd.printCfHistograms(NodeCmd.java:452)
at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:605)
Caused by: javax.management.InstanceNotFoundException:
org.apache.cassandra.db:type=ColumnFamilies,keyspace=system,columnfamily=schema
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:662)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1404)
at
javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
at
javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:600)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
at
javax.management.remote.rmi.RMIConnectionImpl_Stub.getAttribute(Unknown
Source)
at
javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(RMIConnector.java:878)
at
javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:263)


Am I doing something wrong?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/nodetool-cfstathistogram-error-tp6228995p6228995.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: nodetool cfstathistogram error

2011-03-31 Thread mcasandra
It looks like if I use system schema it fails. Is it because of
LocalPartitioner?

I ran with other keyspace and got following output.

Offset SSTables Write Latency Read Latency Row Size Column Count
1 0 0 0 0 0
2 0 0 0 0 0
179 0 0 0 320 320


Can someone please help me understand the output in first 2 columns? Why are
SSTables always 0?

I am writing shell/awk scripts to parse this data and send it out to
monitoring tool. 

So far I am planning to monitor output of netstat, tpstat and cfhistograms.
Is there anything else I should monitor that might be helpful?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/nodetool-cfstathistogram-error-tp6228995p6229038.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


How to determine if repair need to be run

2011-03-29 Thread mcasandra
Is there a way to monitor and tell if one of the node require repair? For eg:
Node was down and came back up but in the meantime HH were dropped. Now
unless we are really careful in all the scenarios we wouldn't have any
problems :) but in general when things are going awry you might forget about
running repair or other commands until there is a customer impact.

Is there a way to monitor and alert on such things like repair?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-to-determine-if-repair-need-to-be-run-tp6220005p6220005.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: How to determine if repair need to be run

2011-03-29 Thread mcasandra
Yes but that doesn't really provide the monitoring that will really be
helpful. If I don't realize it until 2 days then we potentially could be
returning inconsistent results or not have data sync for 2 days until repair
is run. It will be best to be able to monitor these things so that it can be
run as soon as it is required (eg node down). Have such monitoring will be
helpful for operations team to monitor also who may not know all internals
of cassandra.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-to-determine-if-repair-need-to-be-run-tp6220005p6220171.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: How to determine if repair need to be run

2011-03-29 Thread mcasandra
I think what I feel is that there is a need to know if repair is required
flag in order for team to manage the cluster.

Atleast at minimum, Is there a flag somewhere that tells if repair was run
within GCGracePeriod?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-to-determine-if-repair-need-to-be-run-tp6220005p6221157.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Ditching Cassandra

2011-03-29 Thread mcasandra
I am also interested in knowing when 8 will be released. Also, is there
someplace where we can read about features that will be relased in 8? Looks
like some major changes are going to come out.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Ditching-Cassandra-tp6221436p6221685.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Central monitoring of Cassandra cluster

2011-03-25 Thread mcasandra
Thanks everyone this gives me a good head start.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Central-monitoring-of-Cassandra-cluster-tp6205275p6208331.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Central monitoring of Cassandra cluster

2011-03-24 Thread mcasandra
Can someone share if they have centralized monitoring for all cassandra
servers. With many nodes it becomes difficult to monitor them individually
unless we can look at data in one place. I am looking at solutions where
this can be done. Looking at Cacti currently but not sure how to integrate
it with JMX.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Central-monitoring-of-Cassandra-cluster-tp6205275p6205275.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Active / Active Data Center and RF

2011-03-21 Thread mcasandra
I think what I am trying to ask is this:

what happens if it's RF=3 with network toplogy (RackInferringSnitch) and 2
copies are stored in Site A and 1 copy in Site B data center. Now client for
some reason is directed to Site B data center and does a write/update on
existing column, now would Site B have 2 copies too because of network
topology (RackInferringSnitch)? 



--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Active-Active-Data-Center-and-RF-tp6185528p6192916.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Active / Active Data Center and RF

2011-03-20 Thread mcasandra
CL is just a way to satisfy consistency but you still want majority of your
reads (preferrably) occurring in the same DC.

I don't think that answers my question at all. I understand the CL but I
think I have more basic and important question about active/active data
center and the replicas in that very specific scenario which to me looks
like a issue somehow. Can someone please look at my question specifically
again?




--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Active-Active-Data-Center-and-RF-tp6185528p6191120.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Active / Active Data Center and RF

2011-03-18 Thread mcasandra
When in active/active data center how to decide right replication factor?
Client may connect and request for the information from either data center
so if locally it's RF=3 then in multiple data center should it be RF=6 in
active/active?

Or what happens if it's RF=3 with network toplogy and 2 copies are stored in
Site A and 1 copy in Site B data center. Now client for some reason is
directed to Site B data center and does a write, now would Site B have 2
copies and Site A one (or still 2)? It's getting confusing slowly :) I have
several more questions but will start with understanding this first. 

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Active-Active-Data-Center-and-RF-tp6185528p6185528.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Does concurrent_reads relate to number of drives in RAID0?

2011-03-17 Thread mcasandra
Also when it comes to RAID controller there are other options like write
policy, read policy, cache io/direct io. Is there any preference on which
policies should be chosen?

In our case:

http://support.dell.com/support/edocs/software/svradmin/1.9/en/stormgmt/cntrls.html

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Does-concurrent-reads-relate-to-number-of-drives-in-RAID0-tp6182346p6183075.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Seed

2011-03-15 Thread mcasandra
That is from the wiki  http://wiki.apache.org/cassandra/StorageConfiguration
http://wiki.apache.org/cassandra/StorageConfiguration 

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Seed-tp6162837p6174450.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


How does new node know about other hosts and joins the cluster

2011-03-15 Thread mcasandra
I am assuming it is the seed node that tells who are the other member in the
cluster. And then does the new node joining the cluster send join message
(something like that) to other nodes or is there a master coordinator (like
jboss cluster) that tells other nodes that new node has joined?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-does-new-node-know-about-other-hosts-and-joins-the-cluster-tp6174900p6174900.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Seed

2011-03-14 Thread mcasandra

Tyler Hobbs-2 wrote:
 
 Seeds:
 Never use a node's own address as a seed if you are bootstrapping it by
 setting autobootstrap to true! 
 

I came accross this on the wiki. Can someone please help me understand this
with some example?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Seed-tp6162837p6169871.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Linux HugePages and mmap

2011-03-14 Thread mcasandra
Currently, in cassandra.yaml disk_access_mode is set to auto but the
recommendation seems to be to use 'mmap_index_only'.

If we use HugePages then do we still need to worry about setting
disk_access_mode to mmap? I am planning to enable HugePages and use
-XX:+UseLargePages option in JVM. I had a very good experience using
HugePages with Oracle.


--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Linux-HugePages-and-mmap-tp6170193p6170193.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Linux HugePages and mmap

2011-03-14 Thread mcasandra

Jonathan Ellis-3 wrote:
 
 Wrong.  The recommendation is to leave it on auto.
 
this is where I see mmap recommended for index. 
http://wiki.apache.org/cassandra/StorageConfiguration
http://wiki.apache.org/cassandra/StorageConfiguration 



Jonathan Ellis-3 wrote:
 
 HugePages has nothing to do with disk access mode.
 
Can you explain little more? Isn't mmap pinning the process memory in RAM
similar to HugePages?


--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Linux-HugePages-and-mmap-tp6170193p6170423.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: Linux HugePages and mmap

2011-03-14 Thread mcasandra
Thanks! I think it still is a good idea to enable HiugePages and use
UseLargePageSize option in JVM. What do you think?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Linux-HugePages-and-mmap-tp6170193p6171008.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: How long will all nodes data sync.

2011-03-11 Thread mcasandra
Is there a way to monitor how far behind the sync is? In case of hinted hand
off or when node is down for extended period of time it will probably be
helpful to know.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-long-will-all-nodes-data-sync-tp6160221p6162784.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: How long will all nodes data sync.

2011-03-11 Thread mcasandra
Yes I understand that piece but my thought is that if node is down and came
up but at that point we want to know how long the sync will take in case
there were another node to fail in the replica set. It also is good data
point to see how long it takes to sync.

It's always good to have this data handy and is always useful when in
production, in my opinion.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/How-long-will-all-nodes-data-sync-tp6160221p6162816.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Seed

2011-03-11 Thread mcasandra
I've read in some posts before and on the wiki that all the nodes in the
cluster should have same seed list and 2 is the no. of seeds recommended. My
question is it advisable to have node seed itself. Say for eg Node A, Node B
and Node C in a cluster have a seed list of A and B. Now according to the
recommendation even Node A will have seed of A and B, but it somehow looks
wrong. Am I reading it incorrectly?

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Seed-tp6162837p6162837.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: problem with bootstrap

2011-03-10 Thread mcasandra

mcasandra wrote:
 
 
 aaron morton wrote:
 
 
 The issue I think you and Patrik are seeing occurs when you *remove*
 nodes from the ring. The ring does not know if they are up or down. E.g.
 you have a ring of 3 nodes, and add a keyspace with RF 3. Then for
 whatever reason 2 nodes are removed from the ring. When bootstrapping a
 node into this ring it will fail because it detects the cluster does not
 have enough *endpoints* (different to up nodes) to support the keyspace. 
 
 
 Thanks for more info. However I am still not understanding why I am
 running in this situation since this node was once up like other node. In
 your previous post you mentioned that the node got removed. I am trying to
 understand what that really means and what causes a node to remove? All I
 did was kill -9 and then sudo cassandra to start the node.
 
I am still trying to see how to find the root cause of this behaviour. I
wonder if this were to happen in production how will we debug or what will
we do :(

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/problem-with-bootstrap-tp6127315p6158996.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


Re: problem with bootstrap

2011-03-10 Thread mcasandra
I am completely confused. I repeated same test after turning on
auto_bootstrap to true and it worked this time. I did it exactly same way
where I killed 2 nodes and this time it started with no issues.

Could it be because once auto_bootstrap is off it's off forever?

I am using hector and upgraded hector this morning.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/problem-with-bootstrap-tp6127315p6159679.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


  1   2   >