Questions tagged [aerospike-ce]

Aerospike Community Edition

Aerospike Community Edition is a FOSS edition of Aerospike licensed under the AGPL. The Community Edition has several notable limitations in comparison to the Enterprise licensed under a proprietary commercial license. The Community Edition provides no support for authentication and has some limitations on "durable deletes".

41 questions
1
vote
1 answer

Changing TTL for a set in Aerospike with AQL

I was just wondering, is there a way to change the TTL of a set through AQL query alone. I have gone through this aerospike page : https://discuss.aerospike.com/t/how-to-modify-ttl-using-udf/5608 and it says I will have to create a lua script and…
T.P.
  • 83
  • 3
  • 12
1
vote
1 answer

Reducing File size for disk backed aerospike

How can we reduce the file size for aerospike .dat file? our current config is namespace test { memory-size 20G # Maximum memory allocation for data and # primary and secondary indexes. …
best wishes
  • 5,789
  • 1
  • 34
  • 59
1
vote
0 answers

Aerospike Issue in reading data with header

I am facing an issue where aerospike read is stale . Two thread is trying to update the record with generation id using operate API. Thread 1 has updated the record and increased the generation id by one. verified this through reading the record…
1
vote
2 answers

Inserting data in bins for the first time in aerospike followed by increment

I am storing some counters in aerospike - say counter a,b and c along with a parent_id say pid and obviously a pk say pk. I need to increment the counters from my service so I wrote three functions incrementA, incrementB and incrementC. Now assume,…
paradocslover
  • 2,932
  • 3
  • 18
  • 44
1
vote
1 answer

Aerospike aql: How to fetch records from aerospike using predicate based on the Map field

I've below class definition for data transfer object. I use spring-data-aerospike to persistence. import org.springframework.data.annotation.Id; public class User implements Serializable { @Id String uid; …
user51
  • 8,843
  • 21
  • 79
  • 158
1
vote
1 answer

Aerospike reporting requirement | Hourly frequent scans required

We are having below aerospike set data model @ prod. We are relying on ONLY Aerospike as our data-house. Now, we need to generate the hourly report for sales team: Report detailing no of customers acquired in every hour. @Document(collection =…
Aditya Goel
  • 201
  • 1
  • 15
1
vote
2 answers

How to set TTL for map entry in aerospike

We are having below aerospike set connfiguration and want that entry from the Map should be auto deleted after 'x' days. How should the same be achieved using Spring data aerospike ? @Document(collection = "cust") public class Customer { @Id …
1
vote
2 answers

Is it possible to use primary key along with secondary key in Aerospike for fetching a record?

Is it possible to use primary key along with secondary key. I want to get all records on the basis of primary key and then apply secondary index over it? Is it the correct way to do it or some other approach should be used? I have a bin with primary…
martin
  • 49
  • 2
  • 10
1
vote
1 answer

Aerospike - command execution timed out on client

Using the following code to load data in Aerospike. data is a list of maps of type BinMap for _, binMap := range data { id, ok := binMap["id"].(string) key, _ := as.NewKey("test", "myset", id) err := shared.Client.Put(nil, key, binMap) …
Tusshu
  • 1,664
  • 3
  • 16
  • 32
1
vote
1 answer

How to install a specific version of Aerospike using Vagrant

I am following the steps in https://www.aerospike.com/docs/operations/install/vagrant/mac/ to download Aerospike. However, by default I get the latest version of Aerospike (4.5.3) and I want to have the 3.7.5 version. Any leads on how to do that…
vv1129
  • 37
  • 1
  • 1
  • 6
1
vote
0 answers

Aerospike migrations issue

We have a 10 node cluster with version 3.9 running with cold-start-empty false, in which we did the following activity : Added a node 10.0.29.212 with version community build 3.13.0.10 Waited for migrations to finish (new cluster size 11). There…
1
vote
3 answers

How to get the primary key (PK) of a record in aerospike?

I want to get a specific record from a set in aerospike. But when i execute the following query, i got no result: select * from ctl.prodCache where PK='111222'; But when i execute the following query: select * from ctl.prodCache; It gives me all…
KayV
  • 12,987
  • 11
  • 98
  • 148
1
vote
1 answer

Aerospike set - dumping into JSON(L)

How do I dump a set in Aerospike into JSON (newline-separated JSON)? I tried aql -h 10.0.0.1 --no-config-file --outputmode=json -c "select * fromnamespace.set_name" >> whatever.json and (echo "select * from namespace.set_name" && cat) | aql -h…
ixaxaar
  • 6,411
  • 3
  • 24
  • 33
1
vote
1 answer

Aerospike: Device Overload Error when size of map is too big

We got "device overload" error after the program ran successfully on production for a few months. And we find that some maps' sizes are very big, which may be bigger than 1,000. After I inspected the source code, I found that the reason of "devcie…
Jiayi Liao
  • 999
  • 4
  • 15
1
vote
1 answer

Capping an Aerospike map in Lua

We want to remove elements from Map bin based on size. There will be multiple threads which will try to do above operation. So writing an UDF to do this operation will make it synchronized between threads. But remove_by_rank_range is not working…
Swetha
  • 87
  • 9