Michael Mirman
2017-02-23 22:48:08 UTC
We swap a commit server with a standby replica on a monthly basis (controlled fail-over).
When we start any server, we use the -In option, which specifies the server id.
(We also write P4ROOT/serverid file, but it's more for an assertion check.)
So, when we fail over, we have to swap those id's. Say, if your commit server is called Master and replica is Replica, you shut down both, and then restart with the swapped id's in the -In option.
Does it make sense?
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/li
When we start any server, we use the -In option, which specifies the server id.
(We also write P4ROOT/serverid file, but it's more for an assertion check.)
So, when we fail over, we have to swap those id's. Say, if your commit server is called Master and replica is Replica, you shut down both, and then restart with the swapped id's in the -In option.
Does it make sense?
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
Behalf Of Sean Houghton
Sent: Thursday, February 23, 2017 5:35 PM
Subject: [p4] Converting commit server to replica without checkpoint?
Posted on behalf of forum user 'Sean Houghton'.
I'm setting up commit and replica servers and I would like to swap their
roles automatically on a schedule. Stopping the old commit server and
restarting
the replica as the new commit server works, but when I try to start the old
commit server as a replica I get errors about it still being a commit-server.
I'm assuming this is because the "p4 server" definition still
includes "Services commit-server" locally (the services have been
swapped in the new commit server's database).
I know I could take a synchronous checkpoint on the new commit server to
seed
the new replica, as mentioned here
[http://answers.perforce.com/articles/KB/2495] , but that could take hours
or
days. Is there any way to convert the old commit server into a functional
replica without causing a huge service outage? I could introduce a third
replica
and take an "offline" checkpoint there, but that just makes things
more complicated to orchestrate.
I'm using P4NAME to control replication configuration which has been
pre-configured for each server to function as either commit or replica
servers.
server_1��|���� This server is configured as a
type of commit-server. Database and librarian replication flags have been
ignored.
server_1��| Perforce Server starting...
server_1��|���� 2017/02/23 19:59:10 pid 45
server_1��|���� Pull only allowed on replica
servers.
--
http://forums.perforce.com/index.php?/topic/5192-converting-commit-
server-to-replica-without-checkpoint
_______________________________________________Behalf Of Sean Houghton
Sent: Thursday, February 23, 2017 5:35 PM
Subject: [p4] Converting commit server to replica without checkpoint?
Posted on behalf of forum user 'Sean Houghton'.
I'm setting up commit and replica servers and I would like to swap their
roles automatically on a schedule. Stopping the old commit server and
restarting
the replica as the new commit server works, but when I try to start the old
commit server as a replica I get errors about it still being a commit-server.
I'm assuming this is because the "p4 server" definition still
includes "Services commit-server" locally (the services have been
swapped in the new commit server's database).
I know I could take a synchronous checkpoint on the new commit server to
seed
the new replica, as mentioned here
[http://answers.perforce.com/articles/KB/2495] , but that could take hours
or
days. Is there any way to convert the old commit server into a functional
replica without causing a huge service outage? I could introduce a third
replica
and take an "offline" checkpoint there, but that just makes things
more complicated to orchestrate.
I'm using P4NAME to control replication configuration which has been
pre-configured for each server to function as either commit or replica
servers.
server_1��|���� This server is configured as a
type of commit-server. Database and librarian replication flags have been
ignored.
server_1��| Perforce Server starting...
server_1��|���� 2017/02/23 19:59:10 pid 45
server_1��|���� Pull only allowed on replica
servers.
--
http://forums.perforce.com/index.php?/topic/5192-converting-commit-
server-to-replica-without-checkpoint
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/li