You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "V.Narayanan (JIRA)" <ji...@apache.org> on 2007/07/19 13:18:04 UTC

[jira] Commented: (DERBY-2954) Add commands to NetworkServerControl for interacting with the replication functionality

    [ https://issues.apache.org/jira/browse/DERBY-2954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513880 ] 

V.Narayanan commented on DERBY-2954:
------------------------------------

All user interaction with the replication functionality 
will be through commands to NetworkServerControl. 
The following commands will be supported.

Start Master 	
java org.apache.derby.drda.NetworkServerControl replication -startmaster -db=<dbname> -url=<slaveurl:port>

Start Slave 	
java org.apache.derby.drda.NetworkServerControl replication -startslave -db=<dbname> -port=<port>

Failover (slave only) 	
java org.apache.derby.drda.NetworkServerControl replication -failover -db=<dbname>

Stop Replication (master only) 	
java org.apache.derby.drda.NetworkServerControl replication -stop -db=<dbname>

The start and failover commands are restricted to the same machine that the database 
resides. Hence, master commands are restricted to the machine that has the master 
database, while slave commands are restricted to the machine that has the slave database. 
The stop replication command can only be issued on the master. The master will in turn 
send a stop replication message to the slave.

Authorization and Authentication

The commands above apply only to the database specified, and only the database owner 
will be authorized to execute them. This implies that authentication is required. 
Authentication will follow the same strategy as authentication for other NetworkServerControl 
commands. Specifically, the approach that will be chosen for DERBY-2109 will be used for 
replication as well. 

> Add commands to NetworkServerControl for interacting with the replication functionality
> ---------------------------------------------------------------------------------------
>
>                 Key: DERBY-2954
>                 URL: https://issues.apache.org/jira/browse/DERBY-2954
>             Project: Derby
>          Issue Type: Sub-task
>            Reporter: V.Narayanan
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.