Bug #24584 | ServerPort + PortNumber marked as OBSOLETE in manual | ||
---|---|---|---|
Submitted: | 25 Nov 2006 11:33 | Modified: | 3 Nov 2009 18:01 |
Reporter: | Mikael Ronström | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S3 (Non-critical) |
Version: | mysql-5.1 | OS: | Any |
Assigned to: | Magnus Blåudd | CPU Architecture: | Any |
Tags: | 5.0+5.1 |
[25 Nov 2006 11:33]
Mikael Ronström
[25 Nov 2006 12:06]
Jon Stephens
ServerPort and PortNumber parameters were marked as OBSOLETE on instructions from the Cluster developers. I'm changing the category of this bug to Cluster and setting Calvin to lead while you lot sort this out, then you can let me know what you decide. Thanks.
[3 Nov 2009 10:13]
Magnus Blåudd
Examining this in MySQL Cluster 6.3 I find: 1) The PortNumber for an individual connection will not be used. In fact it will be overwritten with a calculated value and a warning printed to ndbout. 2) The value will be calulated as: a) if either node is a MGM node, its PortNumber will be used since it's already a server port and also well known. b) use ServerPort of the node ie. "[DB] ServerPort=xxx"(this is the port to configure in the firewall) c) use PortNumber from the DEFAULT section. ie "[DB DEFAULT] PortNumber=xxx" (probably also "[DB] PortNumber=xxx") and increase this value with one for each connection. This is referred to as the "old way" and should not be used (or documented?). d) If none of the above, set PortNumber of the connection to 0 and thus use "dynamic ports" which is the preferred way and thus the default if nothing has been specified. This means that to be able to open ports in a firewall, one should use [DB [DEFAULT]] ServerPort=xxx and then open port xxx for incoming connections from API nodes. The connection from DB to MGM will always be done to the ndb_mgmd's management port so outgoing connections to that should be allowed. Will mark PortNumber for TCP, SHM and SCI as deprecated.
[3 Nov 2009 10:27]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/89087
[3 Nov 2009 11:16]
Magnus Blåudd
Pushed to 6.3 and 7.0.10
[3 Nov 2009 18:01]
Jon Stephens
Documented bugfix in the NDB-6.3.29 and 7.0.10 changelogs as follows: Deprecation and usage information obtain from ndb_config regarding the PortNumber and ServerPort configuration parameters was improved. Also updated Manual concerning these parameters using info from Magnus. Closed.