Re: Quorum: which nodes have a right to vote?

2023-06-14 Thread Luca Morandini
s no longer reachable (no one of the surviving nodes hosts it) the cluster stops accepting requests on that database: is that so? Thanks for the answer, Luca Morandini

Quorum: which nodes have a right to vote?

2023-06-13 Thread Luca Morandini
not. Therefore, about 5,000 of the write operations must have hit the un-replicated shards. In other words, who has the vote in a quorum election: all the nodes, or only the nodes that host the shard with the sought document? Cheers, Luca Morandini

Quorum formula

2023-06-10 Thread Luca Morandini
/blob/604526 f5f93df28138a165a666e39ff37f3fdc06/src/fabric/src/fabric_db_info.erl#L159 Am I missing something? Cheers, Luca Morandini

Re: Repeated documents returned by text-search pagination.

2022-09-20 Thread Luca Morandini
by necessity have a "created_at" date outside that range}. Cheers, Luca Morandini

Repeated documents returned by text-search pagination.

2022-09-19 Thread Luca Morandini
. Could someone shed some light on this? Cheers, Luca Morandini

Changes to compaction configuration not having effect

2022-08-17 Thread Luca Morandini
igurations: - the behaving cluster is a four-instances, CouchDB 3.1.0 cluster running on Kubernetes (Apache CouchDB Helm chart 3.3.4), - the misbehaving cluster runs on four separate VMs, each with a Docker container based on the Bitnami 3.1.0 image. Could someone explain this behaviour? Cheers, Luca Morandini

Re: Clouseau instances co-location

2022-08-05 Thread Luca Morandini
that they > are still _paired_. Each couchdb node should be configured to talk to its > own, separate, Clouseau node. Thanks for the explanation. Cheers, Luca Morandini

Clouseau instances co-location

2022-08-03 Thread Luca Morandini
Clouseau run on a different VM: is that at all possible? Cheers, Luca Morandini

Re: Shards cannot be read after move to a different cluster

2022-07-08 Thread Luca Morandini
overflow.com/questions/6676972/moving-a-shard-from-one-bigcouch-server-to-another-for-balancing. > The sharing scheme for bigcouch is the same as for couchdb 3.x. > > The essential difference is to _not_ create the clustered database at the > target cluster until _after_ you've copi

Re: Shards cannot be read after move to a different cluster

2022-07-08 Thread Luca Morandini
ed with the 200GB database. Cheers, Luca Morandini

Shards cannot be read after move to a different cluster

2022-07-07 Thread Luca Morandini
\u003e], message_queue_len: 0, messages: [], links: [\u003c0.9136.29\u003e,\u003c0.9139.29\u003e], dictionary: [{io_priority,{db_update,\u003c\u003c\"shards/9553-aaa7/twitter.16570671...\"\u003e\u003e}},...], trap_exit: false, status: running, heap_size: 610, stack_size: 27, reductions: 250 Cheers, Luca Morandini

How to set CouchJS memory in CouchDB 2.0?

2015-09-02 Thread Luca Morandini
ouchjs max memory to the same value I use in CouchDB 1,5: [query_servers] javascript = ~/git/couchdb/bin/couchjs -S 134217728 ~/git/couchdb/share/server/main.js Is this the correct way to set the CouchJS memory in CouchDB 2.0? Regards, Luca Morandini Data Architect - AURIN project Melbourne eRe

Re: Is it possible to really "reduce" the output of a reduce?

2015-03-27 Thread Luca Morandini
); } else { values.forEach(function(v) { if (v.length > 0) { result= result.concat(v); } }); } return result; } Hope this helps. Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information Systems University of

[SOLVED] Re: Error while indexing a big JSON

2015-02-12 Thread Luca Morandini
On 10/02/15 13:38, Luca Morandini wrote: Dear CouchDB community, I am trying to process a large JSON (~11MB) with a view, but this operaiton fails: This issue was solved by increasing the stack size, as described in http://stackoverflow.com/questions/21273736/couchdb-views-os-process-error

Re: Error while indexing a big JSON

2015-02-10 Thread Luca Morandini
cript. (that's a 1GB stack). Any other clues ? Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Re: Error while indexing a big JSON

2015-02-09 Thread Luca Morandini
is a geometry expressed into GeoJSON... no way I can sensibly split it. Do you agree that this is a memory error (the error message is rather cryptic) ? Thanks for your prompt reply, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information

Error while indexing a big JSON

2015-02-09 Thread Luca Morandini
le hypothesis ? If so, how can I increase the memory devoted to the JavaScript view engine ? Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Re: "keys is null" message when a view is performed on many docs

2014-09-30 Thread Luca Morandini
every set of values with the same keys fit into a single "reduce" execution, not the case with sizeable data. Thanks Mike for letting me see the light ;) Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information Systems Uni

"keys is null" message when a view is performed on many docs

2014-09-30 Thread Luca Morandini
adings.fid--3d7017ee_14733c15f9f_-2c82" } ], rights: [ { type: "Feature", geometry: null, properties: { geographicid: "1", geographicname: "New South Wales", property: "Unit",

Re: Fun with dates on CouchDB 1.5.0 and 1.5.1

2014-09-30 Thread Luca Morandini
:) Thanks once more, Mike. Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Re: Fun with dates on CouchDB 1.5.0 and 1.5.1

2014-09-25 Thread Luca Morandini
we'll see. Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Re: Fun with dates on CouchDB 1.5.0 and 1.5.1

2014-09-24 Thread Luca Morandini
s.so.1 => /lib64/libkeyutils.so.1 (0x003819a0) libssl.so.10 => /usr/lib64/libssl.so.10 (0x00381ba0) libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x000000381b60) libselinux.so.1 => /lib64/libselinux.so.1 (0x003814e0) Regards, Luca Morandini Data

Fun with dates on CouchDB 1.5.0 and 1.5.1

2014-09-23 Thread Luca Morandini
no matter what on 1.5.1... can someone shed some light ? 1.5.1 runs on: CentOS 2.6.32-431.17.1.el6.x86_64, Erlang R14B04 (erts-5.8.5) and it was compiled from source, since no binary is available for said environment. Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

[SOLVED] Re: Missing function error

2014-08-11 Thread Luca Morandini
On 11/08/14 11:18, Luca Morandini wrote: It turned out that this error is triggered when the string declaring the function does not contain a function, like in: "by_type": { "map": "function (doc) {\nif (doc.type) {\nemit(doc.org, doc);\n

Re: Missing function error

2014-08-10 Thread Luca Morandini
On 08/08/14 18:18, Luca Morandini wrote: Update on this issue: we dropped the database, recreated it (ant its views) on CouchDB 1.5.1 and this apparently solved the issue. Next thing we are about to do is to add documents (one by one) from the old database and see which one breaks it

Re: Missing function error

2014-08-08 Thread Luca Morandini
On 08/08/14 18:57, Aurélien Bénel wrote: We tried from the admin interface as well. In Futon, can you see the view? Yes. If yes, what does it say when you select it? It spins for a few seconds, then: <> Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch

Re: Missing function error

2014-08-08 Thread Luca Morandini
On 08/08/14 18:57, Aurélien Bénel wrote: We tried from the admin interface as well. In Futon, can you see the view? Yes. If yes, what does it say when you select it? It spins for a few seconds, then: <> Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch

Re: Missing function error

2014-08-08 Thread Luca Morandini
d_by_id"; We tried from the admin interface as well. By the way, another design document on the same database works fine. 2. Do you use the rewrite handler? If yes, could you send your `rewrites.json` file? We don't use rewrite handlers. Thanks for the prompt reply, Luca Moran

Missing function error

2014-08-08 Thread Luca Morandini
;missing function"}). We tried to solve this issue by upgrading to 1.5.1 (we had unearthed an old bug with the same symptom) and replicated the offending database to the new one,... to no avail: any clues ? Thanks in advance, Luca Morandini Data Architect - AURIN project Melbourne eRe

Re: No joy installing GeoCouch from the plugins page on CouchDB 1.5.0

2014-03-23 Thread Luca Morandini
On 24/03/14 00:21, Benoit Chesneau wrote: Just to let you know but rcouch includes geocouch as an erlang application: I know, thanks. Actually, I had hopes for the plug-in system to work... well, maybe next release. Regards, Luca Morandini Data Architect - AURIN project Melbourne

No joy installing GeoCouch from the plugins page on CouchDB 1.5.0

2014-03-22 Thread Luca Morandini
tpRequest' -H 'Connection: keep-alive' --data-binary '{"name":"geocouch","url":"http://people.apache.org/~jan","version":"couchdb1.2.x_v0.3.0-16-g66e6219","checksums":{"1.4.0": {"R15B03":

Re: Revisions lost on CouchDB 1.2.0

2014-02-01 Thread Luca Morandini
urrent revisions ? Isn't the default behaviour the keeping of the latest 1000 revisions ? Regards, Luca Morandini --

Re: Revisions lost on CouchDB 1.2.0

2014-02-01 Thread Luca Morandini
t able to find any related issues. Thanks for your prompt reply, Luca Morandini --

Re: Revisions lost on CouchDB 1.2.0

2014-01-31 Thread Luca Morandini
, Luca Morandini

Revisions lost on CouchDB 1.2.0

2014-01-31 Thread Luca Morandini
show nothing suspicious on that day. Can someone shed some light ? Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Re: CouchDB scenario - steering advise please

2014-01-08 Thread Luca Morandini
(OpenRDF ?). Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Re: use startkey/endkey to discribe a range problem

2013-12-12 Thread Luca Morandini
, which are better (any serious geo-spatial index uses either grids or R-trees). As per using multiple dimensions in the same view, Volker (the main developer of GeoCouch) has it on his to-do list: his idea is to use n-dimensional R-trees. Regards, Luca Morandini Data Architect - AURIN project

GeoCouch performance: any suggestion to improve it ?

2013-04-15 Thread Luca Morandini
performance ? Regards, Luca Morandini Data Architect - AURIN project Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Unclosed connections to CouchDB using Cradle

2013-02-25 Thread Luca Morandini
tcp 1590408 0 127.0.0.1:37949 127.0.0.1:5984 ESTABLISHED 31914/node All of them are connections from my app to CouchDB: is there any way to prevent this or -failing that- force a periodic closing ? Regards, Luca Morandini Data Architect - AURIN project Department of Computing and Information Sys

Re: Fixed precision of floating point number not respected in views

2013-02-20 Thread Luca Morandini
cy of duplicated sequences -hence the potential for compression is limited. Regards, Luca Morandini Data Architect - AURIN project Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Re: Fixed precision of floating point number not respected in views

2013-02-20 Thread Luca Morandini
On 02/21/2013 12:31 AM, Volker Mische wrote: On 02/19/2013 09:46 PM, Luca Morandini wrote: Well, there it goes my academic track paper on CouchDB and GeoCouch for FOSS4G '13 :( I don't understand why this would be a problem for an *academic* paper. People should understand the im

Re: Fixed precision of floating point number not respected in views

2013-02-19 Thread Luca Morandini
On 02/20/2013 05:29 PM, Jens Alfke wrote: On Feb 19, 2013, at 7:58 PM, Luca Morandini wrote: Well, it is not a matter of precision -as it may be enough for most purposes- but of external representation: every user would expect to get back the same data he had put into the database. But you

Re: Fixed precision of floating point number not respected in views

2013-02-19 Thread Luca Morandini
ch we cannot do much about... but what about a, per-view, "pretty-printing" option ? Regards, Luca Morandini Data Architect - AURIN project Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Re: Fixed precision of floating point number not respected in views

2013-02-19 Thread Luca Morandini
Transforming every number in a string would entail putting a "flag" on every number, to tell which one was a genuine number. Something like: [1.1, 2.2, 3.3, "abc"] ==> [{"_": "1.1"}, {{"_": "2.2"}, {{"_": "3.3"},

Re: Fixed precision of floating point number not respected in views

2013-02-19 Thread Luca Morandini
On 02/20/2013 02:01 PM, Jens Alfke wrote: On Feb 19, 2013, at 12:46 PM, Luca Morandini wrote: Well, there it goes my academic track paper on CouchDB and GeoCouch for FOSS4G '13 :( Are roundoff errors on the order of one part in 2^56 really a deal-breaker for your application? I

Re: Fixed precision of floating point number not respected in views

2013-02-19 Thread Luca Morandini
that low-fidelity representation ? This is a DBMS, people expects to get exactly what they put into it. Regards, Luca Morandini Data Architect - AURIN project Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Re: Fixed precision of floating point number not respected in views

2013-02-19 Thread Luca Morandini
mprecisions are in order. What troubles me -and will have a hard time explaining to users- is that numbers are changed by the mere act of storing them in CouchDB. Regards, Luca Morandini Data Architect - AURIN project Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

Re: Fixed precision of floating point number not respected in views

2013-02-19 Thread Luca Morandini
mbers of the list, but changing numbers to integers or multiplying them (essentially the same suggestion) is not an option, since I have little control over input data, and it will kill performance too (I deal mainly with geo-spatial data, hence heaps of numbers in arrays of arrays). Well, t

Re: Fixed precision of floating point number not respected in views

2013-02-19 Thread Luca Morandini
the past has shown a few "bignum" libraries for Javascript. No, storing as string won't do, since I have little contro0l over the content of documents to be stored... I could write an handler function to transform every number into a string, but this would sap performance. Rega

Re: Fixed precision of floating point number not respected in views

2013-02-19 Thread Luca Morandini
On 02/19/2013 07:05 PM, Luca Morandini wrote: Folks, I have stored fixed precision numbers in a database, but when they are spit out by a view, the precision is full, and -which is worse- the trailing decimal digits are not all zeroes. In the CouchDB: The Definitive Guide", I have foun

Fixed precision of floating point number not respected in views

2013-02-19 Thread Luca Morandini
"Feature", "properties": { "poll_id": 2734, "dataset": "pbc", "ced":null }, "bbox": [ 151.172809835, -33.910179688, 151.181589992, -33.9016201198 ] ... Of co

Re: [Job] : AURIN DATA ENGINEER - University of Melbourne

2012-12-10 Thread Luca Morandini
On 12/11/2012 07:25 AM, Luca Morandini wrote: Unfortunately, there is no couchdb-jobs list; morevoer, I had read some previous job postings that had not been not censured, hence I thought job-related posts to -^^^ A typo of course, I meant "job postings

Re: [Job] : AURIN DATA ENGINEER - University of Melbourne

2012-12-10 Thread Luca Morandini
l the beginnings of 2015 and the position is full-time. Regards, Luca Morandini Data Architect - AURIN project Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini

[Job] : AURIN DATA ENGINEER - University of Melbourne

2012-12-10 Thread Luca Morandini
these data sets include geospatial information and the project draws heavily on Open Geospatial Consortium standards and their implementation. Close date: 6 January 2013 Position Description & Selection Criteria http://jobs.unimelb.edu.au/jobDetails.asp?sJobIDs=855544 Regards, Luca Moran