7 years agoNick Poole commented on change 20332 (configure_new_server.sh, line 45) for perforce-software-sdp:dev This isn't true: I think you mean net.autotune=1 | ||
2 comments | ||
7 years agoNick Poole committed change 23298 into perforce_software-jam:main Updating Jam source The changes here include a simplified Windows build process: the makefile now has 2 MSVC sections, one 32-bit the other 64-bit. | ||
7 years agoNick Poole committed change 23121 into Adding a couple of example 2FA triggers See README.txt for more information | ||
8 years agoNick Poole committed change 22290 into perforce_software-p4:main Updating P4/P4API build instructions now that OpenSSL is required in 17.1 | ||
9 years agoNick Poole commented on change 16546 for perforce-software-p4dctl:r15.2 Hi @lbarbier, I see your point: if the server is at the end of a chain of servers, then uncompressed journals are just consuming disk space. I'm glad ...Hi @lbarbier, I see your point: if the server is at the end of a chain of servers, then uncompressed journals are just consuming disk space. I'm glad to hear that the 'p4 admin checkpoint' is working in your environment. I'm actually testing out a change at would use that logic for and P4D, falling back to calling 'p4d -jc' if the 'p4 admin' command failed. The behaviour you're seeing with rotations starting at the master, and checkpoints being scheduled is by design. The journal number is stored in the counters tables, and replicated as part of the journal, so in order to ensure that journals and checkpoints match up between replicas, the journal rotation on the master causes journal rotations on the replicas. If you rotated the journal on just a replica, it would have a different journal number to the master. If the journal numbers somehow got out of sync, and you had some sort of failure that required you to restore the master, you would have no reference point to restore and restart the replica. I agree that this could be made better, possibly by improving visibility of which replicas were scheduled to checkpoint, etc, but journal rotations are relatively cheap, so even if you rotated before you scheduled the checkpoint, and again after, I believe the overall time that the process will take will be about the same. I'll update the review tomorrow with an option to compress the journal. I'm also going to move it into the main branch: I'll need to backport if I it's to be included in a patch release. I'll also include the 'p4 admin checkpoint/journal' calls that I mentioned (the only real difference to your shelf is that they are on the P4D class: I'm not convinced that we need another server type, and I'd rather not add unnecessary configuration options). Thanks, Nick « | ||
9 years agoNick Poole updated files in review 16547 for | ||
9 years agoNick Poole updated files in review 16547 for | ||
9 years agoNick Poole commented on change 16546 for Hi @lbarbier, Thanks for your continued work on this. I've been thing a bit more about both cases, and I think we might want to consider a different d ...Hi @lbarbier, Thanks for your continued work on this. I've been thing a bit more about both cases, and I think we might want to consider a different direction: I propose that we don't add an option to rotate journals at all; instead, just change the '-z' flag to '-Z'. I still think that the option to enable/disable the flag is a great idea, and this is very similar to your original review. As for supporting replica Perforce Servers, I think that running 'p4 admin checkpoint' from p4dctl might be problematic: p4dctl needs to be configured to run the command as a privileged user, potentially with authentication. Unlike the P4D::Stop() implementation, there's no good fallback for this at the moment. I think we could adapt both P4D::Checkpoint() and P4D::Journal() to attempt to execute the 'p4 admin' commands, and fall back to calling 'p4d -jc/-jj'. If we added some error handling to detect the replica error message we could return a more useful message to the user. To improve the experience even further, I'll log an enhancement request for 'p4d -jc' against a replica to schedule a checkpoint, so that if 'p4dctl checkpoint' falls back to running that command against a replica, it will still succeed. « | ||
9 years agoNick Poole commented on change 16546 for Hi @lbarbier, The issue with compressing only the journal (not the checkpoint) is that there's no p4d flag to do that. We could compress the rotated j ...Hi @lbarbier, The issue with compressing only the journal (not the checkpoint) is that there's no p4d flag to do that. We could compress the rotated journal afterwards, or uncompress the checkpoint, but I think it's an inadvisable enough case that we don't need to worry about it. I'll go ahead and make the changes in the review; I didn't want to go ahead without checking first, in case I caused offence. As for checkpointing replica servers, that could be tricky, but it should be possible to identify if a server is acting as a replica and do something appropriate. I'll do some research and let you know what I come up with. « | ||
9 years agoNick Poole commented on change 16546 for perforce-software-p4dctl:main Hi @lbarbier First off, thank you for contributing your solution back to the community. Hi @lbarbier First off, thank you for contributing your solution back to the community. The issue you've encountered is that 'p4dctl checkpoint' is calling 'p4d -z -jc', which is compressing the checkpoint and the rotated journal, breaking replication. But I believe that you'd also encounter the same problem if you ran 'p4dctl journal', which rotates the journal by calling 'p4d -z -jj'. There are two solutions to this problem:
I think there are probably use cases for both, so rather than providing a single compression on/off we should add two options: In this the case that CompressCheckpoint == true and CompressJournal == true, pass '-z'. What do you think? If you like, I can add my suggested changes to the review for you to test out, or if you'd prefer to make the change, I'll be happy to review it. | ||
10 years agoNick Poole committed change 13624 into Adding check_p4: a Nagios plugin for Perforce | ||
14 years agoNick Poole committed change 7884 into Adding a set of example scripts for tweeting changes. | ||
16 years agoNick Poole committed change 7363 into Updated proxyfill.py based on Pascal Soccard's recomendations. Now uses proper transfer method. | ||
16 years agoNick Poole committed change 7332 into Preliminary version of AuthCheck A multi-stage authentication application for use as an authentication trigger. Currently only tested against an L...DAP server without TLS and against a flat file with plain-text passwords. (Under Windows XP). ToDo: Test against TLS enabled LDAP. Test against AD's LDAP interface. Test build on *nix. Add MD5 hashed flat file mode. Add DB modes (SQLite, MySQL, etc). « | ||
16 years agoNick Poole committed change 6513 into Modified p4authenticate.c to use the Microsoft LDAP API when WIN32 is defined, and added LDAP_DEPRECATED flag for building with current versions of Op...enLDAP when WIN32 is not defined. Also added nice big generic disclaimer. Building under Windows (with Visual Studio 2005): (first rename to *.cpp) c:\>cl /EHs p4authenticate.cpp /DWIN32 /link Wldap32.Lib Building under *nix (with G++): $ g++ -o LDAPauth p4authenticate.c -lldap « | ||
17 years agoNick Poole committed change 6426 into Rename/Move: From: //guest/nick_poole/proxyfill.py To: //guest/nick_poole/scripts/proxyfill.py | ||
17 years agoNick Poole committed change 6425 into Added initial revision of proxyfill.py Fills the P4P cache, changelist by changelist. | ||
Change | User | Description | Created | ||
---|---|---|---|---|---|
16586 | Nick Poole | Making a few minor updates to lberbier's original review: 1. enabled compression now ca...uses the -Z flag to be used instead of -z (compressing journals can cause issues in replicated environments) 2. some naming/syntax tweaks (for crossproduct consistency) #review-16547 « |
9 years ago | View Review | |
8240 | Nick Poole | Shelving JournalReader SQL improvements: - index creation support - improved logging o...f SQLExceptions « |
12 years ago | Request Review |
Adjust when notifications are sent to you about reviews that you're associated with (as an author, reviewer, project member or moderator).