-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #618 from aerospike/stage
Nodejs-Release-5.12.0
- Loading branch information
Showing
25 changed files
with
1,259 additions
and
442 deletions.
There are no files selected for viewing
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,62 @@ | ||
name: 'Run EE Server' | ||
description: 'Run EE server' | ||
inputs: | ||
# All inputs in composite actions are strings | ||
use-server-rc: | ||
required: true | ||
default: false | ||
server-tag: | ||
required: true | ||
default: 'latest' | ||
# Github Composite Actions can't access secrets | ||
# so we need to pass them in as inputs | ||
docker-hub-username: | ||
required: false | ||
docker-hub-password: | ||
required: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Create config folder to store configs in | ||
run: mkdir configs | ||
shell: bash | ||
|
||
- name: Use release server | ||
if: ${{ inputs.use-server-rc == 'false' }} | ||
run: echo "SERVER_IMAGE=aerospike/aerospike-server-enterprise" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Use release candidate server | ||
if: ${{ inputs.use-server-rc == 'true' }} | ||
run: echo "SERVER_IMAGE=aerospike/aerospike-server-enterprise-rc" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Log into Docker Hub to get server RC | ||
if: ${{ inputs.use-server-rc == 'true' }} | ||
run: docker login --username ${{ inputs.docker-hub-username }} --password ${{ inputs.docker-hub-password }} | ||
shell: bash | ||
|
||
- name: Get default aerospike.conf from Docker server EE container | ||
run: | | ||
docker run -d --name aerospike -p 3000-3002:3000-3002 $SERVER_IMAGE:${{ inputs.server-tag }} | ||
sleep 5 | ||
docker cp aerospike:/etc/aerospike/aerospike.conf ./configs/aerospike.conf | ||
docker container stop aerospike | ||
docker container rm aerospike | ||
shell: bash | ||
|
||
- name: Enable security features using aerospike.conf | ||
# Security stanza | ||
run: echo -e "security {\n\tenable-quotas true\n}\n" >> ./aerospike.conf | ||
working-directory: ./configs | ||
shell: bash | ||
|
||
- name: Run enterprise edition server | ||
run: docker run -tid -v $(pwd)/configs:/opt/aerospike/etc -p 3000:3000 --name aerospike $SERVER_IMAGE:${{ inputs.server-tag }} asd --config-file /opt/aerospike/etc/aerospike.conf | ||
shell: bash | ||
|
||
- name: Create user in database for tests | ||
# Use default admin user to create another user for testing | ||
run: docker exec aerospike asadm --user admin --password admin --enable -e "manage acl create user superuser password superuser roles read-write-udf sys-admin user-admin data-admin" | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "aerospike-client-c"] | ||
path = aerospike-client-c | ||
url = https://github.com/aerospike/aerospike-client-c.git | ||
branch = master | ||
branch = stage |
Submodule aerospike-client-c
updated
52 files
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// ***************************************************************************** | ||
// Copyright 2022-2023 Aerospike, Inc. | ||
// | ||
// Licensed 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. | ||
// ***************************************************************************** | ||
|
||
'use strict' | ||
|
||
const as = require('bindings')('aerospike.node') | ||
const queryDuration = as.queryDuration | ||
|
||
/** | ||
* @module aerospike/queryDuration | ||
* | ||
* @description Expected query duration. The server treats the query in different ways depending on the expected duration. | ||
* This enum is ignored for aggregation (UDF) queries, background queries and server versions < 6.0. | ||
*/ | ||
|
||
// ======================================================================== | ||
// Constants | ||
// ======================================================================== | ||
module.exports = { | ||
/** | ||
* The query is expected to return more than 100 records per node. The server optimizes for a | ||
* large record set in the following ways: | ||
* <ul> | ||
* <li>Allow query to be run in multiple threads using the server's query threading configuration.</li> | ||
* <li>Do not relax read consistency for AP namespaces.</li> | ||
* <li>Add the query to the server's query monitor.</li> | ||
* <li>Do not add the overall latency to the server's latency histogram.</li> | ||
* <li>Do not allow server timeouts.</li> | ||
* </ul> | ||
* | ||
* @const {number} | ||
*/ | ||
LONG: queryDuration.LONG, | ||
|
||
/** | ||
* The query is expected to return less than 100 records per node. The server optimizes for a | ||
* small record set in the following ways: | ||
* <ul> | ||
* <li>Always run the query in one thread and ignore the server's query threading configuration.</li> | ||
* <li>Allow query to be inlined directly on the server's service thread.</li> | ||
* <li>Relax read consistency for AP namespaces.</li> | ||
* <li>Do not add the query to the server's query monitor.</li> | ||
* <li>Add the overall latency to the server's latency histogram.</li> | ||
* <li>Allow server timeouts. The default server timeout for a short query is 1 second.</li> | ||
* </ul> | ||
* | ||
* @const {number} | ||
*/ | ||
SHORT: queryDuration.SHORT, | ||
|
||
/** | ||
* Treat query as a LONG query, but relax read consistency for AP namespaces. | ||
* This value is treated exactly like LONG for server versions < 7.1. | ||
* | ||
* @const {number} | ||
*/ | ||
LONG_RELAX_AP: queryDuration.LONG_RELAX_AP | ||
} |
Oops, something went wrong.