Commit graph

32 commits

Author SHA1 Message Date
stewart@mysql.com
336f4cc808 Fixes for: use initial mgm connection as transporter connection 2005-02-24 17:57:22 +11:00
stewart@mysql.com
e88eba65a7 Use the mgm connection used for fetching configuration as a transporter. 2005-02-23 21:07:22 +11:00
tomas@poseidon.ndb.mysql.com
1faef719d5 TransporterRegistry.hpp:
corrected spelling
2005-02-17 10:49:22 +01:00
tomas@poseidon.ndb.mysql.com
7a057433e1 added mutex lock for "get config" 2005-02-17 10:39:54 +01:00
tomas@poseidon.ndb.mysql.com
a3a1d50a72 removed NdbMgmHandle from TransporterRegistry constructor
changed to set NdbMgmHandle from IPPConfig, and use info from configuration, instead of mgm handle from config retrieval
2005-02-16 20:37:14 +01:00
stewart@mysql.com
196def91b3 WL2278 Dynamic ports - Impl 6, "deal with mgm server restart and multiple mgm servers"
- when connecting to a mgm server as a transporter, create a NdbMgmHandle
  - over this mgm handle, report the dynamic ports
  - then turn it into a transporter
- this will re-report dynamic ports to mgmds when they restart (as we'll have to
set up our transporter again). This will also report it to all mgmds (as we'll
have transporters to all of them).
2005-02-11 15:43:43 +11:00
stewart@mysql.com
e795feca68 Impl5 of WL2278 - dynamic port allocation for cluster nodes
Treat the management server specially.

It should always be the server in a transporter as we then have a known
port to connect to on node restart.

allows a mgm connection (i.e. to the management server port, our known port)
to be transformed into a transporter connection.

Also, clean up the struct TransporterConfiguration (used to be a struct for
each transporter type. now there's just one)
2005-02-10 00:11:21 +11:00
stewart@mysql.com
0b24883ee4 Merge mysql.com:/home/stewart/Documents/MySQL/5.0/ndb
into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-ports-impl5
2005-02-01 11:45:05 +11:00
tomas@poseidon.ndb.mysql.com
e8090fc224 Merge 2005-01-28 00:47:41 +01:00
tomas@poseidon.ndb.mysql.com
732d1a5e81 Bug#8167 signal usage clash between mysql server and ndb shared memory
added shared memory config parameter, signum for use in signalling
    added global variable for holdign signum to be used for shared memory connection
    only fiddle with signals if it is set
    simplified common ndb client option handling
2005-01-28 00:42:41 +01:00
stewart@mysql.com
2a15368676 Distinguish between "real" ports and those that can be negative (dynamic).
(Suggested by Tomas Ulin as part of review for WL2278)
2005-01-14 15:42:11 +11:00
stewart@mysql.com
ac28b470ee Impl4 of WL2278 - Dynamic port allocation of cluster nodes
When a node restarts it starts over again with fetching the configuration
-  It is not sure that it can use the "old dynamically allocated port number" again.
-  It should however try to reuse the old one, if not possible it should
allocate a new one. One has to be able to distinguish between portnumbers
specified originally in the config, and ones that has been dynamically added
(the latter may be changed if "busy", but the first cannot be changed).

We use negative portnumbers for ports that are ok to change.
2005-01-12 18:13:54 +11:00
joreland@mysql.com
fe8f4ab012 merge 2005-01-01 14:01:37 +01:00
stewart@mysql.com
dc103d9418 Impl 2 of WL2278 - Dynamic port allocation of cluster nodes.
In "client connect thread", let the client read the port to connect to using
ndb_mgm_get_connection_int_parameter.

The request for the port is resent on every connect attempt.
2004-12-23 16:23:32 +11:00
tomas@poseidon.ndb.mysql.com
09dccee098 changed name of g_eventLogger so it can be used in TransporterRegistry and is the same as in the kernel 2004-12-22 16:29:01 +01:00
tomas@poseidon.ndb.mysql.com
78ce178559 added configuration hostnames to SHM config struct
use configured hostnames for SHM transporter setup
2004-12-22 07:20:01 +01:00
stewart@mysql.com
6cd660dc1a Merge 5.0-ndb into local, resolve conflicts 2004-12-20 11:32:08 +11:00
joreland@mysql.com
dc3d133057 merge 2004-12-16 21:55:50 +01:00
stewart@mysql.com
b0c03011d0 Merge mysql.com:/home/stewart/Documents/MySQL/5.0/ndb
into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-port
2004-12-16 11:19:12 +11:00
stewart@mysql.com
a09a82290b Further work on WL2278
Add calls to mgmd after setting up connections.
(not fully functional yet, checkin for pull)
2004-12-16 11:17:27 +11:00
joreland@mysql.com
50d6b23cad ndb - fix protection wrt shm 2004-12-14 08:26:53 +01:00
joreland@mysql.com
334bb337ed ndb - shm transporter benchmark result 2004-12-14 08:10:22 +01:00
joreland@mysql.com
432c12de86 wl1744 - fix compiler problems 2004-11-10 00:13:26 +01:00
mysql@mc04.(none)
f4721210db Hand merge 2004-09-20 14:20:01 +02:00
tomas@poseidon.(none)
89c8365f39 removed different CFG_ defined for connection host names
added support for setting up multiple interfaces
correct connect address for mgmt server
bug, -l flag would be interpreted as connectstring
added flag to remove all node id checks
changed automatic allocation of ports somewhat
2004-09-16 23:36:13 +00:00
mikael@mc04.(none)
72017f8dd2 logging_ok:
Logging to logging@openlogging.org accepted
SCI_Transporter.hpp, SCI_Transporter.cpp:
  Major fix-up of SCI Transporter, fixed so that it works with single card, fixed wrap around, added lots of DBUG statements, merged with new transporter handling
TransporterRegistry.cpp:
  Some fixes for wrap around needed plus DBUG handling
TCP_Transporter.hpp, TCP_Transporter.cpp:
  Added DBUG statements
SHM_Transporter.hpp, SHM_Transporter.cpp:
  Fixed SHM Transporter
SHM_Buffer.hpp:
  Fixed SHM Buffer to handle wrap around properly
IPCConfig.cpp:
  Fixed up config of SCI
SocketServer.cpp:
  Added DBUG support for SocketServer threads
ConfigInfo.cpp:
  Config changes for SCI
TransporterDefinitions.hpp, mgmapi_config_parameters.h:
  SCI fixes
Makefile.am, type_ndbapitools.mk.am, type_ndbapitest.mk.am:
  Added SCI library path to Makefiles
configure.in:
  Fixed small bug with shared mem and sci together in configure
acinclude.m4:
  Added possibility of providing SCI library path in confgure
2004-09-15 20:41:49 +02:00
mronstrom@mysql.com
a8988d687d Correction + move of code to NDB_DEBUG_FULL from VM_TRACE 2004-08-09 17:51:37 +02:00
tomas@poseidon.ndb.mysql.com
a99f5c423c fixed compile of shm transporter 2004-06-29 14:56:02 +00:00
tomas@poseidon.bredbandsbolaget.se
26108724bf wl 1748 2004-06-24 12:18:40 +00:00
tomas@poseidon.bredbandsbolaget.se
efa105bca7 WL 1748 2004-06-23 00:48:07 +00:00
tomas@mc05.(none)
18f6340f63 introduced ndb_global.h/my_global.h to replace sytem lib includes e.g. stdio, stdlib 2004-05-07 08:39:42 +02:00
magnus@neptunus.(none)
5b3aec2b90 Initial revision of NDB Cluster files 2004-04-14 10:53:21 +02:00