Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEODE-6172: Configure geode properties for benchmarks
* Rename and move parameters and util packages * create Geode properties to pass to servers and locators Signed-off-by: Dan Smith <dsmith@pivotal.io> Signed-off-by: Helena A. Bales <hbales@pivotal.io>
- Loading branch information
1 parent
f95e4f6
commit 0aa0594
Showing
10 changed files
with
82 additions
and
28 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
geode-benchmarks/src/main/java/org/apache/geode/benchmark/parameters/GeodeProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license | ||
* agreements. See the NOTICE file distributed with this work for additional information regarding | ||
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance with the License. You may obtain a | ||
* copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License | ||
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
* or implied. See the License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package org.apache.geode.benchmark.parameters; | ||
|
||
import java.util.Properties; | ||
|
||
import org.apache.geode.distributed.ConfigurationProperties; | ||
|
||
public class GeodeProperties { | ||
|
||
public static Properties serverProperties() { | ||
Properties properties = new Properties(); | ||
|
||
properties.setProperty(ConfigurationProperties.CONSERVE_SOCKETS, "false"); | ||
properties.setProperty(ConfigurationProperties.ENABLE_TIME_STATISTICS, "true"); | ||
properties.setProperty(ConfigurationProperties.LOCATOR_WAIT_TIME, "120"); | ||
properties.setProperty(ConfigurationProperties.LOG_DISK_SPACE_LIMIT, "100"); | ||
properties.setProperty(ConfigurationProperties.LOG_FILE_SIZE_LIMIT, "10"); | ||
properties.setProperty(ConfigurationProperties.LOG_LEVEL, "config"); | ||
properties.setProperty(ConfigurationProperties.REMOVE_UNRESPONSIVE_CLIENT, "true"); | ||
properties.setProperty(ConfigurationProperties.STATISTIC_SAMPLING_ENABLED, "true"); | ||
properties.setProperty(ConfigurationProperties.ARCHIVE_DISK_SPACE_LIMIT, "150"); | ||
properties.setProperty(ConfigurationProperties.ARCHIVE_FILE_SIZE_LIMIT, "10"); | ||
properties.setProperty(ConfigurationProperties.DISTRIBUTED_SYSTEM_ID, "0"); | ||
properties.setProperty(ConfigurationProperties.ENABLE_CLUSTER_CONFIGURATION, "false"); | ||
properties.setProperty(ConfigurationProperties.USE_CLUSTER_CONFIGURATION, "false"); | ||
return properties; | ||
} | ||
|
||
public static Properties locatorProperties() { | ||
// Locator properties are the same as the server properties right now | ||
return serverProperties(); | ||
} | ||
|
||
public static Properties clientProperties() { | ||
Properties properties = new Properties(); | ||
properties.setProperty(ConfigurationProperties.ENABLE_TIME_STATISTICS, "true"); | ||
properties.setProperty(ConfigurationProperties.LOG_LEVEL, "config"); | ||
properties.setProperty(ConfigurationProperties.STATISTIC_SAMPLING_ENABLED, "true"); | ||
return properties; | ||
|
||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters