Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Solandra #67

Closed
wants to merge 1 commit into from

2 participants

@ceocoder

added index id expiration time as a property

@tjake
Owner

Thanks, I think it would be better to make this pick a sensible time based on the size of the reserve.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 4, 2011
  1. @ceocoder
This page is out of date. Refresh to see the latest.
View
4 resources/solandra.properties
@@ -24,6 +24,10 @@ solandra.maximum.docs.per.shard = 131072
#*NOTE* this value must be a power of 2
solandra.index.id.reserve.size = 16384
+#expiration time for reserved index ids
+#*NOTE* in seconds
+solandra.index.id.expirationtime = 120
+
#The number of shards to write to at once
#This should roughly equal the number of
#nodes in your cluster
View
2  src/lucandra/cluster/CassandraIndexManager.java
@@ -59,7 +59,7 @@
public static final int reserveSlabSize = Integer.valueOf(CassandraUtils.properties.getProperty("solandra.index.id.reserve.size", "16384"));
private final int offsetSlots = maxDocsPerShard / reserveSlabSize;
- private final int expirationTime = 120; // seconds
+ private final int expirationTime = Integer.valueOf(CassandraUtils.properties.getProperty("solandra.index.id.expirationtime", "120")); // seconds
private final ConcurrentMap<String, LinkedBlockingQueue<IdInfo>> indexReserves = new MapMaker().makeMap();
private final ConcurrentMap<String, ShardInfo> indexShards = new MapMaker().makeMap();
Something went wrong with that request. Please try again.