Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"an individual databases" #328

Open
wants to merge 4 commits into
base: 2.2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM jenkins/jnlp-slave:alpine

USER root

RUN apk update
RUN apk add nodejs npm
RUN npm install -g gitbook
94 changes: 55 additions & 39 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,43 +1,59 @@
stage 'Generate docs for branch ${env.BRANCH_NAME}'
node("master") {

properties([[$class: 'BuildDiscarderProperty',
strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '',
artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10']]])

sh "rm -rf ./*"
def appNameLabel = "docker_ci"
def taskLabel = env.JOB_NAME
def containerName="docs-${env.BUILD_NUMBER}"
def gitbookImage

checkout scm
echo "building docs for branch ${env.BRANCH_NAME}"

def containerName = env.JOB_NAME.replaceAll(/\//, "_") +
"_build_${currentBuild.number}"

def appNameLabel = "docker_ci";
def taskLabel = env.JOB_NAME.replaceAll(/\//, "_")

lock("label": "memory", "quantity":2) {
docker.image("orientdb/jenkins-slave-gitbook:6.0.0").inside("--label collectd_docker_app=${appNameLabel} --label collectd_docker_task=${taskLabel}" +
" --name ${containerName} --memory=2g") {
sh "rm -rf _/book/*"
sh "gitbook install --gitbook 3.1.1 . "
sh "gitbook build --gitbook 3.1.1 ."
sh "gitbook pdf --gitbook 3.1.1 . _book/OrientDB-Manual.pdf"
}
ansiColor() {
node("worker") {
stage('checkout') {
checkout scm
}

if (!env.BRANCH_NAME.startsWith("PR-")) {
echo "sync generated content to OrientDB site"
lock("label": "memory", "quantity":2) {
docker.image("orientdb/jenkins-slave-rsync:20160503").inside("--label collectd_docker_app=${appNameLabel} --label collectd_docker_task=${taskLabel}" +
" --name ${containerName} --memory=2g -v /home/orient:/home/jenkins:ro") {
sh "rsync -ravh --stats _book/ -e ${env.RSYNC_DOC}/${env.BRANCH_NAME}/"
}
}
} else {
echo "it's a PR, no sync required"
stage("building docs for branch ${env.BRANCH_NAME}") {
withCredentials([
usernamePassword(credentialsId: 'gcr:xander-the-harris-jenkins',
passwordVariable: 'gcr_pass',
usernameVariable: 'gcr_user')
]) {
docker.withRegistry('https://gcr.io', 'gcr:xander-the-harris-jenkins') {
gitbookImage=docker.build('gcr.io/xander-the-harris-jenkins/agent.gitbook')
gitbookImage.push("v${env.BUILD_NUMBER}")
}
}
}

// stage('build the gitbook') {
// gitbookImage.inside($/ -v ${env.WORKSPACE}:/gitbook
// --name ${containerName}/$
// ) {
// // gitbook install --gitbook 3.1.1 .
// // gitbook build --gitbook 3.1.1 .
// // gitbook pdf --gitbook 3.1.1 . _book/OrientDB-Manual.pdf
// echo("good enough")
// }
// stage('archive') {
// archiveArtifacts('*file')
// }
// // if (!env.BRANCH_NAME.startsWith("PR-")) {
// // docker.image(
// // "orientdb/jenkins-slave-rsync:20160503").inside($/
// // --label collectd_docker_app=${appNameLabel} \
// // --label collectd_docker_task=${taskLabel} \
// // --name ${containerName} \
// // --memory=2g \
// // -v /home/orient:/home/jenkins:ro
// // /$
// // ) {
// // echo(
// // sh(label: 'rsync',
// // script: $/
// // rsync -ravh --stats _book/ -e ${env.RSYNC_DOC}/${env.BRANCH_NAME}/
// // /$,
// // returnStdout: true
// // )
// // )
// // }
// // } else {
// // echo("it's a PR, no sync required")
// // }
// }
}
}


2 changes: 1 addition & 1 deletion Tutorial-Clusters.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CLUSTERS:

## Understanding Clusters

By default, OrientDB creates one cluster for each [Class](Concepts.md#class). Starting from v2.2, OrientDB automatically creates multiple clusters per each class (the number of clusters created is equals to the number of CPU's cores available on the server) to improve using of parallelism. All records of a class are stored in the same cluster, which has the same name as the class. You can create up to 32,767 (or, 2<sup>15</sup> - 1) clusters in a database. Understanding the concepts of classes and clusters allows you to take advantage of the power of clusters in designing new databases.
By default, OrientDB creates one cluster for each [Class](Concepts.md#class). Starting from v2.2, OrientDB automatically creates multiple clusters per each class (the number of clusters created is equal to the number of CPU cores available on the server) to improve parallel processing. All records of a class are stored in the same cluster, which has the same name as the class. You can create up to 32,767 (or, 2<sup>15</sup> - 1) clusters in a database. Understanding the concepts of classes and clusters allows you to take advantage of the power of clusters in designing new databases.

While the default strategy is that each class maps to one cluster, a class can rely on multiple clusters. For instance, you can spawn records physically in multiple locations, thereby creating multiple clusters.

Expand Down
4 changes: 2 additions & 2 deletions Tutorial-Relationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ What happens here is a `JOIN`. That is, the contents of two tables are joined to

### 1-to-Many Relationship

Given that Relational databases have no concept of a collections, the `Customer` table cannot have multiple foreign keys. The only way to manage a 1-to-Many Relationship in databases of this kind is to move the Foreign Key to the `Address` table.
Given that Relational databases have no concept of collections, the `Customer` table cannot have multiple foreign keys. The only way to manage a 1-to-Many Relationship in databases of this kind is to move the Foreign Key to the `Address` table.

![RDBMS 1-to-N](http://www.orientdb.org/images/rdbms-1toN.jpg)

Expand Down Expand Up @@ -88,7 +88,7 @@ When you have `Invoice` linked to `Customer`, then you have a pointer to `Custom

### Types of Relationships

In 1-to-N relationships, OrientDB handles the relationship as a collection of Record ID's, as you would when managing objects in memory.
In 1-to-N relationships, OrientDB handles the relationship as a collection of Record IDs, as you would when managing objects in memory.

OrientDB supports several different kinds of relationships:

Expand Down
2 changes: 1 addition & 1 deletion Tutorial-Run-the-console.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ search:
<!-- proofread 2015-11-26 SAM -->
# Running the OrientDB Console

Once the server is running there are various methods you can use to connect to your database server to an individual databases. Two such methods are the [Network Binary](Network-Binary-Protocol.md) and [HTTP/REST](OrientDB-REST.md) protocols. In addition to these OrientDB provides a command-line interface for connecting to and working with the database server.
Once the server is running there are various methods you can use to connect to your database server to an individual database. Two such methods are the [Network Binary](Network-Binary-Protocol.md) and [HTTP/REST](OrientDB-REST.md) protocols. In addition to these OrientDB provides a command-line interface for connecting to and working with the database server.


## Starting the OrientDB Console
Expand Down