Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Use an existing database and its forests #114

Closed
dmcassel opened this issue Jul 1, 2013 · 5 comments
Closed

Use an existing database and its forests #114

dmcassel opened this issue Jul 1, 2013 · 5 comments

Comments

@dmcassel
Copy link
Collaborator

dmcassel commented Jul 1, 2013

If you specify the content-db property and point to an existing database, Roxy will successfully use that database with the app servers. However, if the forests don't match Roxy's naming convention, it will create new ones and attach them, in addition to the forests that were already there.

Add a property called external-content-db={true,false}. Default is false. If set to true:

  • bootstrapping will expect to find a database with the name indicated by the content-db property. Bootstrapping will fail if this database does not exist.
  • bootstrapping will not attach, detach, or otherwise mess with the forests attached to the database.
  • bootstrapping will still apply other configuration changes to the content database.
  • wipe will not remove the database or its forests.
@adamfowleruk
Copy link

+1 on this. Caught me out on a few occasions.

@ameydhavle
Copy link

+1

1 similar comment
@hutchkintoot
Copy link

+1

@grtjn
Copy link
Contributor

grtjn commented Aug 8, 2014

Relates to #245. A way around is to remove the database definition from ml-config, and hard-code the appropriate (existing) database name in ml-config in references from app-server etc. Haven't tested, but should in principle be possible..

@grtjn
Copy link
Contributor

grtjn commented Jun 13, 2017

No need to hard-code content-db name in ml-config. Just update build.properties, along with deleting the database section from ml-config. See also https://github.com/marklogic/roxy/wiki/Using-an-existing-Content-Database

@grtjn grtjn closed this as completed Jun 13, 2017
@grtjn grtjn self-assigned this Jun 13, 2017
@grtjn grtjn added this to the July 2017 milestone Jun 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants