You can subscribe to this list here.
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
(19) |
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
(12) |
Feb
(1) |
Mar
(4) |
Apr
(4) |
May
(32) |
Jun
(12) |
Jul
(11) |
Aug
(1) |
Sep
(6) |
Oct
(3) |
Nov
|
Dec
(10) |
2012 |
Jan
(11) |
Feb
(1) |
Mar
(3) |
Apr
(25) |
May
(53) |
Jun
(38) |
Jul
(103) |
Aug
(54) |
Sep
(31) |
Oct
(66) |
Nov
(77) |
Dec
(20) |
2013 |
Jan
(91) |
Feb
(86) |
Mar
(103) |
Apr
(107) |
May
(25) |
Jun
(37) |
Jul
(17) |
Aug
(59) |
Sep
(38) |
Oct
(78) |
Nov
(29) |
Dec
(15) |
2014 |
Jan
(23) |
Feb
(82) |
Mar
(118) |
Apr
(101) |
May
(103) |
Jun
(45) |
Jul
(6) |
Aug
(10) |
Sep
|
Oct
(32) |
Nov
|
Dec
(9) |
2015 |
Jan
(3) |
Feb
(5) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(9) |
Aug
(4) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
|
2
(1) |
3
(12) |
4
(2) |
5
(2) |
6
(13) |
7
(2) |
8
(1) |
9
(7) |
10
(7) |
11
(7) |
12
(2) |
13
(9) |
14
(11) |
15
(2) |
16
(2) |
17
(3) |
18
(4) |
19
(1) |
20
(7) |
21
(3) |
22
|
23
|
24
(7) |
25
(5) |
26
(5) |
27
(2) |
28
(1) |
29
|
30
|
31
|
|
|
|
|
|
From: Koichi S. <koi...@gm...> - 2014-03-20 08:19:48
|
What happens if you restart all the components? --- Koichi Suzuki 2014-03-20 14:07 GMT+09:00 Juned Khan <jkh...@gm...>: > Hi koichi, > > I have already tried to reload but still its giving me same error. > > postgres=# SELECT pgxc_pool_reload(); > pgxc_pool_reload > ------------------ > t > (1 row) > > > koichi=# alter table t1 add node (datanode3); > ERROR: Failed to get pooled connections > > > Although i am able to connect directly on datanode3. > > Please suggest. > > > > On Thu, Mar 20, 2014 at 6:26 AM, Koichi Suzuki <koi...@gm...> > wrote: >> >> Sorry, made a silly reply. >> >> Please try SELECT pgxc_pool_reload(). Documentation will be found at >> >> http://postgres-xc.sourceforge.net/docs/1_1/functions-admin.html#FUNCTIONS-ADMIN-SET >> >> Good luck. >> --- >> Koichi Suzuki >> >> >> 2014-03-19 20:56 GMT+09:00 Juned Khan <jkh...@gm...>: >> > Hi koichi, >> > >> > Having little bit issue. >> > New datanode is added successfully and even database structure is copied >> > on new datanode(i have added datanode3). >> > >> > But as tables are empty, i am just trying to add new datanode using >> > below >> > command >> > >> > >> > koichi=# alter table t1 add node (datanode3); >> > ERROR: Failed to get pooled connections >> > >> > But as you suggested i tried to clean the connection. >> > >> > postgres=# CLEAN CONNECTION TO COORDINATOR (coord1,coord2) FOR koichi; >> > CLEAN CONNECTION >> > >> > postgres=# CLEAN CONNECTION TO NODE (datanode1,datanode2,datanode3) for >> > database koichi; >> > CLEAN CONNECTION >> > >> > But still its giving me same error, is there any other solution for this >> > problem? >> > >> > Regards, >> > Juned khan >> > >> > >> > >> > On Sat, Mar 15, 2014 at 11:59 AM, Juned Khan <jkh...@gm...> >> > wrote: >> >> >> >> Hi Koichi, >> >> >> >> Thanks for your information, >> >> i just tried with stop and start components and it worked. >> >> >> >> This link will help me to fix future issues. And i ll keep in mind >> >> about that documentation bug. >> >> >> >> >> >> >> >> >> >> On Sat, Mar 15, 2014 at 3:56 AM, Koichi Suzuki <koi...@gm...> >> >> wrote: >> >>> >> >>> pgxc_ctl command "add datanode master" should run all the necessary >> >>> clean_connection calls. >> >>> >> >>> Try to run clean_connection SQL command (specific to XC) as seen in >> >>> http://postgres-xc.sourceforge.net/docs/1_1/sql-cleanconnection.html >> >>> >> >>> I found a document bug in the example CLEAN CONNECTION TO COORDINATOR >> >>> coord1,coord2 FOR DATABASEname; >> >>> >> >>> You should enclose set of node names with (). >> >>> >> >>> Regards; >> >>> --- >> >>> Koichi Suzuki >> >>> >> >>> >> >>> 2014-03-14 5:59 GMT+00:00 Juned Khan <jkh...@gm...>: >> >>> > Koichi=# alter table t1 add node (datanode3); >> >>> > >> >>> > ERROR: Failed to get pooled connections >> >>> > CONTEXT: SQL statement "EXECUTE DIRECT ON (coord3) 'SELECT >> >>> > pg_catalog.pg_try_advisory_xact_lock_shared(65535, 0)'" >> >>> > >> >>> > >> >>> > >> >>> > On Fri, Mar 14, 2014 at 11:20 AM, Juned Khan <jkh...@gm...> >> >>> > wrote: >> >>> >> >> >>> >> Hi Masataka, Koichi, >> >>> >> >> >>> >> New datanode is successfully added and all components are running.i >> >>> >> have >> >>> >> small doubt. >> >>> >> >> >>> >> As i just added new datanode so , will existing database >> >>> >> automatically >> >>> >> copied >> >>> >> on this datanode or i have to create and import it manually from >> >>> >> another >> >>> >> datanode ? >> >>> >> >> >>> >> As per that video, we need to just fire alter query just like : >> >>> >> alter table t1 add node (datanode3); >> >>> >> is that so ? >> >>> >> >> >>> >> and yeah as of now i am getting Failed to get pooled connections >> >>> >> error. >> >>> >> >> >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> >>> >> ERROR: Failed to get pooled connections >> >>> >> >> >>> >> Please advice. >> >>> >> >> >>> >> >> >>> >> >> >>> >> On Fri, Mar 14, 2014 at 11:03 AM, Juned Khan <jkh...@gm...> >> >>> >> wrote: >> >>> >>> >> >>> >>> Hi Masataka >> >>> >>> >> >>> >>> Thanks you very much, commands are working now. >> >>> >>> I thought that element doesn't affect because at initial level >> >>> >>> it was not showing any error. >> >>> >>> >> >>> >>> But thanks a lot, just fixed another same kind of problems. ;) >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> On Fri, Mar 14, 2014 at 10:40 AM, Masataka Saito >> >>> >>> <pg...@gm...> >> >>> >>> wrote: >> >>> >>>> >> >>> >>>> coordMasterServers defines 2 nodes, but coordSpecificExtraConfig >> >>> >>>> and >> >>> >>>> coordSpecificExtraPgHba have 4 elements. >> >>> >>>> >> >>> >>>> On 14 March 2014 13:51, Juned Khan <jkh...@gm...> wrote: >> >>> >>>> > Hi Masataka, >> >>> >>>> > >> >>> >>>> > Please find the attachment. i have attached my pgxc_ctl.conf >> >>> >>>> > >> >>> >>>> > see my pastebin link : http://pastebin.com/n35QkmpK >> >>> >>>> > >> >>> >>>> > >> >>> >>>> > On Fri, Mar 14, 2014 at 10:18 AM, Juned Khan >> >>> >>>> > <jkh...@gm...> >> >>> >>>> > wrote: >> >>> >>>> >> >> >>> >>>> >> Hi Masataka, >> >>> >>>> >> >> >>> >>>> >> Please find the attachment. i have attached my pgxc_ctl.conf >> >>> >>>> >> >> >>> >>>> >> >> >>> >>>> >> On Thu, Mar 13, 2014 at 11:39 PM, Masataka Saito >> >>> >>>> >> <pg...@gm...> >> >>> >>>> >> wrote: >> >>> >>>> >>> >> >>> >>>> >>> Can you provide your pgxc_ctl.conf? >> >>> >>>> >>> >> >>> >>>> >>> On 14 March 2014 00:31, Juned Khan <jkh...@gm...> >> >>> >>>> >>> wrote: >> >>> >>>> >>> > Hi Masataka, >> >>> >>>> >>> > >> >>> >>>> >>> > Thanks for confirmation. >> >>> >>>> >>> > is there any alternative for me to get this working? >> >>> >>>> >>> > >> >>> >>>> >>> > This can be very problematic with live servers. >> >>> >>>> >>> > >> >>> >>>> >>> > >> >>> >>>> >>> > On Thu, Mar 13, 2014 at 8:56 PM, Masataka Saito >> >>> >>>> >>> > <pg...@gm...> >> >>> >>>> >>> > wrote: >> >>> >>>> >>> >> >> >>> >>>> >>> >> I think there's no problem in your command line. >> >>> >>>> >>> >> >> >>> >>>> >>> >> >> >>> >>>> >>> >> On 13 March 2014 23:05, Juned Khan <jkh...@gm...> >> >>> >>>> >>> >> wrote: >> >>> >>>> >>> >> > Hi Masataka, >> >>> >>>> >>> >> > >> >>> >>>> >>> >> > Its fine but i think i have specified only one element >> >>> >>>> >>> >> > for >> >>> >>>> >>> >> > each >> >>> >>>> >>> >> > parameter. >> >>> >>>> >>> >> > please check my command if it needs any correction >> >>> >>>> >>> >> > >> >>> >>>> >>> >> > >> >>> >>>> >>> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >> >>> >>>> >>> >> > /home/postgres/pgxc/nodes/coord >> >>> >>>> >>> >> > >> >>> >>>> >>> >> > >> >>> >>>> >>> >> > >> >>> >>>> >>> >> > On Thu, Mar 13, 2014 at 7:07 PM, Masataka Saito >> >>> >>>> >>> >> > <pg...@gm...> >> >>> >>>> >>> >> > wrote: >> >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> Sorry. I lead your misunderstanding. >> >>> >>>> >>> >> >> I meant about array style parameters and number of >> >>> >>>> >>> >> >> elements in >> >>> >>>> >>> >> >> each >> >>> >>>> >>> >> >> array. >> >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> For example, you have one coordNames, almost of array >> >>> >>>> >>> >> >> style >> >>> >>>> >>> >> >> parameters >> >>> >>>> >>> >> >> for coordinators except for coordPgHbaEntries -- >> >>> >>>> >>> >> >> coordPorts, >> >>> >>>> >>> >> >> poolerPorts, coordMasterServers, coordMasterDirs, >> >>> >>>> >>> >> >> coordMaxWALSenders, >> >>> >>>> >>> >> >> coordSpecificExtraConfig, coordSpecificExtraPgHba -- >> >>> >>>> >>> >> >> must >> >>> >>>> >>> >> >> have >> >>> >>>> >>> >> >> only >> >>> >>>> >>> >> >> one element. >> >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> That's all I can guess by your description. >> >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> Regards. >> >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> On 13 March 2014 18:07, Juned Khan >> >>> >>>> >>> >> >> <jkh...@gm...> >> >>> >>>> >>> >> >> wrote: >> >>> >>>> >>> >> >> > Hi Masataka, >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > As per that documentation i have provided all those >> >>> >>>> >>> >> >> > parameters >> >>> >>>> >>> >> >> > what else i should add or remove to make that command >> >>> >>>> >>> >> >> > working ? >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > I want to add datanode and coordinator with below >> >>> >>>> >>> >> >> > configuration >> >>> >>>> >>> >> >> > and i think i specified all values as per that >> >>> >>>> >>> >> >> > documentation. >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> >> Coordinator Master: >> >>> >>>> >>> >> >> >> Nodename: 'coord3', port: 20004, pooler port: >> >>> >>>> >>> >> >> >> 20010 >> >>> >>>> >>> >> >> >> MaxWalSenders: (null), Dir: >> >>> >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/coord' >> >>> >>>> >>> >> >> >> ExtraConfig: 'coordExtraConfig', Specific Extra >> >>> >>>> >>> >> >> >> Config: >> >>> >>>> >>> >> >> >> 'none' >> >>> >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' >> >>> >>>> >>> >> >> >> '192.168.1.72/32' >> >>> >>>> >>> >> >> >> '192.168.1.73/32' >> >>> >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >> >>> >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: >> >>> >>>> >>> >> >> >> 'none' >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> Datanode Master: >> >>> >>>> >>> >> >> >> Nodename: 'datanode3', port: 20008 >> >>> >>>> >>> >> >> >> MaxWALSenders: 3, Dir: >> >>> >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/dn_master' >> >>> >>>> >>> >> >> >> ExtraConfig: 'none', Specific Extra Config: >> >>> >>>> >>> >> >> >> 'none' >> >>> >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' >> >>> >>>> >>> >> >> >> '192.168.1.72/32' >> >>> >>>> >>> >> >> >> '192.168.1.73/32' >> >>> >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >> >>> >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: >> >>> >>>> >>> >> >> >> 'none' >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > Please suggest. >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > Regards >> >>> >>>> >>> >> >> > Juned Khan >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > On Thu, Mar 13, 2014 at 1:06 PM, Masataka Saito >> >>> >>>> >>> >> >> > <pg...@gm...> >> >>> >>>> >>> >> >> > wrote: >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> On 12 March 2014 22:43, Juned Khan >> >>> >>>> >>> >> >> >> <jkh...@gm...> >> >>> >>>> >>> >> >> >> wrote: >> >>> >>>> >>> >> >> >> > Hi Koichi,Masataka >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > Successfully added gtm proxy but having issue with >> >>> >>>> >>> >> >> >> > coordinator >> >>> >>>> >>> >> >> >> > and >> >>> >>>> >>> >> >> >> > datanode. >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > Coordinator : >> >>> >>>> >>> >> >> >> > add coordinator master name host port pooler dir >> >>> >>>> >>> >> >> >> > here what value i should use in place of pooler ? >> >>> >>>> >>> >> >> >> > pooler >> >>> >>>> >>> >> >> >> > port >> >>> >>>> >>> >> >> >> > ? >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> pooler port >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 >> >>> >>>> >>> >> >> >> > 20010 >> >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >> >>> >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in coordinator >> >>> >>>> >>> >> >> >> > master >> >>> >>>> >>> >> >> >> > configuration. >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> It is due to misconfigure. In detail, numbers of >> >>> >>>> >>> >> >> >> element >> >>> >>>> >>> >> >> >> for >> >>> >>>> >>> >> >> >> same >> >>> >>>> >>> >> >> >> component are not same. >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 >> >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >> >>> >>>> >>> >> >> >> > ERROR: please specify the working director for the >> >>> >>>> >>> >> >> >> > coordinator >> >>> >>>> >>> >> >> >> > master >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > Datanode : >> >>> >>>> >>> >> >> >> > add datanode master name host port dir >> >>> >>>> >>> >> >> >> > pgxc_ctl add datanode master new node5 20008 >> >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master >> >>> >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in datanode >> >>> >>>> >>> >> >> >> > master >> >>> >>>> >>> >> >> >> > configuration. >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > Does earlier manual installation could be reason >> >>> >>>> >>> >> >> >> > for >> >>> >>>> >>> >> >> >> > this >> >>> >>>> >>> >> >> >> > issue ? >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > P.S: >> >>> >>>> >>> >> >> >> > gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: >> >>> >>>> >>> >> >> >> > '/home/postgres/pgxc/nodes/gtm_pxy' >> >>> >>>> >>> >> >> >> > Coordinator Master: Nodename: 'coord3', port: >> >>> >>>> >>> >> >> >> > 20004, >> >>> >>>> >>> >> >> >> > pooler >> >>> >>>> >>> >> >> >> > port: >> >>> >>>> >>> >> >> >> > 20010, >> >>> >>>> >>> >> >> >> > dir:' /home/postgres/pgxc/nodes/coord' >> >>> >>>> >>> >> >> >> > Datanode Master : Nodename: 'datanode3', port: >> >>> >>>> >>> >> >> >> > 20008, >> >>> >>>> >>> >> >> >> > dir:' >> >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master' >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > please look at my commands if its erroneous >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > Please advice. >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > Regards, >> >>> >>>> >>> >> >> >> > Juned Khan >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > On Wed, Mar 12, 2014 at 11:45 AM, Juned Khan >> >>> >>>> >>> >> >> >> > <jkh...@gm...> >> >>> >>>> >>> >> >> >> > wrote: >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> I tried to add coordinator and datanode manually >> >>> >>>> >>> >> >> >> >> and now it seems everything is messed up. >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> Every component is just stopped working, if i >> >>> >>>> >>> >> >> >> >> kill >> >>> >>>> >>> >> >> >> >> all >> >>> >>>> >>> >> >> >> >> and >> >>> >>>> >>> >> >> >> >> start all again then again its shows everything >> >>> >>>> >>> >> >> >> >> is >> >>> >>>> >>> >> >> >> >> running >> >>> >>>> >>> >> >> >> >> but in that case it takes too long to connect >> >>> >>>> >>> >> >> >> >> dtabase(Psql >> >>> >>>> >>> >> >> >> >> -dkoichi) >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> and at last it just fails to connect to the >> >>> >>>> >>> >> >> >> >> database >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> PGXC Psql -dkoichi >> >>> >>>> >>> >> >> >> >> Selected coord1. >> >>> >>>> >>> >> >> >> >> psql: server closed the connection unexpectedly >> >>> >>>> >>> >> >> >> >> This probably means the server terminated >> >>> >>>> >>> >> >> >> >> abnormally >> >>> >>>> >>> >> >> >> >> before or while processing the request. >> >>> >>>> >>> >> >> >> >> PGXC >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> Please advice. >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> On Wed, Mar 12, 2014 at 4:34 AM, Michael Paquier >> >>> >>>> >>> >> >> >> >> <mic...@gm...> wrote: >> >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> On Wed, Mar 12, 2014 at 4:10 AM, Masataka Saito >> >>> >>>> >>> >> >> >> >>> <pg...@gm...> >> >>> >>>> >>> >> >> >> >>> wrote: >> >>> >>>> >>> >> >> >> >>> > On 11 March 2014 16:42, Juned Khan >> >>> >>>> >>> >> >> >> >>> > <jkh...@gm...> >> >>> >>>> >>> >> >> >> >>> > wrote: >> >>> >>>> >>> >> >> >> >>> >> Hi Masataka, >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> For testing i am tried to get this work added >> >>> >>>> >>> >> >> >> >>> >> manual >> >>> >>>> >>> >> >> >> >>> >> query >> >>> >>>> >>> >> >> >> >>> >> for >> >>> >>>> >>> >> >> >> >>> >> CREATE >> >>> >>>> >>> >> >> >> >>> >> NODE. >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> Now its look like this: >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> postgres=# \q >> >>> >>>> >>> >> >> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20004 >> >>> >>>> >>> >> >> >> >>> >> Selected coord3. >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> postgres=# select * from pgxc_node; >> >>> >>>> >>> >> >> >> >>> >> node_name | node_type | node_port | >> >>> >>>> >>> >> >> >> >>> >> node_host | >> >>> >>>> >>> >> >> >> >>> >> nodeis_primary >> >>> >>>> >>> >> >> >> >>> >> | >> >>> >>>> >>> >> >> >> >>> >> nodeis_preferred | node_id >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >> >>> >>>> >>> >> >> >> >>> >> coord3 | C | 5432 | >> >>> >>>> >>> >> >> >> >>> >> localhost | >> >>> >>>> >>> >> >> >> >>> >> f >> >>> >>>> >>> >> >> >> >>> >> | f >> >>> >>>> >>> >> >> >> >>> >> | 1638403545 >> >>> >>>> >>> >> >> >> >>> >> coord1 | C | 20004 | node3 >> >>> >>>> >>> >> >> >> >>> >> | >> >>> >>>> >>> >> >> >> >>> >> f >> >>> >>>> >>> >> >> >> >>> >> | f >> >>> >>>> >>> >> >> >> >>> >> | 1885696643 >> >>> >>>> >>> >> >> >> >>> >> coord2 | C | 20005 | node4 >> >>> >>>> >>> >> >> >> >>> >> | >> >>> >>>> >>> >> >> >> >>> >> f >> >>> >>>> >>> >> >> >> >>> >> | f >> >>> >>>> >>> >> >> >> >>> >> | -1197102633 >> >>> >>>> >>> >> >> >> >>> >> datanode1 | D | 20008 | node3 >> >>> >>>> >>> >> >> >> >>> >> | >> >>> >>>> >>> >> >> >> >>> >> f >> >>> >>>> >>> >> >> >> >>> >> | f >> >>> >>>> >>> >> >> >> >>> >> | 888802358 >> >>> >>>> >>> >> >> >> >>> >> datanode2 | D | 20009 | node4 >> >>> >>>> >>> >> >> >> >>> >> | >> >>> >>>> >>> >> >> >> >>> >> f >> >>> >>>> >>> >> >> >> >>> >> | f >> >>> >>>> >>> >> >> >> >>> >> | -905831925 >> >>> >>>> >>> >> >> >> >>> >> datanode3 | D | 20008 | node5 >> >>> >>>> >>> >> >> >> >>> >> | >> >>> >>>> >>> >> >> >> >>> >> f >> >>> >>>> >>> >> >> >> >>> >> | f >> >>> >>>> >>> >> >> >> >>> >> | -1894792127 >> >>> >>>> >>> >> >> >> >>> >> (6 rows) >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> >> Here coord3 runs on 5432 which should 20004., >> >>> >>>> >>> >> >> >> >>> >> it >> >>> >>>> >>> >> >> >> >>> >> creates >> >>> >>>> >>> >> >> >> >>> >> problem >> >>> >>>> >>> >> >> >> >>> >> i >> >>> >>>> >>> >> >> >> >>> >> think >> >>> >>>> >>> >> >> >> >>> >> isn't it ? >> >>> >>>> >>> >> >> >> >>> >> >> >>> >>>> >>> >> >> >> >>> > >> >>> >>>> >>> >> >> >> >>> > As far as I know, the local node information >> >>> >>>> >>> >> >> >> >>> > is >> >>> >>>> >>> >> >> >> >>> > not >> >>> >>>> >>> >> >> >> >>> > important >> >>> >>>> >>> >> >> >> >>> > and >> >>> >>>> >>> >> >> >> >>> > it >> >>> >>>> >>> >> >> >> >>> > is not necessary to update. >> >>> >>>> >>> >> >> >> >>> > "pgxc_ctl add" corrects it by "ALTER NODE". >> >>> >>>> >>> >> >> >> >>> CREATE NODE and DROP NODE only run locally. Why >> >>> >>>> >>> >> >> >> >>> not >> >>> >>>> >>> >> >> >> >>> ALTER >> >>> >>>> >>> >> >> >> >>> NODE >> >>> >>>> >>> >> >> >> >>> for >> >>> >>>> >>> >> >> >> >>> consistency? Am I missing smth? >> >>> >>>> >>> >> >> >> >>> -- >> >>> >>>> >>> >> >> >> >>> Michael >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> >> >>> >>>> >>> >> >> >> >> -- >> >>> >>>> >>> >> >> >> >> Thanks, >> >>> >>>> >>> >> >> >> >> Juned Khan >> >>> >>>> >>> >> >> >> >> iNextrix Technologies Pvt Ltd. >> >>> >>>> >>> >> >> >> >> www.inextrix.com >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > >> >>> >>>> >>> >> >> >> > -- >> >>> >>>> >>> >> >> >> > Thanks, >> >>> >>>> >>> >> >> >> > Juned Khan >> >>> >>>> >>> >> >> >> > iNextrix Technologies Pvt Ltd. >> >>> >>>> >>> >> >> >> > www.inextrix.com >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > >> >>> >>>> >>> >> >> > -- >> >>> >>>> >>> >> >> > Thanks, >> >>> >>>> >>> >> >> > Juned Khan >> >>> >>>> >>> >> >> > iNextrix Technologies Pvt Ltd. >> >>> >>>> >>> >> >> > www.inextrix.com >> >>> >>>> >>> >> > >> >>> >>>> >>> >> > >> >>> >>>> >>> >> > >> >>> >>>> >>> >> > >> >>> >>>> >>> >> > -- >> >>> >>>> >>> >> > Thanks, >> >>> >>>> >>> >> > Juned Khan >> >>> >>>> >>> >> > iNextrix Technologies Pvt Ltd. >> >>> >>>> >>> >> > www.inextrix.com >> >>> >>>> >>> > >> >>> >>>> >>> > >> >>> >>>> >>> > >> >>> >>>> >>> > >> >>> >>>> >>> > -- >> >>> >>>> >>> > Thanks, >> >>> >>>> >>> > Juned Khan >> >>> >>>> >>> > iNextrix Technologies Pvt Ltd. >> >>> >>>> >>> > www.inextrix.com >> >>> >>>> >> >> >>> >>>> >> >> >>> >>>> >> >> >>> >>>> >> >> >>> >>>> >> -- >> >>> >>>> >> Thanks, >> >>> >>>> >> Juned Khan >> >>> >>>> >> iNextrix Technologies Pvt Ltd. >> >>> >>>> >> www.inextrix.com >> >>> >>>> > >> >>> >>>> > >> >>> >>>> > >> >>> >>>> > >> >>> >>>> > -- >> >>> >>>> > Thanks, >> >>> >>>> > Juned Khan >> >>> >>>> > iNextrix Technologies Pvt Ltd. >> >>> >>>> > www.inextrix.com >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> -- >> >>> >>> Thanks, >> >>> >>> Juned Khan >> >>> >>> iNextrix Technologies Pvt Ltd. >> >>> >>> www.inextrix.com >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> -- >> >>> >> Thanks, >> >>> >> Juned Khan >> >>> >> iNextrix Technologies Pvt Ltd. >> >>> >> www.inextrix.com >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > -- >> >>> > Thanks, >> >>> > Juned Khan >> >>> > iNextrix Technologies Pvt Ltd. >> >>> > www.inextrix.com >> >>> > >> >>> > >> >>> > >> >>> > ------------------------------------------------------------------------------ >> >>> > Learn Graph Databases - Download FREE O'Reilly Book >> >>> > "Graph Databases" is the definitive new guide to graph databases and >> >>> > their >> >>> > applications. Written by three acclaimed leaders in the field, >> >>> > this first edition is now available. Download your free book today! >> >>> > http://p.sf.net/sfu/13534_NeoTech >> >>> > _______________________________________________ >> >>> > Postgres-xc-general mailing list >> >>> > Pos...@li... >> >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >>> > >> >> >> >> >> >> >> >> >> >> -- >> >> Thanks, >> >> Juned Khan >> >> iNextrix Technologies Pvt Ltd. >> >> www.inextrix.com >> > >> > >> > >> > >> > -- >> > Thanks, >> > Juned Khan >> > iNextrix Technologies Pvt Ltd. >> > www.inextrix.com > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-20 05:07:50
|
Hi koichi, I have already tried to reload but still its giving me same error. postgres=# SELECT pgxc_pool_reload(); pgxc_pool_reload ------------------ t (1 row) koichi=# alter table t1 add node (datanode3); ERROR: Failed to get pooled connections Although i am able to connect directly on datanode3. Please suggest. On Thu, Mar 20, 2014 at 6:26 AM, Koichi Suzuki <koi...@gm...>wrote: > Sorry, made a silly reply. > > Please try SELECT pgxc_pool_reload(). Documentation will be found at > > http://postgres-xc.sourceforge.net/docs/1_1/functions-admin.html#FUNCTIONS-ADMIN-SET > > Good luck. > --- > Koichi Suzuki > > > 2014-03-19 20:56 GMT+09:00 Juned Khan <jkh...@gm...>: > > Hi koichi, > > > > Having little bit issue. > > New datanode is added successfully and even database structure is copied > > on new datanode(i have added datanode3). > > > > But as tables are empty, i am just trying to add new datanode using below > > command > > > > > > koichi=# alter table t1 add node (datanode3); > > ERROR: Failed to get pooled connections > > > > But as you suggested i tried to clean the connection. > > > > postgres=# CLEAN CONNECTION TO COORDINATOR (coord1,coord2) FOR koichi; > > CLEAN CONNECTION > > > > postgres=# CLEAN CONNECTION TO NODE (datanode1,datanode2,datanode3) for > > database koichi; > > CLEAN CONNECTION > > > > But still its giving me same error, is there any other solution for this > > problem? > > > > Regards, > > Juned khan > > > > > > > > On Sat, Mar 15, 2014 at 11:59 AM, Juned Khan <jkh...@gm...> > wrote: > >> > >> Hi Koichi, > >> > >> Thanks for your information, > >> i just tried with stop and start components and it worked. > >> > >> This link will help me to fix future issues. And i ll keep in mind > >> about that documentation bug. > >> > >> > >> > >> > >> On Sat, Mar 15, 2014 at 3:56 AM, Koichi Suzuki <koi...@gm...> > >> wrote: > >>> > >>> pgxc_ctl command "add datanode master" should run all the necessary > >>> clean_connection calls. > >>> > >>> Try to run clean_connection SQL command (specific to XC) as seen in > >>> http://postgres-xc.sourceforge.net/docs/1_1/sql-cleanconnection.html > >>> > >>> I found a document bug in the example CLEAN CONNECTION TO COORDINATOR > >>> coord1,coord2 FOR DATABASEname; > >>> > >>> You should enclose set of node names with (). > >>> > >>> Regards; > >>> --- > >>> Koichi Suzuki > >>> > >>> > >>> 2014-03-14 5:59 GMT+00:00 Juned Khan <jkh...@gm...>: > >>> > Koichi=# alter table t1 add node (datanode3); > >>> > > >>> > ERROR: Failed to get pooled connections > >>> > CONTEXT: SQL statement "EXECUTE DIRECT ON (coord3) 'SELECT > >>> > pg_catalog.pg_try_advisory_xact_lock_shared(65535, 0)'" > >>> > > >>> > > >>> > > >>> > On Fri, Mar 14, 2014 at 11:20 AM, Juned Khan <jkh...@gm...> > >>> > wrote: > >>> >> > >>> >> Hi Masataka, Koichi, > >>> >> > >>> >> New datanode is successfully added and all components are running.i > >>> >> have > >>> >> small doubt. > >>> >> > >>> >> As i just added new datanode so , will existing database > automatically > >>> >> copied > >>> >> on this datanode or i have to create and import it manually from > >>> >> another > >>> >> datanode ? > >>> >> > >>> >> As per that video, we need to just fire alter query just like : > >>> >> alter table t1 add node (datanode3); > >>> >> is that so ? > >>> >> > >>> >> and yeah as of now i am getting Failed to get pooled connections > >>> >> error. > >>> >> > >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; > >>> >> ERROR: Failed to get pooled connections > >>> >> > >>> >> Please advice. > >>> >> > >>> >> > >>> >> > >>> >> On Fri, Mar 14, 2014 at 11:03 AM, Juned Khan <jkh...@gm...> > >>> >> wrote: > >>> >>> > >>> >>> Hi Masataka > >>> >>> > >>> >>> Thanks you very much, commands are working now. > >>> >>> I thought that element doesn't affect because at initial level > >>> >>> it was not showing any error. > >>> >>> > >>> >>> But thanks a lot, just fixed another same kind of problems. ;) > >>> >>> > >>> >>> > >>> >>> > >>> >>> On Fri, Mar 14, 2014 at 10:40 AM, Masataka Saito <pg...@gm... > > > >>> >>> wrote: > >>> >>>> > >>> >>>> coordMasterServers defines 2 nodes, but coordSpecificExtraConfig > and > >>> >>>> coordSpecificExtraPgHba have 4 elements. > >>> >>>> > >>> >>>> On 14 March 2014 13:51, Juned Khan <jkh...@gm...> wrote: > >>> >>>> > Hi Masataka, > >>> >>>> > > >>> >>>> > Please find the attachment. i have attached my pgxc_ctl.conf > >>> >>>> > > >>> >>>> > see my pastebin link : http://pastebin.com/n35QkmpK > >>> >>>> > > >>> >>>> > > >>> >>>> > On Fri, Mar 14, 2014 at 10:18 AM, Juned Khan < > jkh...@gm...> > >>> >>>> > wrote: > >>> >>>> >> > >>> >>>> >> Hi Masataka, > >>> >>>> >> > >>> >>>> >> Please find the attachment. i have attached my pgxc_ctl.conf > >>> >>>> >> > >>> >>>> >> > >>> >>>> >> On Thu, Mar 13, 2014 at 11:39 PM, Masataka Saito > >>> >>>> >> <pg...@gm...> > >>> >>>> >> wrote: > >>> >>>> >>> > >>> >>>> >>> Can you provide your pgxc_ctl.conf? > >>> >>>> >>> > >>> >>>> >>> On 14 March 2014 00:31, Juned Khan <jkh...@gm...> > wrote: > >>> >>>> >>> > Hi Masataka, > >>> >>>> >>> > > >>> >>>> >>> > Thanks for confirmation. > >>> >>>> >>> > is there any alternative for me to get this working? > >>> >>>> >>> > > >>> >>>> >>> > This can be very problematic with live servers. > >>> >>>> >>> > > >>> >>>> >>> > > >>> >>>> >>> > On Thu, Mar 13, 2014 at 8:56 PM, Masataka Saito > >>> >>>> >>> > <pg...@gm...> > >>> >>>> >>> > wrote: > >>> >>>> >>> >> > >>> >>>> >>> >> I think there's no problem in your command line. > >>> >>>> >>> >> > >>> >>>> >>> >> > >>> >>>> >>> >> On 13 March 2014 23:05, Juned Khan <jkh...@gm...> > >>> >>>> >>> >> wrote: > >>> >>>> >>> >> > Hi Masataka, > >>> >>>> >>> >> > > >>> >>>> >>> >> > Its fine but i think i have specified only one element > for > >>> >>>> >>> >> > each > >>> >>>> >>> >> > parameter. > >>> >>>> >>> >> > please check my command if it needs any correction > >>> >>>> >>> >> > > >>> >>>> >>> >> > > >>> >>>> >>> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 > >>> >>>> >>> >> > /home/postgres/pgxc/nodes/coord > >>> >>>> >>> >> > > >>> >>>> >>> >> > > >>> >>>> >>> >> > > >>> >>>> >>> >> > On Thu, Mar 13, 2014 at 7:07 PM, Masataka Saito > >>> >>>> >>> >> > <pg...@gm...> > >>> >>>> >>> >> > wrote: > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> Sorry. I lead your misunderstanding. > >>> >>>> >>> >> >> I meant about array style parameters and number of > >>> >>>> >>> >> >> elements in > >>> >>>> >>> >> >> each > >>> >>>> >>> >> >> array. > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> For example, you have one coordNames, almost of array > >>> >>>> >>> >> >> style > >>> >>>> >>> >> >> parameters > >>> >>>> >>> >> >> for coordinators except for coordPgHbaEntries -- > >>> >>>> >>> >> >> coordPorts, > >>> >>>> >>> >> >> poolerPorts, coordMasterServers, coordMasterDirs, > >>> >>>> >>> >> >> coordMaxWALSenders, > >>> >>>> >>> >> >> coordSpecificExtraConfig, coordSpecificExtraPgHba -- > must > >>> >>>> >>> >> >> have > >>> >>>> >>> >> >> only > >>> >>>> >>> >> >> one element. > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> That's all I can guess by your description. > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> Regards. > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> On 13 March 2014 18:07, Juned Khan <jkh...@gm... > > > >>> >>>> >>> >> >> wrote: > >>> >>>> >>> >> >> > Hi Masataka, > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > As per that documentation i have provided all those > >>> >>>> >>> >> >> > parameters > >>> >>>> >>> >> >> > what else i should add or remove to make that command > >>> >>>> >>> >> >> > working ? > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > I want to add datanode and coordinator with below > >>> >>>> >>> >> >> > configuration > >>> >>>> >>> >> >> > and i think i specified all values as per that > >>> >>>> >>> >> >> > documentation. > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> >> Coordinator Master: > >>> >>>> >>> >> >> >> Nodename: 'coord3', port: 20004, pooler port: > 20010 > >>> >>>> >>> >> >> >> MaxWalSenders: (null), Dir: > >>> >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/coord' > >>> >>>> >>> >> >> >> ExtraConfig: 'coordExtraConfig', Specific Extra > >>> >>>> >>> >> >> >> Config: > >>> >>>> >>> >> >> >> 'none' > >>> >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' > >>> >>>> >>> >> >> >> '192.168.1.72/32' > >>> >>>> >>> >> >> >> '192.168.1.73/32' > >>> >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) > >>> >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: > 'none' > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> Datanode Master: > >>> >>>> >>> >> >> >> Nodename: 'datanode3', port: 20008 > >>> >>>> >>> >> >> >> MaxWALSenders: 3, Dir: > >>> >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/dn_master' > >>> >>>> >>> >> >> >> ExtraConfig: 'none', Specific Extra Config: > 'none' > >>> >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' > >>> >>>> >>> >> >> >> '192.168.1.72/32' > >>> >>>> >>> >> >> >> '192.168.1.73/32' > >>> >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) > >>> >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: > 'none' > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > Please suggest. > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > Regards > >>> >>>> >>> >> >> > Juned Khan > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > On Thu, Mar 13, 2014 at 1:06 PM, Masataka Saito > >>> >>>> >>> >> >> > <pg...@gm...> > >>> >>>> >>> >> >> > wrote: > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> On 12 March 2014 22:43, Juned Khan > >>> >>>> >>> >> >> >> <jkh...@gm...> > >>> >>>> >>> >> >> >> wrote: > >>> >>>> >>> >> >> >> > Hi Koichi,Masataka > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > Successfully added gtm proxy but having issue with > >>> >>>> >>> >> >> >> > coordinator > >>> >>>> >>> >> >> >> > and > >>> >>>> >>> >> >> >> > datanode. > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > Coordinator : > >>> >>>> >>> >> >> >> > add coordinator master name host port pooler dir > >>> >>>> >>> >> >> >> > here what value i should use in place of pooler ? > >>> >>>> >>> >> >> >> > pooler > >>> >>>> >>> >> >> >> > port > >>> >>>> >>> >> >> >> > ? > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> pooler port > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 > >>> >>>> >>> >> >> >> > 20010 > >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord > >>> >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in coordinator > >>> >>>> >>> >> >> >> > master > >>> >>>> >>> >> >> >> > configuration. > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> It is due to misconfigure. In detail, numbers of > >>> >>>> >>> >> >> >> element > >>> >>>> >>> >> >> >> for > >>> >>>> >>> >> >> >> same > >>> >>>> >>> >> >> >> component are not same. > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 > >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord > >>> >>>> >>> >> >> >> > ERROR: please specify the working director for the > >>> >>>> >>> >> >> >> > coordinator > >>> >>>> >>> >> >> >> > master > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > Datanode : > >>> >>>> >>> >> >> >> > add datanode master name host port dir > >>> >>>> >>> >> >> >> > pgxc_ctl add datanode master new node5 20008 > >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master > >>> >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in datanode > >>> >>>> >>> >> >> >> > master > >>> >>>> >>> >> >> >> > configuration. > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > Does earlier manual installation could be reason > for > >>> >>>> >>> >> >> >> > this > >>> >>>> >>> >> >> >> > issue ? > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > P.S: > >>> >>>> >>> >> >> >> > gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: > >>> >>>> >>> >> >> >> > '/home/postgres/pgxc/nodes/gtm_pxy' > >>> >>>> >>> >> >> >> > Coordinator Master: Nodename: 'coord3', port: > 20004, > >>> >>>> >>> >> >> >> > pooler > >>> >>>> >>> >> >> >> > port: > >>> >>>> >>> >> >> >> > 20010, > >>> >>>> >>> >> >> >> > dir:' /home/postgres/pgxc/nodes/coord' > >>> >>>> >>> >> >> >> > Datanode Master : Nodename: 'datanode3', port: > >>> >>>> >>> >> >> >> > 20008, > >>> >>>> >>> >> >> >> > dir:' > >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master' > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > please look at my commands if its erroneous > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > Please advice. > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > Regards, > >>> >>>> >>> >> >> >> > Juned Khan > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > On Wed, Mar 12, 2014 at 11:45 AM, Juned Khan > >>> >>>> >>> >> >> >> > <jkh...@gm...> > >>> >>>> >>> >> >> >> > wrote: > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> I tried to add coordinator and datanode manually > >>> >>>> >>> >> >> >> >> and now it seems everything is messed up. > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> Every component is just stopped working, if i kill > >>> >>>> >>> >> >> >> >> all > >>> >>>> >>> >> >> >> >> and > >>> >>>> >>> >> >> >> >> start all again then again its shows everything is > >>> >>>> >>> >> >> >> >> running > >>> >>>> >>> >> >> >> >> but in that case it takes too long to connect > >>> >>>> >>> >> >> >> >> dtabase(Psql > >>> >>>> >>> >> >> >> >> -dkoichi) > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> and at last it just fails to connect to the > database > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> PGXC Psql -dkoichi > >>> >>>> >>> >> >> >> >> Selected coord1. > >>> >>>> >>> >> >> >> >> psql: server closed the connection unexpectedly > >>> >>>> >>> >> >> >> >> This probably means the server terminated > >>> >>>> >>> >> >> >> >> abnormally > >>> >>>> >>> >> >> >> >> before or while processing the request. > >>> >>>> >>> >> >> >> >> PGXC > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> Please advice. > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> On Wed, Mar 12, 2014 at 4:34 AM, Michael Paquier > >>> >>>> >>> >> >> >> >> <mic...@gm...> wrote: > >>> >>>> >>> >> >> >> >>> > >>> >>>> >>> >> >> >> >>> On Wed, Mar 12, 2014 at 4:10 AM, Masataka Saito > >>> >>>> >>> >> >> >> >>> <pg...@gm...> > >>> >>>> >>> >> >> >> >>> wrote: > >>> >>>> >>> >> >> >> >>> > On 11 March 2014 16:42, Juned Khan > >>> >>>> >>> >> >> >> >>> > <jkh...@gm...> > >>> >>>> >>> >> >> >> >>> > wrote: > >>> >>>> >>> >> >> >> >>> >> Hi Masataka, > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> For testing i am tried to get this work added > >>> >>>> >>> >> >> >> >>> >> manual > >>> >>>> >>> >> >> >> >>> >> query > >>> >>>> >>> >> >> >> >>> >> for > >>> >>>> >>> >> >> >> >>> >> CREATE > >>> >>>> >>> >> >> >> >>> >> NODE. > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> Now its look like this: > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> postgres=# \q > >>> >>>> >>> >> >> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20004 > >>> >>>> >>> >> >> >> >>> >> Selected coord3. > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> postgres=# select * from pgxc_node; > >>> >>>> >>> >> >> >> >>> >> node_name | node_type | node_port | > node_host | > >>> >>>> >>> >> >> >> >>> >> nodeis_primary > >>> >>>> >>> >> >> >> >>> >> | > >>> >>>> >>> >> >> >> >>> >> nodeis_preferred | node_id > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> > -----------+-----------+-----------+-----------+----------------+------------------+------------- > >>> >>>> >>> >> >> >> >>> >> coord3 | C | 5432 | > localhost | > >>> >>>> >>> >> >> >> >>> >> f > >>> >>>> >>> >> >> >> >>> >> | f > >>> >>>> >>> >> >> >> >>> >> | 1638403545 > >>> >>>> >>> >> >> >> >>> >> coord1 | C | 20004 | node3 > | > >>> >>>> >>> >> >> >> >>> >> f > >>> >>>> >>> >> >> >> >>> >> | f > >>> >>>> >>> >> >> >> >>> >> | 1885696643 > >>> >>>> >>> >> >> >> >>> >> coord2 | C | 20005 | node4 > | > >>> >>>> >>> >> >> >> >>> >> f > >>> >>>> >>> >> >> >> >>> >> | f > >>> >>>> >>> >> >> >> >>> >> | -1197102633 > >>> >>>> >>> >> >> >> >>> >> datanode1 | D | 20008 | node3 > | > >>> >>>> >>> >> >> >> >>> >> f > >>> >>>> >>> >> >> >> >>> >> | f > >>> >>>> >>> >> >> >> >>> >> | 888802358 > >>> >>>> >>> >> >> >> >>> >> datanode2 | D | 20009 | node4 > | > >>> >>>> >>> >> >> >> >>> >> f > >>> >>>> >>> >> >> >> >>> >> | f > >>> >>>> >>> >> >> >> >>> >> | -905831925 > >>> >>>> >>> >> >> >> >>> >> datanode3 | D | 20008 | node5 > | > >>> >>>> >>> >> >> >> >>> >> f > >>> >>>> >>> >> >> >> >>> >> | f > >>> >>>> >>> >> >> >> >>> >> | -1894792127 > >>> >>>> >>> >> >> >> >>> >> (6 rows) > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> >> Here coord3 runs on 5432 which should 20004., > it > >>> >>>> >>> >> >> >> >>> >> creates > >>> >>>> >>> >> >> >> >>> >> problem > >>> >>>> >>> >> >> >> >>> >> i > >>> >>>> >>> >> >> >> >>> >> think > >>> >>>> >>> >> >> >> >>> >> isn't it ? > >>> >>>> >>> >> >> >> >>> >> > >>> >>>> >>> >> >> >> >>> > > >>> >>>> >>> >> >> >> >>> > As far as I know, the local node information is > >>> >>>> >>> >> >> >> >>> > not > >>> >>>> >>> >> >> >> >>> > important > >>> >>>> >>> >> >> >> >>> > and > >>> >>>> >>> >> >> >> >>> > it > >>> >>>> >>> >> >> >> >>> > is not necessary to update. > >>> >>>> >>> >> >> >> >>> > "pgxc_ctl add" corrects it by "ALTER NODE". > >>> >>>> >>> >> >> >> >>> CREATE NODE and DROP NODE only run locally. Why > not > >>> >>>> >>> >> >> >> >>> ALTER > >>> >>>> >>> >> >> >> >>> NODE > >>> >>>> >>> >> >> >> >>> for > >>> >>>> >>> >> >> >> >>> consistency? Am I missing smth? > >>> >>>> >>> >> >> >> >>> -- > >>> >>>> >>> >> >> >> >>> Michael > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> > >>> >>>> >>> >> >> >> >> -- > >>> >>>> >>> >> >> >> >> Thanks, > >>> >>>> >>> >> >> >> >> Juned Khan > >>> >>>> >>> >> >> >> >> iNextrix Technologies Pvt Ltd. > >>> >>>> >>> >> >> >> >> www.inextrix.com > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > > >>> >>>> >>> >> >> >> > -- > >>> >>>> >>> >> >> >> > Thanks, > >>> >>>> >>> >> >> >> > Juned Khan > >>> >>>> >>> >> >> >> > iNextrix Technologies Pvt Ltd. > >>> >>>> >>> >> >> >> > www.inextrix.com > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > > >>> >>>> >>> >> >> > -- > >>> >>>> >>> >> >> > Thanks, > >>> >>>> >>> >> >> > Juned Khan > >>> >>>> >>> >> >> > iNextrix Technologies Pvt Ltd. > >>> >>>> >>> >> >> > www.inextrix.com > >>> >>>> >>> >> > > >>> >>>> >>> >> > > >>> >>>> >>> >> > > >>> >>>> >>> >> > > >>> >>>> >>> >> > -- > >>> >>>> >>> >> > Thanks, > >>> >>>> >>> >> > Juned Khan > >>> >>>> >>> >> > iNextrix Technologies Pvt Ltd. > >>> >>>> >>> >> > www.inextrix.com > >>> >>>> >>> > > >>> >>>> >>> > > >>> >>>> >>> > > >>> >>>> >>> > > >>> >>>> >>> > -- > >>> >>>> >>> > Thanks, > >>> >>>> >>> > Juned Khan > >>> >>>> >>> > iNextrix Technologies Pvt Ltd. > >>> >>>> >>> > www.inextrix.com > >>> >>>> >> > >>> >>>> >> > >>> >>>> >> > >>> >>>> >> > >>> >>>> >> -- > >>> >>>> >> Thanks, > >>> >>>> >> Juned Khan > >>> >>>> >> iNextrix Technologies Pvt Ltd. > >>> >>>> >> www.inextrix.com > >>> >>>> > > >>> >>>> > > >>> >>>> > > >>> >>>> > > >>> >>>> > -- > >>> >>>> > Thanks, > >>> >>>> > Juned Khan > >>> >>>> > iNextrix Technologies Pvt Ltd. > >>> >>>> > www.inextrix.com > >>> >>> > >>> >>> > >>> >>> > >>> >>> > >>> >>> -- > >>> >>> Thanks, > >>> >>> Juned Khan > >>> >>> iNextrix Technologies Pvt Ltd. > >>> >>> www.inextrix.com > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> -- > >>> >> Thanks, > >>> >> Juned Khan > >>> >> iNextrix Technologies Pvt Ltd. > >>> >> www.inextrix.com > >>> > > >>> > > >>> > > >>> > > >>> > -- > >>> > Thanks, > >>> > Juned Khan > >>> > iNextrix Technologies Pvt Ltd. > >>> > www.inextrix.com > >>> > > >>> > > >>> > > ------------------------------------------------------------------------------ > >>> > Learn Graph Databases - Download FREE O'Reilly Book > >>> > "Graph Databases" is the definitive new guide to graph databases and > >>> > their > >>> > applications. Written by three acclaimed leaders in the field, > >>> > this first edition is now available. Download your free book today! > >>> > http://p.sf.net/sfu/13534_NeoTech > >>> > _______________________________________________ > >>> > Postgres-xc-general mailing list > >>> > Pos...@li... > >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > >>> > > >> > >> > >> > >> > >> -- > >> Thanks, > >> Juned Khan > >> iNextrix Technologies Pvt Ltd. > >> www.inextrix.com > > > > > > > > > > -- > > Thanks, > > Juned Khan > > iNextrix Technologies Pvt Ltd. > > www.inextrix.com > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Koichi S. <koi...@gm...> - 2014-03-20 00:56:24
|
Sorry, made a silly reply. Please try SELECT pgxc_pool_reload(). Documentation will be found at http://postgres-xc.sourceforge.net/docs/1_1/functions-admin.html#FUNCTIONS-ADMIN-SET Good luck. --- Koichi Suzuki 2014-03-19 20:56 GMT+09:00 Juned Khan <jkh...@gm...>: > Hi koichi, > > Having little bit issue. > New datanode is added successfully and even database structure is copied > on new datanode(i have added datanode3). > > But as tables are empty, i am just trying to add new datanode using below > command > > > koichi=# alter table t1 add node (datanode3); > ERROR: Failed to get pooled connections > > But as you suggested i tried to clean the connection. > > postgres=# CLEAN CONNECTION TO COORDINATOR (coord1,coord2) FOR koichi; > CLEAN CONNECTION > > postgres=# CLEAN CONNECTION TO NODE (datanode1,datanode2,datanode3) for > database koichi; > CLEAN CONNECTION > > But still its giving me same error, is there any other solution for this > problem? > > Regards, > Juned khan > > > > On Sat, Mar 15, 2014 at 11:59 AM, Juned Khan <jkh...@gm...> wrote: >> >> Hi Koichi, >> >> Thanks for your information, >> i just tried with stop and start components and it worked. >> >> This link will help me to fix future issues. And i ll keep in mind >> about that documentation bug. >> >> >> >> >> On Sat, Mar 15, 2014 at 3:56 AM, Koichi Suzuki <koi...@gm...> >> wrote: >>> >>> pgxc_ctl command "add datanode master" should run all the necessary >>> clean_connection calls. >>> >>> Try to run clean_connection SQL command (specific to XC) as seen in >>> http://postgres-xc.sourceforge.net/docs/1_1/sql-cleanconnection.html >>> >>> I found a document bug in the example CLEAN CONNECTION TO COORDINATOR >>> coord1,coord2 FOR DATABASEname; >>> >>> You should enclose set of node names with (). >>> >>> Regards; >>> --- >>> Koichi Suzuki >>> >>> >>> 2014-03-14 5:59 GMT+00:00 Juned Khan <jkh...@gm...>: >>> > Koichi=# alter table t1 add node (datanode3); >>> > >>> > ERROR: Failed to get pooled connections >>> > CONTEXT: SQL statement "EXECUTE DIRECT ON (coord3) 'SELECT >>> > pg_catalog.pg_try_advisory_xact_lock_shared(65535, 0)'" >>> > >>> > >>> > >>> > On Fri, Mar 14, 2014 at 11:20 AM, Juned Khan <jkh...@gm...> >>> > wrote: >>> >> >>> >> Hi Masataka, Koichi, >>> >> >>> >> New datanode is successfully added and all components are running.i >>> >> have >>> >> small doubt. >>> >> >>> >> As i just added new datanode so , will existing database automatically >>> >> copied >>> >> on this datanode or i have to create and import it manually from >>> >> another >>> >> datanode ? >>> >> >>> >> As per that video, we need to just fire alter query just like : >>> >> alter table t1 add node (datanode3); >>> >> is that so ? >>> >> >>> >> and yeah as of now i am getting Failed to get pooled connections >>> >> error. >>> >> >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >>> >> ERROR: Failed to get pooled connections >>> >> >>> >> Please advice. >>> >> >>> >> >>> >> >>> >> On Fri, Mar 14, 2014 at 11:03 AM, Juned Khan <jkh...@gm...> >>> >> wrote: >>> >>> >>> >>> Hi Masataka >>> >>> >>> >>> Thanks you very much, commands are working now. >>> >>> I thought that element doesn't affect because at initial level >>> >>> it was not showing any error. >>> >>> >>> >>> But thanks a lot, just fixed another same kind of problems. ;) >>> >>> >>> >>> >>> >>> >>> >>> On Fri, Mar 14, 2014 at 10:40 AM, Masataka Saito <pg...@gm...> >>> >>> wrote: >>> >>>> >>> >>>> coordMasterServers defines 2 nodes, but coordSpecificExtraConfig and >>> >>>> coordSpecificExtraPgHba have 4 elements. >>> >>>> >>> >>>> On 14 March 2014 13:51, Juned Khan <jkh...@gm...> wrote: >>> >>>> > Hi Masataka, >>> >>>> > >>> >>>> > Please find the attachment. i have attached my pgxc_ctl.conf >>> >>>> > >>> >>>> > see my pastebin link : http://pastebin.com/n35QkmpK >>> >>>> > >>> >>>> > >>> >>>> > On Fri, Mar 14, 2014 at 10:18 AM, Juned Khan <jkh...@gm...> >>> >>>> > wrote: >>> >>>> >> >>> >>>> >> Hi Masataka, >>> >>>> >> >>> >>>> >> Please find the attachment. i have attached my pgxc_ctl.conf >>> >>>> >> >>> >>>> >> >>> >>>> >> On Thu, Mar 13, 2014 at 11:39 PM, Masataka Saito >>> >>>> >> <pg...@gm...> >>> >>>> >> wrote: >>> >>>> >>> >>> >>>> >>> Can you provide your pgxc_ctl.conf? >>> >>>> >>> >>> >>>> >>> On 14 March 2014 00:31, Juned Khan <jkh...@gm...> wrote: >>> >>>> >>> > Hi Masataka, >>> >>>> >>> > >>> >>>> >>> > Thanks for confirmation. >>> >>>> >>> > is there any alternative for me to get this working? >>> >>>> >>> > >>> >>>> >>> > This can be very problematic with live servers. >>> >>>> >>> > >>> >>>> >>> > >>> >>>> >>> > On Thu, Mar 13, 2014 at 8:56 PM, Masataka Saito >>> >>>> >>> > <pg...@gm...> >>> >>>> >>> > wrote: >>> >>>> >>> >> >>> >>>> >>> >> I think there's no problem in your command line. >>> >>>> >>> >> >>> >>>> >>> >> >>> >>>> >>> >> On 13 March 2014 23:05, Juned Khan <jkh...@gm...> >>> >>>> >>> >> wrote: >>> >>>> >>> >> > Hi Masataka, >>> >>>> >>> >> > >>> >>>> >>> >> > Its fine but i think i have specified only one element for >>> >>>> >>> >> > each >>> >>>> >>> >> > parameter. >>> >>>> >>> >> > please check my command if it needs any correction >>> >>>> >>> >> > >>> >>>> >>> >> > >>> >>>> >>> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >>> >>>> >>> >> > /home/postgres/pgxc/nodes/coord >>> >>>> >>> >> > >>> >>>> >>> >> > >>> >>>> >>> >> > >>> >>>> >>> >> > On Thu, Mar 13, 2014 at 7:07 PM, Masataka Saito >>> >>>> >>> >> > <pg...@gm...> >>> >>>> >>> >> > wrote: >>> >>>> >>> >> >> >>> >>>> >>> >> >> Sorry. I lead your misunderstanding. >>> >>>> >>> >> >> I meant about array style parameters and number of >>> >>>> >>> >> >> elements in >>> >>>> >>> >> >> each >>> >>>> >>> >> >> array. >>> >>>> >>> >> >> >>> >>>> >>> >> >> For example, you have one coordNames, almost of array >>> >>>> >>> >> >> style >>> >>>> >>> >> >> parameters >>> >>>> >>> >> >> for coordinators except for coordPgHbaEntries -- >>> >>>> >>> >> >> coordPorts, >>> >>>> >>> >> >> poolerPorts, coordMasterServers, coordMasterDirs, >>> >>>> >>> >> >> coordMaxWALSenders, >>> >>>> >>> >> >> coordSpecificExtraConfig, coordSpecificExtraPgHba -- must >>> >>>> >>> >> >> have >>> >>>> >>> >> >> only >>> >>>> >>> >> >> one element. >>> >>>> >>> >> >> >>> >>>> >>> >> >> That's all I can guess by your description. >>> >>>> >>> >> >> >>> >>>> >>> >> >> Regards. >>> >>>> >>> >> >> >>> >>>> >>> >> >> On 13 March 2014 18:07, Juned Khan <jkh...@gm...> >>> >>>> >>> >> >> wrote: >>> >>>> >>> >> >> > Hi Masataka, >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > As per that documentation i have provided all those >>> >>>> >>> >> >> > parameters >>> >>>> >>> >> >> > what else i should add or remove to make that command >>> >>>> >>> >> >> > working ? >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > I want to add datanode and coordinator with below >>> >>>> >>> >> >> > configuration >>> >>>> >>> >> >> > and i think i specified all values as per that >>> >>>> >>> >> >> > documentation. >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> >> Coordinator Master: >>> >>>> >>> >> >> >> Nodename: 'coord3', port: 20004, pooler port: 20010 >>> >>>> >>> >> >> >> MaxWalSenders: (null), Dir: >>> >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/coord' >>> >>>> >>> >> >> >> ExtraConfig: 'coordExtraConfig', Specific Extra >>> >>>> >>> >> >> >> Config: >>> >>>> >>> >> >> >> 'none' >>> >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' >>> >>>> >>> >> >> >> '192.168.1.72/32' >>> >>>> >>> >> >> >> '192.168.1.73/32' >>> >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >>> >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> >> Datanode Master: >>> >>>> >>> >> >> >> Nodename: 'datanode3', port: 20008 >>> >>>> >>> >> >> >> MaxWALSenders: 3, Dir: >>> >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/dn_master' >>> >>>> >>> >> >> >> ExtraConfig: 'none', Specific Extra Config: 'none' >>> >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' >>> >>>> >>> >> >> >> '192.168.1.72/32' >>> >>>> >>> >> >> >> '192.168.1.73/32' >>> >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >>> >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > Please suggest. >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > Regards >>> >>>> >>> >> >> > Juned Khan >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > On Thu, Mar 13, 2014 at 1:06 PM, Masataka Saito >>> >>>> >>> >> >> > <pg...@gm...> >>> >>>> >>> >> >> > wrote: >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> >> On 12 March 2014 22:43, Juned Khan >>> >>>> >>> >> >> >> <jkh...@gm...> >>> >>>> >>> >> >> >> wrote: >>> >>>> >>> >> >> >> > Hi Koichi,Masataka >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > Successfully added gtm proxy but having issue with >>> >>>> >>> >> >> >> > coordinator >>> >>>> >>> >> >> >> > and >>> >>>> >>> >> >> >> > datanode. >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > Coordinator : >>> >>>> >>> >> >> >> > add coordinator master name host port pooler dir >>> >>>> >>> >> >> >> > here what value i should use in place of pooler ? >>> >>>> >>> >> >> >> > pooler >>> >>>> >>> >> >> >> > port >>> >>>> >>> >> >> >> > ? >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> >> pooler port >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 >>> >>>> >>> >> >> >> > 20010 >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >>> >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in coordinator >>> >>>> >>> >> >> >> > master >>> >>>> >>> >> >> >> > configuration. >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> >> It is due to misconfigure. In detail, numbers of >>> >>>> >>> >> >> >> element >>> >>>> >>> >> >> >> for >>> >>>> >>> >> >> >> same >>> >>>> >>> >> >> >> component are not same. >>> >>>> >>> >> >> >> >>> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >>> >>>> >>> >> >> >> > ERROR: please specify the working director for the >>> >>>> >>> >> >> >> > coordinator >>> >>>> >>> >> >> >> > master >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > Datanode : >>> >>>> >>> >> >> >> > add datanode master name host port dir >>> >>>> >>> >> >> >> > pgxc_ctl add datanode master new node5 20008 >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master >>> >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in datanode >>> >>>> >>> >> >> >> > master >>> >>>> >>> >> >> >> > configuration. >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > Does earlier manual installation could be reason for >>> >>>> >>> >> >> >> > this >>> >>>> >>> >> >> >> > issue ? >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > P.S: >>> >>>> >>> >> >> >> > gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: >>> >>>> >>> >> >> >> > '/home/postgres/pgxc/nodes/gtm_pxy' >>> >>>> >>> >> >> >> > Coordinator Master: Nodename: 'coord3', port: 20004, >>> >>>> >>> >> >> >> > pooler >>> >>>> >>> >> >> >> > port: >>> >>>> >>> >> >> >> > 20010, >>> >>>> >>> >> >> >> > dir:' /home/postgres/pgxc/nodes/coord' >>> >>>> >>> >> >> >> > Datanode Master : Nodename: 'datanode3', port: >>> >>>> >>> >> >> >> > 20008, >>> >>>> >>> >> >> >> > dir:' >>> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master' >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > please look at my commands if its erroneous >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > Please advice. >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > Regards, >>> >>>> >>> >> >> >> > Juned Khan >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > On Wed, Mar 12, 2014 at 11:45 AM, Juned Khan >>> >>>> >>> >> >> >> > <jkh...@gm...> >>> >>>> >>> >> >> >> > wrote: >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> I tried to add coordinator and datanode manually >>> >>>> >>> >> >> >> >> and now it seems everything is messed up. >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> Every component is just stopped working, if i kill >>> >>>> >>> >> >> >> >> all >>> >>>> >>> >> >> >> >> and >>> >>>> >>> >> >> >> >> start all again then again its shows everything is >>> >>>> >>> >> >> >> >> running >>> >>>> >>> >> >> >> >> but in that case it takes too long to connect >>> >>>> >>> >> >> >> >> dtabase(Psql >>> >>>> >>> >> >> >> >> -dkoichi) >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> and at last it just fails to connect to the database >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> PGXC Psql -dkoichi >>> >>>> >>> >> >> >> >> Selected coord1. >>> >>>> >>> >> >> >> >> psql: server closed the connection unexpectedly >>> >>>> >>> >> >> >> >> This probably means the server terminated >>> >>>> >>> >> >> >> >> abnormally >>> >>>> >>> >> >> >> >> before or while processing the request. >>> >>>> >>> >> >> >> >> PGXC >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> Please advice. >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> On Wed, Mar 12, 2014 at 4:34 AM, Michael Paquier >>> >>>> >>> >> >> >> >> <mic...@gm...> wrote: >>> >>>> >>> >> >> >> >>> >>> >>>> >>> >> >> >> >>> On Wed, Mar 12, 2014 at 4:10 AM, Masataka Saito >>> >>>> >>> >> >> >> >>> <pg...@gm...> >>> >>>> >>> >> >> >> >>> wrote: >>> >>>> >>> >> >> >> >>> > On 11 March 2014 16:42, Juned Khan >>> >>>> >>> >> >> >> >>> > <jkh...@gm...> >>> >>>> >>> >> >> >> >>> > wrote: >>> >>>> >>> >> >> >> >>> >> Hi Masataka, >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> For testing i am tried to get this work added >>> >>>> >>> >> >> >> >>> >> manual >>> >>>> >>> >> >> >> >>> >> query >>> >>>> >>> >> >> >> >>> >> for >>> >>>> >>> >> >> >> >>> >> CREATE >>> >>>> >>> >> >> >> >>> >> NODE. >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> Now its look like this: >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> postgres=# \q >>> >>>> >>> >> >> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20004 >>> >>>> >>> >> >> >> >>> >> Selected coord3. >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> postgres=# select * from pgxc_node; >>> >>>> >>> >> >> >> >>> >> node_name | node_type | node_port | node_host | >>> >>>> >>> >> >> >> >>> >> nodeis_primary >>> >>>> >>> >> >> >> >>> >> | >>> >>>> >>> >> >> >> >>> >> nodeis_preferred | node_id >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >>> >>>> >>> >> >> >> >>> >> coord3 | C | 5432 | localhost | >>> >>>> >>> >> >> >> >>> >> f >>> >>>> >>> >> >> >> >>> >> | f >>> >>>> >>> >> >> >> >>> >> | 1638403545 >>> >>>> >>> >> >> >> >>> >> coord1 | C | 20004 | node3 | >>> >>>> >>> >> >> >> >>> >> f >>> >>>> >>> >> >> >> >>> >> | f >>> >>>> >>> >> >> >> >>> >> | 1885696643 >>> >>>> >>> >> >> >> >>> >> coord2 | C | 20005 | node4 | >>> >>>> >>> >> >> >> >>> >> f >>> >>>> >>> >> >> >> >>> >> | f >>> >>>> >>> >> >> >> >>> >> | -1197102633 >>> >>>> >>> >> >> >> >>> >> datanode1 | D | 20008 | node3 | >>> >>>> >>> >> >> >> >>> >> f >>> >>>> >>> >> >> >> >>> >> | f >>> >>>> >>> >> >> >> >>> >> | 888802358 >>> >>>> >>> >> >> >> >>> >> datanode2 | D | 20009 | node4 | >>> >>>> >>> >> >> >> >>> >> f >>> >>>> >>> >> >> >> >>> >> | f >>> >>>> >>> >> >> >> >>> >> | -905831925 >>> >>>> >>> >> >> >> >>> >> datanode3 | D | 20008 | node5 | >>> >>>> >>> >> >> >> >>> >> f >>> >>>> >>> >> >> >> >>> >> | f >>> >>>> >>> >> >> >> >>> >> | -1894792127 >>> >>>> >>> >> >> >> >>> >> (6 rows) >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> >> Here coord3 runs on 5432 which should 20004., it >>> >>>> >>> >> >> >> >>> >> creates >>> >>>> >>> >> >> >> >>> >> problem >>> >>>> >>> >> >> >> >>> >> i >>> >>>> >>> >> >> >> >>> >> think >>> >>>> >>> >> >> >> >>> >> isn't it ? >>> >>>> >>> >> >> >> >>> >> >>> >>>> >>> >> >> >> >>> > >>> >>>> >>> >> >> >> >>> > As far as I know, the local node information is >>> >>>> >>> >> >> >> >>> > not >>> >>>> >>> >> >> >> >>> > important >>> >>>> >>> >> >> >> >>> > and >>> >>>> >>> >> >> >> >>> > it >>> >>>> >>> >> >> >> >>> > is not necessary to update. >>> >>>> >>> >> >> >> >>> > "pgxc_ctl add" corrects it by "ALTER NODE". >>> >>>> >>> >> >> >> >>> CREATE NODE and DROP NODE only run locally. Why not >>> >>>> >>> >> >> >> >>> ALTER >>> >>>> >>> >> >> >> >>> NODE >>> >>>> >>> >> >> >> >>> for >>> >>>> >>> >> >> >> >>> consistency? Am I missing smth? >>> >>>> >>> >> >> >> >>> -- >>> >>>> >>> >> >> >> >>> Michael >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> >>> >>>> >>> >> >> >> >> -- >>> >>>> >>> >> >> >> >> Thanks, >>> >>>> >>> >> >> >> >> Juned Khan >>> >>>> >>> >> >> >> >> iNextrix Technologies Pvt Ltd. >>> >>>> >>> >> >> >> >> www.inextrix.com >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > >>> >>>> >>> >> >> >> > -- >>> >>>> >>> >> >> >> > Thanks, >>> >>>> >>> >> >> >> > Juned Khan >>> >>>> >>> >> >> >> > iNextrix Technologies Pvt Ltd. >>> >>>> >>> >> >> >> > www.inextrix.com >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > >>> >>>> >>> >> >> > -- >>> >>>> >>> >> >> > Thanks, >>> >>>> >>> >> >> > Juned Khan >>> >>>> >>> >> >> > iNextrix Technologies Pvt Ltd. >>> >>>> >>> >> >> > www.inextrix.com >>> >>>> >>> >> > >>> >>>> >>> >> > >>> >>>> >>> >> > >>> >>>> >>> >> > >>> >>>> >>> >> > -- >>> >>>> >>> >> > Thanks, >>> >>>> >>> >> > Juned Khan >>> >>>> >>> >> > iNextrix Technologies Pvt Ltd. >>> >>>> >>> >> > www.inextrix.com >>> >>>> >>> > >>> >>>> >>> > >>> >>>> >>> > >>> >>>> >>> > >>> >>>> >>> > -- >>> >>>> >>> > Thanks, >>> >>>> >>> > Juned Khan >>> >>>> >>> > iNextrix Technologies Pvt Ltd. >>> >>>> >>> > www.inextrix.com >>> >>>> >> >>> >>>> >> >>> >>>> >> >>> >>>> >> >>> >>>> >> -- >>> >>>> >> Thanks, >>> >>>> >> Juned Khan >>> >>>> >> iNextrix Technologies Pvt Ltd. >>> >>>> >> www.inextrix.com >>> >>>> > >>> >>>> > >>> >>>> > >>> >>>> > >>> >>>> > -- >>> >>>> > Thanks, >>> >>>> > Juned Khan >>> >>>> > iNextrix Technologies Pvt Ltd. >>> >>>> > www.inextrix.com >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> -- >>> >>> Thanks, >>> >>> Juned Khan >>> >>> iNextrix Technologies Pvt Ltd. >>> >>> www.inextrix.com >>> >> >>> >> >>> >> >>> >> >>> >> -- >>> >> Thanks, >>> >> Juned Khan >>> >> iNextrix Technologies Pvt Ltd. >>> >> www.inextrix.com >>> > >>> > >>> > >>> > >>> > -- >>> > Thanks, >>> > Juned Khan >>> > iNextrix Technologies Pvt Ltd. >>> > www.inextrix.com >>> > >>> > >>> > ------------------------------------------------------------------------------ >>> > Learn Graph Databases - Download FREE O'Reilly Book >>> > "Graph Databases" is the definitive new guide to graph databases and >>> > their >>> > applications. Written by three acclaimed leaders in the field, >>> > this first edition is now available. Download your free book today! >>> > http://p.sf.net/sfu/13534_NeoTech >>> > _______________________________________________ >>> > Postgres-xc-general mailing list >>> > Pos...@li... >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >>> > >> >> >> >> >> -- >> Thanks, >> Juned Khan >> iNextrix Technologies Pvt Ltd. >> www.inextrix.com > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com |
From: 鈴木 幸市 <ko...@in...> - 2014-03-20 00:51:36
|
What kind of error are you having? --- Koichi Suzuki 2014/03/19 20:56、Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> のメール: Hi koichi, Having little bit issue. New datanode is added successfully and even database structure is copied on new datanode(i have added datanode3). But as tables are empty, i am just trying to add new datanode using below command koichi=# alter table t1 add node (datanode3); ERROR: Failed to get pooled connections But as you suggested i tried to clean the connection. postgres=# CLEAN CONNECTION TO COORDINATOR (coord1,coord2) FOR koichi; CLEAN CONNECTION postgres=# CLEAN CONNECTION TO NODE (datanode1,datanode2,datanode3) for database koichi; CLEAN CONNECTION But still its giving me same error, is there any other solution for this problem? Regards, Juned khan On Sat, Mar 15, 2014 at 11:59 AM, Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> wrote: Hi Koichi, Thanks for your information, i just tried with stop and start components and it worked. This link will help me to fix future issues. And i ll keep in mind about that documentation bug. On Sat, Mar 15, 2014 at 3:56 AM, Koichi Suzuki <koi...@gm...<mailto:koi...@gm...>> wrote: pgxc_ctl command "add datanode master" should run all the necessary clean_connection calls. Try to run clean_connection SQL command (specific to XC) as seen in http://postgres-xc.sourceforge.net/docs/1_1/sql-cleanconnection.html I found a document bug in the example CLEAN CONNECTION TO COORDINATOR coord1,coord2 FOR DATABASEname; You should enclose set of node names with (). Regards; --- Koichi Suzuki 2014-03-14 5:59 GMT+00:00 Juned Khan <jkh...@gm...<mailto:jkh...@gm...>>: > Koichi=# alter table t1 add node (datanode3); > > ERROR: Failed to get pooled connections > CONTEXT: SQL statement "EXECUTE DIRECT ON (coord3) 'SELECT > pg_catalog.pg_try_advisory_xact_lock_shared(65535, 0)'" > > > > On Fri, Mar 14, 2014 at 11:20 AM, Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> wrote: >> >> Hi Masataka, Koichi, >> >> New datanode is successfully added and all components are running.i have >> small doubt. >> >> As i just added new datanode so , will existing database automatically >> copied >> on this datanode or i have to create and import it manually from another >> datanode ? >> >> As per that video, we need to just fire alter query just like : >> alter table t1 add node (datanode3); >> is that so ? >> >> and yeah as of now i am getting Failed to get pooled connections error. >> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> ERROR: Failed to get pooled connections >> >> Please advice. >> >> >> >> On Fri, Mar 14, 2014 at 11:03 AM, Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> wrote: >>> >>> Hi Masataka >>> >>> Thanks you very much, commands are working now. >>> I thought that element doesn't affect because at initial level >>> it was not showing any error. >>> >>> But thanks a lot, just fixed another same kind of problems. ;) >>> >>> >>> >>> On Fri, Mar 14, 2014 at 10:40 AM, Masataka Saito <pg...@gm...<mailto:pg...@gm...>> >>> wrote: >>>> >>>> coordMasterServers defines 2 nodes, but coordSpecificExtraConfig and >>>> coordSpecificExtraPgHba have 4 elements. >>>> >>>> On 14 March 2014 13:51, Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> wrote: >>>> > Hi Masataka, >>>> > >>>> > Please find the attachment. i have attached my pgxc_ctl.conf >>>> > >>>> > see my pastebin link : http://pastebin.com/n35QkmpK >>>> > >>>> > >>>> > On Fri, Mar 14, 2014 at 10:18 AM, Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> >>>> > wrote: >>>> >> >>>> >> Hi Masataka, >>>> >> >>>> >> Please find the attachment. i have attached my pgxc_ctl.conf >>>> >> >>>> >> >>>> >> On Thu, Mar 13, 2014 at 11:39 PM, Masataka Saito <pg...@gm...<mailto:pg...@gm...>> >>>> >> wrote: >>>> >>> >>>> >>> Can you provide your pgxc_ctl.conf? >>>> >>> >>>> >>> On 14 March 2014 00:31, Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> wrote: >>>> >>> > Hi Masataka, >>>> >>> > >>>> >>> > Thanks for confirmation. >>>> >>> > is there any alternative for me to get this working? >>>> >>> > >>>> >>> > This can be very problematic with live servers. >>>> >>> > >>>> >>> > >>>> >>> > On Thu, Mar 13, 2014 at 8:56 PM, Masataka Saito <pg...@gm...<mailto:pg...@gm...>> >>>> >>> > wrote: >>>> >>> >> >>>> >>> >> I think there's no problem in your command line. >>>> >>> >> >>>> >>> >> >>>> >>> >> On 13 March 2014 23:05, Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> wrote: >>>> >>> >> > Hi Masataka, >>>> >>> >> > >>>> >>> >> > Its fine but i think i have specified only one element for each >>>> >>> >> > parameter. >>>> >>> >> > please check my command if it needs any correction >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >>>> >>> >> > /home/postgres/pgxc/nodes/coord >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > On Thu, Mar 13, 2014 at 7:07 PM, Masataka Saito >>>> >>> >> > <pg...@gm...<mailto:pg...@gm...>> >>>> >>> >> > wrote: >>>> >>> >> >> >>>> >>> >> >> Sorry. I lead your misunderstanding. >>>> >>> >> >> I meant about array style parameters and number of elements in >>>> >>> >> >> each >>>> >>> >> >> array. >>>> >>> >> >> >>>> >>> >> >> For example, you have one coordNames, almost of array style >>>> >>> >> >> parameters >>>> >>> >> >> for coordinators except for coordPgHbaEntries -- coordPorts, >>>> >>> >> >> poolerPorts, coordMasterServers, coordMasterDirs, >>>> >>> >> >> coordMaxWALSenders, >>>> >>> >> >> coordSpecificExtraConfig, coordSpecificExtraPgHba -- must have >>>> >>> >> >> only >>>> >>> >> >> one element. >>>> >>> >> >> >>>> >>> >> >> That's all I can guess by your description. >>>> >>> >> >> >>>> >>> >> >> Regards. >>>> >>> >> >> >>>> >>> >> >> On 13 March 2014 18:07, Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> >>>> >>> >> >> wrote: >>>> >>> >> >> > Hi Masataka, >>>> >>> >> >> > >>>> >>> >> >> > As per that documentation i have provided all those >>>> >>> >> >> > parameters >>>> >>> >> >> > what else i should add or remove to make that command >>>> >>> >> >> > working ? >>>> >>> >> >> > >>>> >>> >> >> > I want to add datanode and coordinator with below >>>> >>> >> >> > configuration >>>> >>> >> >> > and i think i specified all values as per that >>>> >>> >> >> > documentation. >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> >> Coordinator Master: >>>> >>> >> >> >> Nodename: 'coord3', port: 20004, pooler port: 20010 >>>> >>> >> >> >> MaxWalSenders: (null), Dir: >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/coord' >>>> >>> >> >> >> ExtraConfig: 'coordExtraConfig', Specific Extra Config: >>>> >>> >> >> >> 'none' >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32<http://192.168.1.71/32>' '192.168.1.72/32<http://192.168.1.72/32>' >>>> >>> >> >> >> '192.168.1.73/32<http://192.168.1.73/32>' >>>> >>> >> >> >> '192.168.1.43/32<http://192.168.1.43/32>' '192.168.1.75/32<http://192.168.1.75/32>' ) >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >>>> >>> >> >> >> >>>> >>> >> >> >> Datanode Master: >>>> >>> >> >> >> Nodename: 'datanode3', port: 20008 >>>> >>> >> >> >> MaxWALSenders: 3, Dir: >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/dn_master' >>>> >>> >> >> >> ExtraConfig: 'none', Specific Extra Config: 'none' >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32<http://192.168.1.71/32>' '192.168.1.72/32<http://192.168.1.72/32>' >>>> >>> >> >> >> '192.168.1.73/32<http://192.168.1.73/32>' >>>> >>> >> >> >> '192.168.1.43/32<http://192.168.1.43/32>' '192.168.1.75/32<http://192.168.1.75/32>' ) >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > Please suggest. >>>> >>> >> >> > >>>> >>> >> >> > Regards >>>> >>> >> >> > Juned Khan >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > On Thu, Mar 13, 2014 at 1:06 PM, Masataka Saito >>>> >>> >> >> > <pg...@gm...<mailto:pg...@gm...>> >>>> >>> >> >> > wrote: >>>> >>> >> >> >> >>>> >>> >> >> >> On 12 March 2014 22:43, Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> >>>> >>> >> >> >> wrote: >>>> >>> >> >> >> > Hi Koichi,Masataka >>>> >>> >> >> >> > >>>> >>> >> >> >> > Successfully added gtm proxy but having issue with >>>> >>> >> >> >> > coordinator >>>> >>> >> >> >> > and >>>> >>> >> >> >> > datanode. >>>> >>> >> >> >> > >>>> >>> >> >> >> > Coordinator : >>>> >>> >> >> >> > add coordinator master name host port pooler dir >>>> >>> >> >> >> > here what value i should use in place of pooler ? pooler >>>> >>> >> >> >> > port >>>> >>> >> >> >> > ? >>>> >>> >> >> >> > >>>> >>> >> >> >> >>>> >>> >> >> >> pooler port >>>> >>> >> >> >> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in coordinator master >>>> >>> >> >> >> > configuration. >>>> >>> >> >> >> > >>>> >>> >> >> >> >>>> >>> >> >> >> It is due to misconfigure. In detail, numbers of element >>>> >>> >> >> >> for >>>> >>> >> >> >> same >>>> >>> >> >> >> component are not same. >>>> >>> >> >> >> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >>>> >>> >> >> >> > ERROR: please specify the working director for the >>>> >>> >> >> >> > coordinator >>>> >>> >> >> >> > master >>>> >>> >> >> >> > >>>> >>> >> >> >> > Datanode : >>>> >>> >> >> >> > add datanode master name host port dir >>>> >>> >> >> >> > pgxc_ctl add datanode master new node5 20008 >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in datanode master >>>> >>> >> >> >> > configuration. >>>> >>> >> >> >> > >>>> >>> >> >> >> > Does earlier manual installation could be reason for this >>>> >>> >> >> >> > issue ? >>>> >>> >> >> >> > >>>> >>> >> >> >> > P.S: >>>> >>> >> >> >> > gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: >>>> >>> >> >> >> > '/home/postgres/pgxc/nodes/gtm_pxy' >>>> >>> >> >> >> > Coordinator Master: Nodename: 'coord3', port: 20004, >>>> >>> >> >> >> > pooler >>>> >>> >> >> >> > port: >>>> >>> >> >> >> > 20010, >>>> >>> >> >> >> > dir:' /home/postgres/pgxc/nodes/coord' >>>> >>> >> >> >> > Datanode Master : Nodename: 'datanode3', port: 20008, >>>> >>> >> >> >> > dir:' >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master' >>>> >>> >> >> >> > >>>> >>> >> >> >> > please look at my commands if its erroneous >>>> >>> >> >> >> > >>>> >>> >> >> >> > Please advice. >>>> >>> >> >> >> > >>>> >>> >> >> >> > Regards, >>>> >>> >> >> >> > Juned Khan >>>> >>> >> >> >> > >>>> >>> >> >> >> > >>>> >>> >> >> >> > >>>> >>> >> >> >> > On Wed, Mar 12, 2014 at 11:45 AM, Juned Khan >>>> >>> >> >> >> > <jkh...@gm...<mailto:jkh...@gm...>> >>>> >>> >> >> >> > wrote: >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> I tried to add coordinator and datanode manually >>>> >>> >> >> >> >> and now it seems everything is messed up. >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> Every component is just stopped working, if i kill all >>>> >>> >> >> >> >> and >>>> >>> >> >> >> >> start all again then again its shows everything is >>>> >>> >> >> >> >> running >>>> >>> >> >> >> >> but in that case it takes too long to connect >>>> >>> >> >> >> >> dtabase(Psql >>>> >>> >> >> >> >> -dkoichi) >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> and at last it just fails to connect to the database >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> PGXC Psql -dkoichi >>>> >>> >> >> >> >> Selected coord1. >>>> >>> >> >> >> >> psql: server closed the connection unexpectedly >>>> >>> >> >> >> >> This probably means the server terminated >>>> >>> >> >> >> >> abnormally >>>> >>> >> >> >> >> before or while processing the request. >>>> >>> >> >> >> >> PGXC >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> Please advice. >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> On Wed, Mar 12, 2014 at 4:34 AM, Michael Paquier >>>> >>> >> >> >> >> <mic...@gm...<mailto:mic...@gm...>> wrote: >>>> >>> >> >> >> >>> >>>> >>> >> >> >> >>> On Wed, Mar 12, 2014 at 4:10 AM, Masataka Saito >>>> >>> >> >> >> >>> <pg...@gm...<mailto:pg...@gm...>> >>>> >>> >> >> >> >>> wrote: >>>> >>> >> >> >> >>> > On 11 March 2014 16:42, Juned Khan >>>> >>> >> >> >> >>> > <jkh...@gm...<mailto:jkh...@gm...>> >>>> >>> >> >> >> >>> > wrote: >>>> >>> >> >> >> >>> >> Hi Masataka, >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> For testing i am tried to get this work added manual >>>> >>> >> >> >> >>> >> query >>>> >>> >> >> >> >>> >> for >>>> >>> >> >> >> >>> >> CREATE >>>> >>> >> >> >> >>> >> NODE. >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> Now its look like this: >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> postgres=# \q >>>> >>> >> >> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20004 >>>> >>> >> >> >> >>> >> Selected coord3. >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> postgres=# select * from pgxc_node; >>>> >>> >> >> >> >>> >> node_name | node_type | node_port | node_host | >>>> >>> >> >> >> >>> >> nodeis_primary >>>> >>> >> >> >> >>> >> | >>>> >>> >> >> >> >>> >> nodeis_preferred | node_id >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >>>> >>> >> >> >> >>> >> coord3 | C | 5432 | localhost | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | 1638403545 >>>> >>> >> >> >> >>> >> coord1 | C | 20004 | node3 | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | 1885696643 >>>> >>> >> >> >> >>> >> coord2 | C | 20005 | node4 | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | -1197102633 >>>> >>> >> >> >> >>> >> datanode1 | D | 20008 | node3 | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | 888802358 >>>> >>> >> >> >> >>> >> datanode2 | D | 20009 | node4 | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | -905831925 >>>> >>> >> >> >> >>> >> datanode3 | D | 20008 | node5 | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | -1894792127 >>>> >>> >> >> >> >>> >> (6 rows) >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> Here coord3 runs on 5432 which should 20004., it >>>> >>> >> >> >> >>> >> creates >>>> >>> >> >> >> >>> >> problem >>>> >>> >> >> >> >>> >> i >>>> >>> >> >> >> >>> >> think >>>> >>> >> >> >> >>> >> isn't it ? >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> > >>>> >>> >> >> >> >>> > As far as I know, the local node information is not >>>> >>> >> >> >> >>> > important >>>> >>> >> >> >> >>> > and >>>> >>> >> >> >> >>> > it >>>> >>> >> >> >> >>> > is not necessary to update. >>>> >>> >> >> >> >>> > "pgxc_ctl add" corrects it by "ALTER NODE". >>>> >>> >> >> >> >>> CREATE NODE and DROP NODE only run locally. Why not >>>> >>> >> >> >> >>> ALTER >>>> >>> >> >> >> >>> NODE >>>> >>> >> >> >> >>> for >>>> >>> >> >> >> >>> consistency? Am I missing smth? >>>> >>> >> >> >> >>> -- >>>> >>> >> >> >> >>> Michael >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> -- >>>> >>> >> >> >> >> Thanks, >>>> >>> >> >> >> >> Juned Khan >>>> >>> >> >> >> >> iNextrix Technologies Pvt Ltd. >>>> >>> >> >> >> >> www.inextrix.com<http://www.inextrix.com/> >>>> >>> >> >> >> > >>>> >>> >> >> >> > >>>> >>> >> >> >> > >>>> >>> >> >> >> > >>>> >>> >> >> >> > -- >>>> >>> >> >> >> > Thanks, >>>> >>> >> >> >> > Juned Khan >>>> >>> >> >> >> > iNextrix Technologies Pvt Ltd. >>>> >>> >> >> >> > www.inextrix.com<http://www.inextrix.com/> >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > -- >>>> >>> >> >> > Thanks, >>>> >>> >> >> > Juned Khan >>>> >>> >> >> > iNextrix Technologies Pvt Ltd. >>>> >>> >> >> > www.inextrix.com<http://www.inextrix.com/> >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > -- >>>> >>> >> > Thanks, >>>> >>> >> > Juned Khan >>>> >>> >> > iNextrix Technologies Pvt Ltd. >>>> >>> >> > www.inextrix.com<http://www.inextrix.com/> >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > -- >>>> >>> > Thanks, >>>> >>> > Juned Khan >>>> >>> > iNextrix Technologies Pvt Ltd. >>>> >>> > www.inextrix.com<http://www.inextrix.com/> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> Thanks, >>>> >> Juned Khan >>>> >> iNextrix Technologies Pvt Ltd. >>>> >> www.inextrix.com<http://www.inextrix.com/> >>>> > >>>> > >>>> > >>>> > >>>> > -- >>>> > Thanks, >>>> > Juned Khan >>>> > iNextrix Technologies Pvt Ltd. >>>> > www.inextrix.com<http://www.inextrix.com/> >>> >>> >>> >>> >>> -- >>> Thanks, >>> Juned Khan >>> iNextrix Technologies Pvt Ltd. >>> www.inextrix.com<http://www.inextrix.com/> >> >> >> >> >> -- >> Thanks, >> Juned Khan >> iNextrix Technologies Pvt Ltd. >> www.inextrix.com<http://www.inextrix.com/> > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com<http://www.inextrix.com/> > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li...<mailto:Pos...@li...> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com<http://www.inextrix.com/> -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com<http://www.inextrix.com/> ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech_______________________________________________ Postgres-xc-general mailing list Pos...@li... https://lists.sourceforge.net/lists/listinfo/postgres-xc-general |
From: Juned K. <jkh...@gm...> - 2014-03-19 11:56:17
|
Hi koichi, Having little bit issue. New datanode is added successfully and even database structure is copied on new datanode(i have added datanode3). But as tables are empty, i am just trying to add new datanode using below command koichi=# alter table t1 add node (datanode3); ERROR: Failed to get pooled connections But as you suggested i tried to clean the connection. postgres=# CLEAN CONNECTION TO COORDINATOR (coord1,coord2) FOR koichi; CLEAN CONNECTION postgres=# CLEAN CONNECTION TO NODE (datanode1,datanode2,datanode3) for database koichi; CLEAN CONNECTION But still its giving me same error, is there any other solution for this problem? Regards, Juned khan On Sat, Mar 15, 2014 at 11:59 AM, Juned Khan <jkh...@gm...> wrote: > Hi Koichi, > > Thanks for your information, > i just tried with stop and start components and it worked. > > This link will help me to fix future issues. And i ll keep in mind > about that documentation bug. > > > > > On Sat, Mar 15, 2014 at 3:56 AM, Koichi Suzuki <koi...@gm...>wrote: > >> pgxc_ctl command "add datanode master" should run all the necessary >> clean_connection calls. >> >> Try to run clean_connection SQL command (specific to XC) as seen in >> http://postgres-xc.sourceforge.net/docs/1_1/sql-cleanconnection.html >> >> I found a document bug in the example CLEAN CONNECTION TO COORDINATOR >> coord1,coord2 FOR DATABASEname; >> >> You should enclose set of node names with (). >> >> Regards; >> --- >> Koichi Suzuki >> >> >> 2014-03-14 5:59 GMT+00:00 Juned Khan <jkh...@gm...>: >> > Koichi=# alter table t1 add node (datanode3); >> > >> > ERROR: Failed to get pooled connections >> > CONTEXT: SQL statement "EXECUTE DIRECT ON (coord3) 'SELECT >> > pg_catalog.pg_try_advisory_xact_lock_shared(65535, 0)'" >> > >> > >> > >> > On Fri, Mar 14, 2014 at 11:20 AM, Juned Khan <jkh...@gm...> >> wrote: >> >> >> >> Hi Masataka, Koichi, >> >> >> >> New datanode is successfully added and all components are running.i >> have >> >> small doubt. >> >> >> >> As i just added new datanode so , will existing database automatically >> >> copied >> >> on this datanode or i have to create and import it manually from >> another >> >> datanode ? >> >> >> >> As per that video, we need to just fire alter query just like : >> >> alter table t1 add node (datanode3); >> >> is that so ? >> >> >> >> and yeah as of now i am getting Failed to get pooled connections error. >> >> >> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> >> ERROR: Failed to get pooled connections >> >> >> >> Please advice. >> >> >> >> >> >> >> >> On Fri, Mar 14, 2014 at 11:03 AM, Juned Khan <jkh...@gm...> >> wrote: >> >>> >> >>> Hi Masataka >> >>> >> >>> Thanks you very much, commands are working now. >> >>> I thought that element doesn't affect because at initial level >> >>> it was not showing any error. >> >>> >> >>> But thanks a lot, just fixed another same kind of problems. ;) >> >>> >> >>> >> >>> >> >>> On Fri, Mar 14, 2014 at 10:40 AM, Masataka Saito <pg...@gm...> >> >>> wrote: >> >>>> >> >>>> coordMasterServers defines 2 nodes, but coordSpecificExtraConfig and >> >>>> coordSpecificExtraPgHba have 4 elements. >> >>>> >> >>>> On 14 March 2014 13:51, Juned Khan <jkh...@gm...> wrote: >> >>>> > Hi Masataka, >> >>>> > >> >>>> > Please find the attachment. i have attached my pgxc_ctl.conf >> >>>> > >> >>>> > see my pastebin link : http://pastebin.com/n35QkmpK >> >>>> > >> >>>> > >> >>>> > On Fri, Mar 14, 2014 at 10:18 AM, Juned Khan <jkh...@gm...> >> >>>> > wrote: >> >>>> >> >> >>>> >> Hi Masataka, >> >>>> >> >> >>>> >> Please find the attachment. i have attached my pgxc_ctl.conf >> >>>> >> >> >>>> >> >> >>>> >> On Thu, Mar 13, 2014 at 11:39 PM, Masataka Saito < >> pg...@gm...> >> >>>> >> wrote: >> >>>> >>> >> >>>> >>> Can you provide your pgxc_ctl.conf? >> >>>> >>> >> >>>> >>> On 14 March 2014 00:31, Juned Khan <jkh...@gm...> wrote: >> >>>> >>> > Hi Masataka, >> >>>> >>> > >> >>>> >>> > Thanks for confirmation. >> >>>> >>> > is there any alternative for me to get this working? >> >>>> >>> > >> >>>> >>> > This can be very problematic with live servers. >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > On Thu, Mar 13, 2014 at 8:56 PM, Masataka Saito < >> pg...@gm...> >> >>>> >>> > wrote: >> >>>> >>> >> >> >>>> >>> >> I think there's no problem in your command line. >> >>>> >>> >> >> >>>> >>> >> >> >>>> >>> >> On 13 March 2014 23:05, Juned Khan <jkh...@gm...> >> wrote: >> >>>> >>> >> > Hi Masataka, >> >>>> >>> >> > >> >>>> >>> >> > Its fine but i think i have specified only one element for >> each >> >>>> >>> >> > parameter. >> >>>> >>> >> > please check my command if it needs any correction >> >>>> >>> >> > >> >>>> >>> >> > >> >>>> >>> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >> >>>> >>> >> > /home/postgres/pgxc/nodes/coord >> >>>> >>> >> > >> >>>> >>> >> > >> >>>> >>> >> > >> >>>> >>> >> > On Thu, Mar 13, 2014 at 7:07 PM, Masataka Saito >> >>>> >>> >> > <pg...@gm...> >> >>>> >>> >> > wrote: >> >>>> >>> >> >> >> >>>> >>> >> >> Sorry. I lead your misunderstanding. >> >>>> >>> >> >> I meant about array style parameters and number of >> elements in >> >>>> >>> >> >> each >> >>>> >>> >> >> array. >> >>>> >>> >> >> >> >>>> >>> >> >> For example, you have one coordNames, almost of array style >> >>>> >>> >> >> parameters >> >>>> >>> >> >> for coordinators except for coordPgHbaEntries -- >> coordPorts, >> >>>> >>> >> >> poolerPorts, coordMasterServers, coordMasterDirs, >> >>>> >>> >> >> coordMaxWALSenders, >> >>>> >>> >> >> coordSpecificExtraConfig, coordSpecificExtraPgHba -- must >> have >> >>>> >>> >> >> only >> >>>> >>> >> >> one element. >> >>>> >>> >> >> >> >>>> >>> >> >> That's all I can guess by your description. >> >>>> >>> >> >> >> >>>> >>> >> >> Regards. >> >>>> >>> >> >> >> >>>> >>> >> >> On 13 March 2014 18:07, Juned Khan <jkh...@gm...> >> >>>> >>> >> >> wrote: >> >>>> >>> >> >> > Hi Masataka, >> >>>> >>> >> >> > >> >>>> >>> >> >> > As per that documentation i have provided all those >> >>>> >>> >> >> > parameters >> >>>> >>> >> >> > what else i should add or remove to make that command >> >>>> >>> >> >> > working ? >> >>>> >>> >> >> > >> >>>> >>> >> >> > I want to add datanode and coordinator with below >> >>>> >>> >> >> > configuration >> >>>> >>> >> >> > and i think i specified all values as per that >> >>>> >>> >> >> > documentation. >> >>>> >>> >> >> > >> >>>> >>> >> >> > >> >>>> >>> >> >> >> Coordinator Master: >> >>>> >>> >> >> >> Nodename: 'coord3', port: 20004, pooler port: 20010 >> >>>> >>> >> >> >> MaxWalSenders: (null), Dir: >> >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/coord' >> >>>> >>> >> >> >> ExtraConfig: 'coordExtraConfig', Specific Extra >> Config: >> >>>> >>> >> >> >> 'none' >> >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32 >> ' >> >>>> >>> >> >> >> '192.168.1.73/32' >> >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >> >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> Datanode Master: >> >>>> >>> >> >> >> Nodename: 'datanode3', port: 20008 >> >>>> >>> >> >> >> MaxWALSenders: 3, Dir: >> >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/dn_master' >> >>>> >>> >> >> >> ExtraConfig: 'none', Specific Extra Config: 'none' >> >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32 >> ' >> >>>> >>> >> >> >> '192.168.1.73/32' >> >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >> >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >> >>>> >>> >> >> > >> >>>> >>> >> >> > >> >>>> >>> >> >> > >> >>>> >>> >> >> > Please suggest. >> >>>> >>> >> >> > >> >>>> >>> >> >> > Regards >> >>>> >>> >> >> > Juned Khan >> >>>> >>> >> >> > >> >>>> >>> >> >> > >> >>>> >>> >> >> > >> >>>> >>> >> >> > On Thu, Mar 13, 2014 at 1:06 PM, Masataka Saito >> >>>> >>> >> >> > <pg...@gm...> >> >>>> >>> >> >> > wrote: >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> On 12 March 2014 22:43, Juned Khan <jkh...@gm... >> > >> >>>> >>> >> >> >> wrote: >> >>>> >>> >> >> >> > Hi Koichi,Masataka >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > Successfully added gtm proxy but having issue with >> >>>> >>> >> >> >> > coordinator >> >>>> >>> >> >> >> > and >> >>>> >>> >> >> >> > datanode. >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > Coordinator : >> >>>> >>> >> >> >> > add coordinator master name host port pooler dir >> >>>> >>> >> >> >> > here what value i should use in place of pooler ? >> pooler >> >>>> >>> >> >> >> > port >> >>>> >>> >> >> >> > ? >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> pooler port >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 >> 20010 >> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >> >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in coordinator >> master >> >>>> >>> >> >> >> > configuration. >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> It is due to misconfigure. In detail, numbers of element >> >>>> >>> >> >> >> for >> >>>> >>> >> >> >> same >> >>>> >>> >> >> >> component are not same. >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 >> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >> >>>> >>> >> >> >> > ERROR: please specify the working director for the >> >>>> >>> >> >> >> > coordinator >> >>>> >>> >> >> >> > master >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > Datanode : >> >>>> >>> >> >> >> > add datanode master name host port dir >> >>>> >>> >> >> >> > pgxc_ctl add datanode master new node5 20008 >> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master >> >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in datanode master >> >>>> >>> >> >> >> > configuration. >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > Does earlier manual installation could be reason for >> this >> >>>> >>> >> >> >> > issue ? >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > P.S: >> >>>> >>> >> >> >> > gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: >> >>>> >>> >> >> >> > '/home/postgres/pgxc/nodes/gtm_pxy' >> >>>> >>> >> >> >> > Coordinator Master: Nodename: 'coord3', port: 20004, >> >>>> >>> >> >> >> > pooler >> >>>> >>> >> >> >> > port: >> >>>> >>> >> >> >> > 20010, >> >>>> >>> >> >> >> > dir:' /home/postgres/pgxc/nodes/coord' >> >>>> >>> >> >> >> > Datanode Master : Nodename: 'datanode3', port: >> 20008, >> >>>> >>> >> >> >> > dir:' >> >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master' >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > please look at my commands if its erroneous >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > Please advice. >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > Regards, >> >>>> >>> >> >> >> > Juned Khan >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > On Wed, Mar 12, 2014 at 11:45 AM, Juned Khan >> >>>> >>> >> >> >> > <jkh...@gm...> >> >>>> >>> >> >> >> > wrote: >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> I tried to add coordinator and datanode manually >> >>>> >>> >> >> >> >> and now it seems everything is messed up. >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> Every component is just stopped working, if i kill >> all >> >>>> >>> >> >> >> >> and >> >>>> >>> >> >> >> >> start all again then again its shows everything is >> >>>> >>> >> >> >> >> running >> >>>> >>> >> >> >> >> but in that case it takes too long to connect >> >>>> >>> >> >> >> >> dtabase(Psql >> >>>> >>> >> >> >> >> -dkoichi) >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> and at last it just fails to connect to the database >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> PGXC Psql -dkoichi >> >>>> >>> >> >> >> >> Selected coord1. >> >>>> >>> >> >> >> >> psql: server closed the connection unexpectedly >> >>>> >>> >> >> >> >> This probably means the server terminated >> >>>> >>> >> >> >> >> abnormally >> >>>> >>> >> >> >> >> before or while processing the request. >> >>>> >>> >> >> >> >> PGXC >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> Please advice. >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> On Wed, Mar 12, 2014 at 4:34 AM, Michael Paquier >> >>>> >>> >> >> >> >> <mic...@gm...> wrote: >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> On Wed, Mar 12, 2014 at 4:10 AM, Masataka Saito >> >>>> >>> >> >> >> >>> <pg...@gm...> >> >>>> >>> >> >> >> >>> wrote: >> >>>> >>> >> >> >> >>> > On 11 March 2014 16:42, Juned Khan >> >>>> >>> >> >> >> >>> > <jkh...@gm...> >> >>>> >>> >> >> >> >>> > wrote: >> >>>> >>> >> >> >> >>> >> Hi Masataka, >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> For testing i am tried to get this work added >> manual >> >>>> >>> >> >> >> >>> >> query >> >>>> >>> >> >> >> >>> >> for >> >>>> >>> >> >> >> >>> >> CREATE >> >>>> >>> >> >> >> >>> >> NODE. >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> Now its look like this: >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> postgres=# \q >> >>>> >>> >> >> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20004 >> >>>> >>> >> >> >> >>> >> Selected coord3. >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> postgres=# select * from pgxc_node; >> >>>> >>> >> >> >> >>> >> node_name | node_type | node_port | node_host | >> >>>> >>> >> >> >> >>> >> nodeis_primary >> >>>> >>> >> >> >> >>> >> | >> >>>> >>> >> >> >> >>> >> nodeis_preferred | node_id >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >> >>>> >>> >> >> >> >>> >> coord3 | C | 5432 | localhost | >> f >> >>>> >>> >> >> >> >>> >> | f >> >>>> >>> >> >> >> >>> >> | 1638403545 >> >>>> >>> >> >> >> >>> >> coord1 | C | 20004 | node3 | >> f >> >>>> >>> >> >> >> >>> >> | f >> >>>> >>> >> >> >> >>> >> | 1885696643 >> >>>> >>> >> >> >> >>> >> coord2 | C | 20005 | node4 | >> f >> >>>> >>> >> >> >> >>> >> | f >> >>>> >>> >> >> >> >>> >> | -1197102633 >> >>>> >>> >> >> >> >>> >> datanode1 | D | 20008 | node3 | >> f >> >>>> >>> >> >> >> >>> >> | f >> >>>> >>> >> >> >> >>> >> | 888802358 >> >>>> >>> >> >> >> >>> >> datanode2 | D | 20009 | node4 | >> f >> >>>> >>> >> >> >> >>> >> | f >> >>>> >>> >> >> >> >>> >> | -905831925 >> >>>> >>> >> >> >> >>> >> datanode3 | D | 20008 | node5 | >> f >> >>>> >>> >> >> >> >>> >> | f >> >>>> >>> >> >> >> >>> >> | -1894792127 >> >>>> >>> >> >> >> >>> >> (6 rows) >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> >> Here coord3 runs on 5432 which should 20004., it >> >>>> >>> >> >> >> >>> >> creates >> >>>> >>> >> >> >> >>> >> problem >> >>>> >>> >> >> >> >>> >> i >> >>>> >>> >> >> >> >>> >> think >> >>>> >>> >> >> >> >>> >> isn't it ? >> >>>> >>> >> >> >> >>> >> >> >>>> >>> >> >> >> >>> > >> >>>> >>> >> >> >> >>> > As far as I know, the local node information is >> not >> >>>> >>> >> >> >> >>> > important >> >>>> >>> >> >> >> >>> > and >> >>>> >>> >> >> >> >>> > it >> >>>> >>> >> >> >> >>> > is not necessary to update. >> >>>> >>> >> >> >> >>> > "pgxc_ctl add" corrects it by "ALTER NODE". >> >>>> >>> >> >> >> >>> CREATE NODE and DROP NODE only run locally. Why not >> >>>> >>> >> >> >> >>> ALTER >> >>>> >>> >> >> >> >>> NODE >> >>>> >>> >> >> >> >>> for >> >>>> >>> >> >> >> >>> consistency? Am I missing smth? >> >>>> >>> >> >> >> >>> -- >> >>>> >>> >> >> >> >>> Michael >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> >> >>>> >>> >> >> >> >> -- >> >>>> >>> >> >> >> >> Thanks, >> >>>> >>> >> >> >> >> Juned Khan >> >>>> >>> >> >> >> >> iNextrix Technologies Pvt Ltd. >> >>>> >>> >> >> >> >> www.inextrix.com >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > >> >>>> >>> >> >> >> > -- >> >>>> >>> >> >> >> > Thanks, >> >>>> >>> >> >> >> > Juned Khan >> >>>> >>> >> >> >> > iNextrix Technologies Pvt Ltd. >> >>>> >>> >> >> >> > www.inextrix.com >> >>>> >>> >> >> > >> >>>> >>> >> >> > >> >>>> >>> >> >> > >> >>>> >>> >> >> > >> >>>> >>> >> >> > -- >> >>>> >>> >> >> > Thanks, >> >>>> >>> >> >> > Juned Khan >> >>>> >>> >> >> > iNextrix Technologies Pvt Ltd. >> >>>> >>> >> >> > www.inextrix.com >> >>>> >>> >> > >> >>>> >>> >> > >> >>>> >>> >> > >> >>>> >>> >> > >> >>>> >>> >> > -- >> >>>> >>> >> > Thanks, >> >>>> >>> >> > Juned Khan >> >>>> >>> >> > iNextrix Technologies Pvt Ltd. >> >>>> >>> >> > www.inextrix.com >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > -- >> >>>> >>> > Thanks, >> >>>> >>> > Juned Khan >> >>>> >>> > iNextrix Technologies Pvt Ltd. >> >>>> >>> > www.inextrix.com >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> -- >> >>>> >> Thanks, >> >>>> >> Juned Khan >> >>>> >> iNextrix Technologies Pvt Ltd. >> >>>> >> www.inextrix.com >> >>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> > -- >> >>>> > Thanks, >> >>>> > Juned Khan >> >>>> > iNextrix Technologies Pvt Ltd. >> >>>> > www.inextrix.com >> >>> >> >>> >> >>> >> >>> >> >>> -- >> >>> Thanks, >> >>> Juned Khan >> >>> iNextrix Technologies Pvt Ltd. >> >>> www.inextrix.com >> >> >> >> >> >> >> >> >> >> -- >> >> Thanks, >> >> Juned Khan >> >> iNextrix Technologies Pvt Ltd. >> >> www.inextrix.com >> > >> > >> > >> > >> > -- >> > Thanks, >> > Juned Khan >> > iNextrix Technologies Pvt Ltd. >> > www.inextrix.com >> > >> > >> ------------------------------------------------------------------------------ >> > Learn Graph Databases - Download FREE O'Reilly Book >> > "Graph Databases" is the definitive new guide to graph databases and >> their >> > applications. Written by three acclaimed leaders in the field, >> > this first edition is now available. Download your free book today! >> > http://p.sf.net/sfu/13534_NeoTech >> > _______________________________________________ >> > Postgres-xc-general mailing list >> > Pos...@li... >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> > >> > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: 鈴木 幸市 <ko...@in...> - 2014-03-18 07:42:03
|
Good to hear that! --- Koichi Suzuki 2014/03/18 16:36、Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> のメール: Hi koichi, Its fine, i just fixed my issue. thanks for your concern ;) On Tue, Mar 18, 2014 at 9:40 AM, 鈴木 幸市 <ko...@in...<mailto:ko...@in...>> wrote: 2014/03/13 13:54、Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> のメール: Hi Koichi,Masataka Successfully added gtm proxy but having issue with coordinator and datanode. Coordinator : Syntax : add coordinator master name host port pooler dir here what value i should use in place of pooler ? pooler port ? Yes, pooler port. Command : pgxc_ctl add coordinator master coord3 node5 20004 20010 /home/postgres/pgxc/nodes/coord ERROR: sorry found some inconflicts in coordinator master configuration. Please check if you assigned duplicate resource to coord3? You should not assign the same port number or work directory which has already been assigned to other nodes. pgxc_ctl add coordinator master coord3 node5 20004 /home/postgres/pgxc/nodes/coord ERROR: please specify the working director for the coordinator master Datanode : Syntax : add datanode master name host port dir Command : pgxc_ctl add datanode master new node5 20008 /home/postgres/pgxc/nodes/dn_master ERROR: sorry found some inconflicts in datanode master configuration. The same as above. Sorry, I was on my way back to Japan and took long to respond. — Koichi Suzuki Does earlier manual installation could be reason for this issue ? P.S: gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: '/home/postgres/pgxc/nodes/gtm_pxy' Coordinator Master: Nodename: 'coord3', port: 20004, pooler port: 20010, dir:' /home/postgres/pgxc/nodes/coord' Datanode Master : Nodename: 'datanode3', port: 20008, dir:' /home/postgres/pgxc/nodes/dn_master' please look at my commands if its erroneous Please advice. -- Thanks, Juned Khan <http://www.inextrix.com/> ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech_______________________________________________ Postgres-xc-general mailing list Pos...@li...<mailto:Pos...@li...> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com<http://www.inextrix.com/> |
From: Juned K. <jkh...@gm...> - 2014-03-18 07:36:33
|
Hi koichi, Its fine, i just fixed my issue. thanks for your concern ;) On Tue, Mar 18, 2014 at 9:40 AM, 鈴木 幸市 <ko...@in...> wrote: > 2014/03/13 13:54、Juned Khan <jkh...@gm...> のメール: > > Hi Koichi,Masataka > > Successfully added *gtm* proxy but having issue with coordinator and > datanode. > > *Coordinator :* > *Syntax *: add coordinator master name host port pooler dir > here what value i should use in place of pooler ? pooler port ? > > > Yes, pooler port. > > > *Command* : pgxc_ctl add coordinator master coord3 node5 20004 20010 > /home/postgres/pgxc/nodes/coord > ERROR: sorry found some inconflicts in coordinator master configuration. > > > Please check if you assigned duplicate resource to coord3? You should > not assign the same port number or work directory which has already been > assigned to other nodes. > > > pgxc_ctl add coordinator master coord3 node5 20004 > /home/postgres/pgxc/nodes/coord > ERROR: please specify the working director for the coordinator master > > *Datanode :* > *Syntax :* add datanode master name host port dir > *Command :* pgxc_ctl add datanode master new node5 20008 > /home/postgres/pgxc/nodes/dn_master > ERROR: sorry found some inconflicts in datanode master configuration. > > > The same as above. > > Sorry, I was on my way back to Japan and took long to respond. > ― > Koichi Suzuki > > > Does earlier manual installation could be reason for this issue ? > > *P.S:* > *gtm_prxy* : Nodename: 'gtm_pxy3', port: 20001, dir: > '/home/postgres/pgxc/nodes/gtm_pxy' > *Coordinator Master*: Nodename: 'coord3', port: 20004, pooler port: > 20010, dir:' /home/postgres/pgxc/nodes/coord' > *Datanode Master* : Nodename: 'datanode3', port: 20008, dir:' > /home/postgres/pgxc/nodes/dn_master' > > please look at my commands if its erroneous > > Please advice. > > -- > Thanks, > Juned Khan > <http://www.inextrix.com/> > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/13534_NeoTech_______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > > > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Koichi S. <koi...@gm...> - 2014-03-18 06:53:20
|
As Mason mentioned, yes automatic selection of a coordinator will help for load balancing as well. JDBC has some capability which selects one of the connection point from url list but libpq does not. Libpq/JDBC extension for load balancing (and to search for live coordinator) will be a nice extension. --- Koichi Suzuki 2014-03-16 20:55 GMT+09:00 Mason Sharp <ms...@tr...>: > > > > On Sat, Mar 15, 2014 at 3:42 AM, Juned Khan <jkh...@gm...> wrote: >> >> Hi koichi,zhangzl >> >> Thanks for your suggestions. >> >> So i have to connect my application to directly one of coordinator right. >> I thought i have to connect my application to GTM from where my >> application >> will use one of available coordinator. >> >> In this case if i connect my application to connect specific coordinator >> using port >> then what will happen if that coordinator goes down ? >> >> in the case of GTM when i execute simply Psql -dkoichi then it selects >> available >> coordinator automatically, this is not possible to setup with application? >> if i am able to >> connect my application to directly GTM and then it will select any of >> available coordinator. >> >> Please suggest. >> >> > > That could possibly be an interesting extension to GTM... but then if GTM > goes down you application would still not know where to look for the > standby. > > You could also try the approach outlined in a blog posting here, essentially > using DNS to load balance amongst multiple coordinators. > > http://www.translattice.com/blog/Load_Balancing_Postgres-XC.shtml > > > -- > Mason Sharp > > TransLattice - http://www.translattice.com > Distributed and Clustered Database Solutions > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |
From: 鈴木 幸市 <ko...@in...> - 2014-03-18 04:10:43
|
2014/03/13 13:54、Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> のメール: Hi Koichi,Masataka Successfully added gtm proxy but having issue with coordinator and datanode. Coordinator : Syntax : add coordinator master name host port pooler dir here what value i should use in place of pooler ? pooler port ? Yes, pooler port. Command : pgxc_ctl add coordinator master coord3 node5 20004 20010 /home/postgres/pgxc/nodes/coord ERROR: sorry found some inconflicts in coordinator master configuration. Please check if you assigned duplicate resource to coord3? You should not assign the same port number or work directory which has already been assigned to other nodes. pgxc_ctl add coordinator master coord3 node5 20004 /home/postgres/pgxc/nodes/coord ERROR: please specify the working director for the coordinator master Datanode : Syntax : add datanode master name host port dir Command : pgxc_ctl add datanode master new node5 20008 /home/postgres/pgxc/nodes/dn_master ERROR: sorry found some inconflicts in datanode master configuration. The same as above. Sorry, I was on my way back to Japan and took long to respond. — Koichi Suzuki Does earlier manual installation could be reason for this issue ? P.S: gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: '/home/postgres/pgxc/nodes/gtm_pxy' Coordinator Master: Nodename: 'coord3', port: 20004, pooler port: 20010, dir:' /home/postgres/pgxc/nodes/coord' Datanode Master : Nodename: 'datanode3', port: 20008, dir:' /home/postgres/pgxc/nodes/dn_master' please look at my commands if its erroneous Please advice. -- Thanks, Juned Khan <http://www.inextrix.com/> ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech_______________________________________________ Postgres-xc-general mailing list Pos...@li... https://lists.sourceforge.net/lists/listinfo/postgres-xc-general |
From: Thom B. <th...@li...> - 2014-03-17 08:51:43
|
On 17 March 2014 07:27, Pavan Deolasee <pav...@gm...> wrote: > > > > On Sun, Mar 16, 2014 at 10:26 PM, Thom Brown <th...@li...> wrote: >> >> Hi, >> >> I've just started trying to familiarise myself with Postgres-XC, but >> I'm a bit concerned about dirty reads that occur: >> >> postgres=# begin; >> BEGIN >> postgres=# insert into moo (thing) values ('alpha'); >> INSERT 0 1 >> >> --another transaction inserts (6,beta) >> > > You did not say whether this "another transaction" is still open or already > committed. If that "another transaction" is committed, then I don't see any > problem with the results. The transaction running select query is in > read-committed mode and hence it can see the results of the other > transaction. Sorry guys. Yes, I've clearly confused isolation levels and this is indeed fine. The other session did commit its data by the time the first session went to query the table again, so there's nothing wrong with it. Apologies for the noise. Although my question about savepoints still stands. Will those be supported in future? Thanks Thom |
From: Pavan D. <pav...@gm...> - 2014-03-17 07:27:44
|
On Sun, Mar 16, 2014 at 10:26 PM, Thom Brown <th...@li...> wrote: > Hi, > > I've just started trying to familiarise myself with Postgres-XC, but > I'm a bit concerned about dirty reads that occur: > > postgres=# begin; > BEGIN > postgres=# insert into moo (thing) values ('alpha'); > INSERT 0 1 > > --another transaction inserts (6,beta) > > You did not say whether this "another transaction" is still open or already committed. If that "another transaction" is committed, then I don't see any problem with the results. The transaction running select query is in read-committed mode and hence it can see the results of the other transaction. Thanks, Pavan -- Pavan Deolasee http://www.linkedin.com/in/pavandeolasee |
From: Masataka S. <pg...@gm...> - 2014-03-17 06:44:41
|
Hello Thom, As far as I know, Postgres-XC supports the read committed isolation level and it is the default level. I think it is a critical problem that uncommitted data is visible in other READ COMMITTED transaction. I tested your report on 1.2 beta in my hand with 2 coordinators and 2 datanodes, but it is not reproduced. =================================== TERMINAL 1 =================================== $ pgxc_ctl Psql postgres bash_handler.c:install_pgxc_ctl_bash(33) Installing pgxc_ctl_bash script as /home/cx/pgxc_ctl/pgxc_ctl_bash. bash_handler.c:install_pgxc_ctl_bash(33) Installing pgxc_ctl_bash script as /home/cx/pgxc_ctl/pgxc_ctl_bash. pgxc_ctl.c:read_configuration(246) Reading configuration using /home/cx/pgxc_ctl/pgxc_ctl_bash --home /home/cx/pgxc_ctl --configuration /home/cx/pgxc_ctl/pgxc_ctl.conf pgxc_ctl.c:read_configuration(256) Finished to read configuration. pgxc_ctl.c:main(535) ******** PGXC_CTL START *************** pgxc_ctl.c:main(536) Current directory: /home/cx/pgxc_ctl do_command.c:do_singleLine(2330) Selected coord2. psql (PGXC , based on PG 9.3beta1) Type "help" for help. postgres=# create table t (id serial, val text); CREATE TABLE postgres=# begin; BEGIN postgres=# insert into t (val) values('alpha'); INSERT 0 1 postgres=# select * from t; id | val ----+------- 1 | alpha (1 row) =================================== TERMINAL 2 =================================== > pgxc_ctl Psql postgres bash_handler.c:install_pgxc_ctl_bash(33) Installing pgxc_ctl_bash script as /home/cx/pgxc_ctl/pgxc_ctl_bash. bash_handler.c:install_pgxc_ctl_bash(33) Installing pgxc_ctl_bash script as /home/cx/pgxc_ctl/pgxc_ctl_bash. pgxc_ctl.c:read_configuration(246) Reading configuration using /home/cx/pgxc_ctl/pgxc_ctl_bash --home /home/cx/pg xc_ctl --configuration /home/cx/pgxc_ctl/pgxc_ctl.conf pgxc_ctl.c:read_configuration(256) Finished to read configuration. pgxc_ctl.c:main(535) ******** PGXC_CTL START *************** pgxc_ctl.c:main(536) Current directory: /home/cx/pgxc_ctl do_command.c:do_singleLine(2330) Selected coord2. psql (PGXC , based on PG 9.3beta1) Type "help" for help. postgres=# begin; BEGIN postgres=# show transaction_isolation ; transaction_isolation ----------------------- read committed (1 row) postgres=# insert into t (val) values('beta'); INSERT 0 1 =================================== TERMINAL 1 =================================== postgres=# select * from t; id | val ----+------- 1 | alpha (1 row) =================================== TERMINAL 2 =================================== postgres=# insert into t (val) values('gamma'); INSERT 0 1 postgres=# select * from t; id | val ----+------- 2 | beta 3 | gamma (2 rows) =================================== TERMINAL 1 =================================== postgres=# select * from t; id | val ----+------- 1 | alpha (1 row) =================================== TERMINAL 2 =================================== postgres=# commit; COMMIT postgres=# select * from t; id | val ----+------- 2 | beta 3 | gamma (2 rows) =================================== TERMINAL 1 =================================== postgres=# select * from t; id | val ----+------- 1 | alpha 2 | beta 3 | gamma (3 rows) postgres=# rollback; ROLLBACK postgres=# select * from t; id | val ----+------- 2 | beta 3 | gamma (2 rows) =================================== TERMINAL 2 =================================== postgres=# select * from t; id | val ----+------- 2 | beta 3 | gamma (2 rows) Can you provide your PGXC version (or commit ID), deployment, configuration and whole the script? Regards. On 17 March 2014 01:56, Thom Brown <th...@li...> wrote: > Hi, > > I've just started trying to familiarise myself with Postgres-XC, but > I'm a bit concerned about dirty reads that occur: > > postgres=# begin; > BEGIN > postgres=# insert into moo (thing) values ('alpha'); > INSERT 0 1 > > --another transaction inserts (6,beta) > > postgres=# select * from moo; > id | thing > ----+------- > 1 | hello > 2 | howdy > 5 | alpha > 6 | beta > 3 | bark > 4 | hiss > (6 rows) > > -- we're seeing (6,beta) but shouldn't have visibility of it, > effectively a dirty read. > > -- another transaction inserts (7,gamma) > > postgres=# select * from moo; > id | thing > ----+------- > 1 | hello > 2 | howdy > 5 | alpha > 6 | beta > 3 | bark > 4 | hiss > 7 | gamma > (7 rows) > > -- (7, gamma) shouldn't be visible, another dirty read > > postgres=# delete from moo where thing = 'beta'; > DELETE 1 > -- we successfully deleted a row we shouldn't have been able to see. > > postgres=# rollback; > ROLLBACK > postgres=# select * from moo; > id | thing > ----+------- > 1 | hello > 2 | howdy > 6 | beta > 3 | bark > 4 | hiss > 7 | gamma > (6 rows) > > -- the (1, alpha) insert and (6,beta) delete were both rolled back. > > Is this supposed to be one of the trade-offs with write-scaling? > > I also noticed that savepoints aren't supported. Will those be added? > > Thanks > > Thom > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general |
From: Thom B. <th...@li...> - 2014-03-16 16:57:06
|
Hi, I've just started trying to familiarise myself with Postgres-XC, but I'm a bit concerned about dirty reads that occur: postgres=# begin; BEGIN postgres=# insert into moo (thing) values ('alpha'); INSERT 0 1 --another transaction inserts (6,beta) postgres=# select * from moo; id | thing ----+------- 1 | hello 2 | howdy 5 | alpha 6 | beta 3 | bark 4 | hiss (6 rows) -- we're seeing (6,beta) but shouldn't have visibility of it, effectively a dirty read. -- another transaction inserts (7,gamma) postgres=# select * from moo; id | thing ----+------- 1 | hello 2 | howdy 5 | alpha 6 | beta 3 | bark 4 | hiss 7 | gamma (7 rows) -- (7, gamma) shouldn't be visible, another dirty read postgres=# delete from moo where thing = 'beta'; DELETE 1 -- we successfully deleted a row we shouldn't have been able to see. postgres=# rollback; ROLLBACK postgres=# select * from moo; id | thing ----+------- 1 | hello 2 | howdy 6 | beta 3 | bark 4 | hiss 7 | gamma (6 rows) -- the (1, alpha) insert and (6,beta) delete were both rolled back. Is this supposed to be one of the trade-offs with write-scaling? I also noticed that savepoints aren't supported. Will those be added? Thanks Thom |
From: Mason S. <ms...@tr...> - 2014-03-16 11:55:41
|
On Sat, Mar 15, 2014 at 3:42 AM, Juned Khan <jkh...@gm...> wrote: > Hi koichi,zhangzl > > Thanks for your suggestions. > > So i have to connect my application to directly one of coordinator right. > I thought i have to connect my application to GTM from where my application > will use one of available coordinator. > > In this case if i connect my application to connect specific coordinator > using port > then what will happen if that coordinator goes down ? > > in the case of GTM when i execute simply Psql -dkoichi then it selects > available > coordinator automatically, this is not possible to setup with application? > if i am able to > connect my application to directly GTM and then it will select any of > available coordinator. > > Please suggest. > > > That could possibly be an interesting extension to GTM... but then if GTM goes down you application would still not know where to look for the standby. You could also try the approach outlined in a blog posting here, essentially using DNS to load balance amongst multiple coordinators. http://www.translattice.com/blog/Load_Balancing_Postgres-XC.shtml -- Mason Sharp TransLattice - http://www.translattice.com Distributed and Clustered Database Solutions |
From: Juned K. <jkh...@gm...> - 2014-03-15 07:42:51
|
Hi koichi,zhangzl Thanks for your suggestions. So i have to connect my application to directly one of coordinator right. I thought i have to connect my application to GTM from where my application will use one of available coordinator. In this case if i connect my application to connect specific coordinator using port then what will happen if that coordinator goes down ? in the case of GTM when i execute simply Psql -dkoichi then it selects available coordinator automatically, this is not possible to setup with application? if i am able to connect my application to directly GTM and then it will select any of available coordinator. Please suggest. On Sat, Mar 15, 2014 at 4:59 AM, 张仲良 <zh...@li...> wrote: > Use h instead of H; > > Maybe you should check your pg_hba.conf file if you still cannot connect > to it. > > > > *发件人:* Juned Khan [mailto:jkh...@gm...] > *发送时间:* 2014年3月14日 20:11 > *收件人:* Postgres-XC mailing list > *主题:* [Postgres-xc-general] Where to connect to communicate pgxc with > Application > > > > Hi all, > > I have just setup postgre-xc with four servers for testing. > > with this four system from GTM server i am able to connect > > to database and it selects one of coordinator,. it just works fine. > > But now i want to integrate this with my application where application > > is on separate server. > > so in this case where to connect in pgxc ? > > which IP and port i should set in my application to communicate with it? > > From some documentation i came to know i should connect to coordinator > > but from other system i am not able connect to the database. i am getting > this > > > > [postgres@localhost ~]$ psql -H 192.168.1.73 -U postgres -d dbname -p > 20004 > psql: warning: extra command-line argument "192.168.1.73" ignored > psql: could not connect to server: No such file or directory > Is the server running locally and accepting > connections on Unix domain socket "/tmp/.s.PGSQL.20004"? > > > > > > But on this server seems socket port is open > > [root@localhost ~]# netstat -pan | grep postgre > tcp 0 0 0.0.0.0:20004 0.0.0.0:* > LISTEN 9454/postgres > tcp 0 0 0.0.0.0:20008 0.0.0.0:* > LISTEN 9522/postgres > tcp 0 0 192.168.1.73:20008 192.168.1.73:33950 > ESTABLISHED 10025/postgres > tcp 0 0 192.168.1.73:33950 192.168.1.73:20008 > ESTABLISHED 9459/postgres > tcp 0 0 192.168.1.73:35014 192.168.1.73:20001 > ESTABLISHED 9522/postgres > tcp 0 0 192.168.1.73:35006 192.168.1.73:20001 > ESTABLISHED 9454/postgres > tcp 0 0 192.168.1.73:57794 192.168.1.43:20009 > ESTABLISHED 9459/postgres > tcp 0 0 :::20004 > :::* LISTEN 9454/postgres > tcp 0 0 :::20008 > :::* LISTEN 9522/postgres > udp 0 0 ::1:60142 > ::1:60142 ESTABLISHED 9522/postgres > udp 0 0 ::1:59683 > ::1:59683 ESTABLISHED 9454/postgres > unix 2 [ ACC ] STREAM LISTENING 84606 > 9454/postgres /tmp/.s.PGSQL.20004 > unix 2 [ ACC ] STREAM LISTENING 84641 > 9459/postgres /tmp/.s.PGPOOL.20010 > unix 2 [ ACC ] STREAM LISTENING 85268 > 9522/postgres /tmp/.s.PGSQL.20008 > > > > am i doing correct ? > > Please suggest. > > > > -- > > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-15 06:29:19
|
Hi Koichi, Thanks for your information, i just tried with stop and start components and it worked. This link will help me to fix future issues. And i ll keep in mind about that documentation bug. On Sat, Mar 15, 2014 at 3:56 AM, Koichi Suzuki <koi...@gm...>wrote: > pgxc_ctl command "add datanode master" should run all the necessary > clean_connection calls. > > Try to run clean_connection SQL command (specific to XC) as seen in > http://postgres-xc.sourceforge.net/docs/1_1/sql-cleanconnection.html > > I found a document bug in the example CLEAN CONNECTION TO COORDINATOR > coord1,coord2 FOR DATABASEname; > > You should enclose set of node names with (). > > Regards; > --- > Koichi Suzuki > > > 2014-03-14 5:59 GMT+00:00 Juned Khan <jkh...@gm...>: > > Koichi=# alter table t1 add node (datanode3); > > > > ERROR: Failed to get pooled connections > > CONTEXT: SQL statement "EXECUTE DIRECT ON (coord3) 'SELECT > > pg_catalog.pg_try_advisory_xact_lock_shared(65535, 0)'" > > > > > > > > On Fri, Mar 14, 2014 at 11:20 AM, Juned Khan <jkh...@gm...> > wrote: > >> > >> Hi Masataka, Koichi, > >> > >> New datanode is successfully added and all components are running.i have > >> small doubt. > >> > >> As i just added new datanode so , will existing database automatically > >> copied > >> on this datanode or i have to create and import it manually from another > >> datanode ? > >> > >> As per that video, we need to just fire alter query just like : > >> alter table t1 add node (datanode3); > >> is that so ? > >> > >> and yeah as of now i am getting Failed to get pooled connections error. > >> > >> koichi=# execute direct on (datanode3) 'select * from t1'; > >> ERROR: Failed to get pooled connections > >> > >> Please advice. > >> > >> > >> > >> On Fri, Mar 14, 2014 at 11:03 AM, Juned Khan <jkh...@gm...> > wrote: > >>> > >>> Hi Masataka > >>> > >>> Thanks you very much, commands are working now. > >>> I thought that element doesn't affect because at initial level > >>> it was not showing any error. > >>> > >>> But thanks a lot, just fixed another same kind of problems. ;) > >>> > >>> > >>> > >>> On Fri, Mar 14, 2014 at 10:40 AM, Masataka Saito <pg...@gm...> > >>> wrote: > >>>> > >>>> coordMasterServers defines 2 nodes, but coordSpecificExtraConfig and > >>>> coordSpecificExtraPgHba have 4 elements. > >>>> > >>>> On 14 March 2014 13:51, Juned Khan <jkh...@gm...> wrote: > >>>> > Hi Masataka, > >>>> > > >>>> > Please find the attachment. i have attached my pgxc_ctl.conf > >>>> > > >>>> > see my pastebin link : http://pastebin.com/n35QkmpK > >>>> > > >>>> > > >>>> > On Fri, Mar 14, 2014 at 10:18 AM, Juned Khan <jkh...@gm...> > >>>> > wrote: > >>>> >> > >>>> >> Hi Masataka, > >>>> >> > >>>> >> Please find the attachment. i have attached my pgxc_ctl.conf > >>>> >> > >>>> >> > >>>> >> On Thu, Mar 13, 2014 at 11:39 PM, Masataka Saito <pg...@gm... > > > >>>> >> wrote: > >>>> >>> > >>>> >>> Can you provide your pgxc_ctl.conf? > >>>> >>> > >>>> >>> On 14 March 2014 00:31, Juned Khan <jkh...@gm...> wrote: > >>>> >>> > Hi Masataka, > >>>> >>> > > >>>> >>> > Thanks for confirmation. > >>>> >>> > is there any alternative for me to get this working? > >>>> >>> > > >>>> >>> > This can be very problematic with live servers. > >>>> >>> > > >>>> >>> > > >>>> >>> > On Thu, Mar 13, 2014 at 8:56 PM, Masataka Saito < > pg...@gm...> > >>>> >>> > wrote: > >>>> >>> >> > >>>> >>> >> I think there's no problem in your command line. > >>>> >>> >> > >>>> >>> >> > >>>> >>> >> On 13 March 2014 23:05, Juned Khan <jkh...@gm...> > wrote: > >>>> >>> >> > Hi Masataka, > >>>> >>> >> > > >>>> >>> >> > Its fine but i think i have specified only one element for > each > >>>> >>> >> > parameter. > >>>> >>> >> > please check my command if it needs any correction > >>>> >>> >> > > >>>> >>> >> > > >>>> >>> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 > >>>> >>> >> > /home/postgres/pgxc/nodes/coord > >>>> >>> >> > > >>>> >>> >> > > >>>> >>> >> > > >>>> >>> >> > On Thu, Mar 13, 2014 at 7:07 PM, Masataka Saito > >>>> >>> >> > <pg...@gm...> > >>>> >>> >> > wrote: > >>>> >>> >> >> > >>>> >>> >> >> Sorry. I lead your misunderstanding. > >>>> >>> >> >> I meant about array style parameters and number of elements > in > >>>> >>> >> >> each > >>>> >>> >> >> array. > >>>> >>> >> >> > >>>> >>> >> >> For example, you have one coordNames, almost of array style > >>>> >>> >> >> parameters > >>>> >>> >> >> for coordinators except for coordPgHbaEntries -- coordPorts, > >>>> >>> >> >> poolerPorts, coordMasterServers, coordMasterDirs, > >>>> >>> >> >> coordMaxWALSenders, > >>>> >>> >> >> coordSpecificExtraConfig, coordSpecificExtraPgHba -- must > have > >>>> >>> >> >> only > >>>> >>> >> >> one element. > >>>> >>> >> >> > >>>> >>> >> >> That's all I can guess by your description. > >>>> >>> >> >> > >>>> >>> >> >> Regards. > >>>> >>> >> >> > >>>> >>> >> >> On 13 March 2014 18:07, Juned Khan <jkh...@gm...> > >>>> >>> >> >> wrote: > >>>> >>> >> >> > Hi Masataka, > >>>> >>> >> >> > > >>>> >>> >> >> > As per that documentation i have provided all those > >>>> >>> >> >> > parameters > >>>> >>> >> >> > what else i should add or remove to make that command > >>>> >>> >> >> > working ? > >>>> >>> >> >> > > >>>> >>> >> >> > I want to add datanode and coordinator with below > >>>> >>> >> >> > configuration > >>>> >>> >> >> > and i think i specified all values as per that > >>>> >>> >> >> > documentation. > >>>> >>> >> >> > > >>>> >>> >> >> > > >>>> >>> >> >> >> Coordinator Master: > >>>> >>> >> >> >> Nodename: 'coord3', port: 20004, pooler port: 20010 > >>>> >>> >> >> >> MaxWalSenders: (null), Dir: > >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/coord' > >>>> >>> >> >> >> ExtraConfig: 'coordExtraConfig', Specific Extra > Config: > >>>> >>> >> >> >> 'none' > >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32' > >>>> >>> >> >> >> '192.168.1.73/32' > >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) > >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' > >>>> >>> >> >> >> > >>>> >>> >> >> >> Datanode Master: > >>>> >>> >> >> >> Nodename: 'datanode3', port: 20008 > >>>> >>> >> >> >> MaxWALSenders: 3, Dir: > >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/dn_master' > >>>> >>> >> >> >> ExtraConfig: 'none', Specific Extra Config: 'none' > >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32' > >>>> >>> >> >> >> '192.168.1.73/32' > >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) > >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' > >>>> >>> >> >> > > >>>> >>> >> >> > > >>>> >>> >> >> > > >>>> >>> >> >> > Please suggest. > >>>> >>> >> >> > > >>>> >>> >> >> > Regards > >>>> >>> >> >> > Juned Khan > >>>> >>> >> >> > > >>>> >>> >> >> > > >>>> >>> >> >> > > >>>> >>> >> >> > On Thu, Mar 13, 2014 at 1:06 PM, Masataka Saito > >>>> >>> >> >> > <pg...@gm...> > >>>> >>> >> >> > wrote: > >>>> >>> >> >> >> > >>>> >>> >> >> >> On 12 March 2014 22:43, Juned Khan <jkh...@gm...> > >>>> >>> >> >> >> wrote: > >>>> >>> >> >> >> > Hi Koichi,Masataka > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > Successfully added gtm proxy but having issue with > >>>> >>> >> >> >> > coordinator > >>>> >>> >> >> >> > and > >>>> >>> >> >> >> > datanode. > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > Coordinator : > >>>> >>> >> >> >> > add coordinator master name host port pooler dir > >>>> >>> >> >> >> > here what value i should use in place of pooler ? > pooler > >>>> >>> >> >> >> > port > >>>> >>> >> >> >> > ? > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > >>>> >>> >> >> >> pooler port > >>>> >>> >> >> >> > >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 > 20010 > >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord > >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in coordinator > master > >>>> >>> >> >> >> > configuration. > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > >>>> >>> >> >> >> It is due to misconfigure. In detail, numbers of element > >>>> >>> >> >> >> for > >>>> >>> >> >> >> same > >>>> >>> >> >> >> component are not same. > >>>> >>> >> >> >> > >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 > >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord > >>>> >>> >> >> >> > ERROR: please specify the working director for the > >>>> >>> >> >> >> > coordinator > >>>> >>> >> >> >> > master > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > Datanode : > >>>> >>> >> >> >> > add datanode master name host port dir > >>>> >>> >> >> >> > pgxc_ctl add datanode master new node5 20008 > >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master > >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in datanode master > >>>> >>> >> >> >> > configuration. > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > Does earlier manual installation could be reason for > this > >>>> >>> >> >> >> > issue ? > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > P.S: > >>>> >>> >> >> >> > gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: > >>>> >>> >> >> >> > '/home/postgres/pgxc/nodes/gtm_pxy' > >>>> >>> >> >> >> > Coordinator Master: Nodename: 'coord3', port: 20004, > >>>> >>> >> >> >> > pooler > >>>> >>> >> >> >> > port: > >>>> >>> >> >> >> > 20010, > >>>> >>> >> >> >> > dir:' /home/postgres/pgxc/nodes/coord' > >>>> >>> >> >> >> > Datanode Master : Nodename: 'datanode3', port: 20008, > >>>> >>> >> >> >> > dir:' > >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master' > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > please look at my commands if its erroneous > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > Please advice. > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > Regards, > >>>> >>> >> >> >> > Juned Khan > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > On Wed, Mar 12, 2014 at 11:45 AM, Juned Khan > >>>> >>> >> >> >> > <jkh...@gm...> > >>>> >>> >> >> >> > wrote: > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> I tried to add coordinator and datanode manually > >>>> >>> >> >> >> >> and now it seems everything is messed up. > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> Every component is just stopped working, if i kill all > >>>> >>> >> >> >> >> and > >>>> >>> >> >> >> >> start all again then again its shows everything is > >>>> >>> >> >> >> >> running > >>>> >>> >> >> >> >> but in that case it takes too long to connect > >>>> >>> >> >> >> >> dtabase(Psql > >>>> >>> >> >> >> >> -dkoichi) > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> and at last it just fails to connect to the database > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> PGXC Psql -dkoichi > >>>> >>> >> >> >> >> Selected coord1. > >>>> >>> >> >> >> >> psql: server closed the connection unexpectedly > >>>> >>> >> >> >> >> This probably means the server terminated > >>>> >>> >> >> >> >> abnormally > >>>> >>> >> >> >> >> before or while processing the request. > >>>> >>> >> >> >> >> PGXC > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> Please advice. > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> On Wed, Mar 12, 2014 at 4:34 AM, Michael Paquier > >>>> >>> >> >> >> >> <mic...@gm...> wrote: > >>>> >>> >> >> >> >>> > >>>> >>> >> >> >> >>> On Wed, Mar 12, 2014 at 4:10 AM, Masataka Saito > >>>> >>> >> >> >> >>> <pg...@gm...> > >>>> >>> >> >> >> >>> wrote: > >>>> >>> >> >> >> >>> > On 11 March 2014 16:42, Juned Khan > >>>> >>> >> >> >> >>> > <jkh...@gm...> > >>>> >>> >> >> >> >>> > wrote: > >>>> >>> >> >> >> >>> >> Hi Masataka, > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> For testing i am tried to get this work added > manual > >>>> >>> >> >> >> >>> >> query > >>>> >>> >> >> >> >>> >> for > >>>> >>> >> >> >> >>> >> CREATE > >>>> >>> >> >> >> >>> >> NODE. > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> Now its look like this: > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> postgres=# \q > >>>> >>> >> >> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20004 > >>>> >>> >> >> >> >>> >> Selected coord3. > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> postgres=# select * from pgxc_node; > >>>> >>> >> >> >> >>> >> node_name | node_type | node_port | node_host | > >>>> >>> >> >> >> >>> >> nodeis_primary > >>>> >>> >> >> >> >>> >> | > >>>> >>> >> >> >> >>> >> nodeis_preferred | node_id > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> > -----------+-----------+-----------+-----------+----------------+------------------+------------- > >>>> >>> >> >> >> >>> >> coord3 | C | 5432 | localhost | f > >>>> >>> >> >> >> >>> >> | f > >>>> >>> >> >> >> >>> >> | 1638403545 > >>>> >>> >> >> >> >>> >> coord1 | C | 20004 | node3 | f > >>>> >>> >> >> >> >>> >> | f > >>>> >>> >> >> >> >>> >> | 1885696643 > >>>> >>> >> >> >> >>> >> coord2 | C | 20005 | node4 | f > >>>> >>> >> >> >> >>> >> | f > >>>> >>> >> >> >> >>> >> | -1197102633 > >>>> >>> >> >> >> >>> >> datanode1 | D | 20008 | node3 | f > >>>> >>> >> >> >> >>> >> | f > >>>> >>> >> >> >> >>> >> | 888802358 > >>>> >>> >> >> >> >>> >> datanode2 | D | 20009 | node4 | f > >>>> >>> >> >> >> >>> >> | f > >>>> >>> >> >> >> >>> >> | -905831925 > >>>> >>> >> >> >> >>> >> datanode3 | D | 20008 | node5 | f > >>>> >>> >> >> >> >>> >> | f > >>>> >>> >> >> >> >>> >> | -1894792127 > >>>> >>> >> >> >> >>> >> (6 rows) > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> >> Here coord3 runs on 5432 which should 20004., it > >>>> >>> >> >> >> >>> >> creates > >>>> >>> >> >> >> >>> >> problem > >>>> >>> >> >> >> >>> >> i > >>>> >>> >> >> >> >>> >> think > >>>> >>> >> >> >> >>> >> isn't it ? > >>>> >>> >> >> >> >>> >> > >>>> >>> >> >> >> >>> > > >>>> >>> >> >> >> >>> > As far as I know, the local node information is not > >>>> >>> >> >> >> >>> > important > >>>> >>> >> >> >> >>> > and > >>>> >>> >> >> >> >>> > it > >>>> >>> >> >> >> >>> > is not necessary to update. > >>>> >>> >> >> >> >>> > "pgxc_ctl add" corrects it by "ALTER NODE". > >>>> >>> >> >> >> >>> CREATE NODE and DROP NODE only run locally. Why not > >>>> >>> >> >> >> >>> ALTER > >>>> >>> >> >> >> >>> NODE > >>>> >>> >> >> >> >>> for > >>>> >>> >> >> >> >>> consistency? Am I missing smth? > >>>> >>> >> >> >> >>> -- > >>>> >>> >> >> >> >>> Michael > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> > >>>> >>> >> >> >> >> -- > >>>> >>> >> >> >> >> Thanks, > >>>> >>> >> >> >> >> Juned Khan > >>>> >>> >> >> >> >> iNextrix Technologies Pvt Ltd. > >>>> >>> >> >> >> >> www.inextrix.com > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > > >>>> >>> >> >> >> > -- > >>>> >>> >> >> >> > Thanks, > >>>> >>> >> >> >> > Juned Khan > >>>> >>> >> >> >> > iNextrix Technologies Pvt Ltd. > >>>> >>> >> >> >> > www.inextrix.com > >>>> >>> >> >> > > >>>> >>> >> >> > > >>>> >>> >> >> > > >>>> >>> >> >> > > >>>> >>> >> >> > -- > >>>> >>> >> >> > Thanks, > >>>> >>> >> >> > Juned Khan > >>>> >>> >> >> > iNextrix Technologies Pvt Ltd. > >>>> >>> >> >> > www.inextrix.com > >>>> >>> >> > > >>>> >>> >> > > >>>> >>> >> > > >>>> >>> >> > > >>>> >>> >> > -- > >>>> >>> >> > Thanks, > >>>> >>> >> > Juned Khan > >>>> >>> >> > iNextrix Technologies Pvt Ltd. > >>>> >>> >> > www.inextrix.com > >>>> >>> > > >>>> >>> > > >>>> >>> > > >>>> >>> > > >>>> >>> > -- > >>>> >>> > Thanks, > >>>> >>> > Juned Khan > >>>> >>> > iNextrix Technologies Pvt Ltd. > >>>> >>> > www.inextrix.com > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> -- > >>>> >> Thanks, > >>>> >> Juned Khan > >>>> >> iNextrix Technologies Pvt Ltd. > >>>> >> www.inextrix.com > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > -- > >>>> > Thanks, > >>>> > Juned Khan > >>>> > iNextrix Technologies Pvt Ltd. > >>>> > www.inextrix.com > >>> > >>> > >>> > >>> > >>> -- > >>> Thanks, > >>> Juned Khan > >>> iNextrix Technologies Pvt Ltd. > >>> www.inextrix.com > >> > >> > >> > >> > >> -- > >> Thanks, > >> Juned Khan > >> iNextrix Technologies Pvt Ltd. > >> www.inextrix.com > > > > > > > > > > -- > > Thanks, > > Juned Khan > > iNextrix Technologies Pvt Ltd. > > www.inextrix.com > > > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/13534_NeoTech > > _______________________________________________ > > Postgres-xc-general mailing list > > Pos...@li... > > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > > > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: 张仲良 <zh...@li...> - 2014-03-14 23:30:02
|
Use h instead of H; Maybe you should check your pg_hba.conf file if you still cannot connect to it. 发件人: Juned Khan [mailto:jkh...@gm...] 发送时间: 2014年3月14日 20:11 收件人: Postgres-XC mailing list 主题: [Postgres-xc-general] Where to connect to communicate pgxc with Application Hi all, I have just setup postgre-xc with four servers for testing. with this four system from GTM server i am able to connect to database and it selects one of coordinator,. it just works fine. But now i want to integrate this with my application where application is on separate server. so in this case where to connect in pgxc ? which IP and port i should set in my application to communicate with it? >From some documentation i came to know i should connect to coordinator but from other system i am not able connect to the database. i am getting this [postgres@localhost ~]$ psql -H 192.168.1.73 -U postgres -d dbname -p 20004 psql: warning: extra command-line argument "192.168.1.73" ignored psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.20004"? But on this server seems socket port is open [root@localhost ~]# netstat -pan | grep postgre tcp 0 0 0.0.0.0:20004 0.0.0.0:* LISTEN 9454/postgres tcp 0 0 0.0.0.0:20008 0.0.0.0:* LISTEN 9522/postgres tcp 0 0 192.168.1.73:20008 192.168.1.73:33950 ESTABLISHED 10025/postgres tcp 0 0 192.168.1.73:33950 192.168.1.73:20008 ESTABLISHED 9459/postgres tcp 0 0 192.168.1.73:35014 192.168.1.73:20001 ESTABLISHED 9522/postgres tcp 0 0 192.168.1.73:35006 192.168.1.73:20001 ESTABLISHED 9454/postgres tcp 0 0 192.168.1.73:57794 192.168.1.43:20009 ESTABLISHED 9459/postgres tcp 0 0 :::20004 :::* LISTEN 9454/postgres tcp 0 0 :::20008 :::* LISTEN 9522/postgres udp 0 0 ::1:60142 ::1:60142 ESTABLISHED 9522/postgres udp 0 0 ::1:59683 ::1:59683 ESTABLISHED 9454/postgres unix 2 [ ACC ] STREAM LISTENING 84606 9454/postgres /tmp/.s.PGSQL.20004 unix 2 [ ACC ] STREAM LISTENING 84641 9459/postgres /tmp/.s.PGPOOL.20010 unix 2 [ ACC ] STREAM LISTENING 85268 9522/postgres /tmp/.s.PGSQL.20008 am i doing correct ? Please suggest. -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. <http://www.inextrix.com/> www.inextrix.com |
From: Koichi S. <koi...@gm...> - 2014-03-14 22:33:21
|
You need to specify coordinator's host and port with -h and -p option respectively. Otherwise, psql will assume local host and 5432 for these parameter, which you have not configured. When you create tables (this is mostly done in the above case), Postgres-XC assumes each table is distributed by the first column. You can correct this afterwords with ALTER TABLE. If you'd like to distribute/replicate tables, you should run CREATE TABLE in advance. Then data will be distributed as you wish from the scratch. Regards; --- Koichi Suzuki 2014-03-14 9:08 GMT+00:00 Juned Khan <jkh...@gm...>: > Hi All, > > I have just setup postgre-xc with four servers for testing. > but i have some questions regarding import process. > > I just found this link to backup and dump > http://postgres-xc.sourceforge.net/docs/1_0/backup-dump.html > > my question is do i need to specifu coordinator name or datanode name > or port for restoring dump file? > > If i don't specify datanode and port then where this data will be imported ? > > PGXC psql -d astpp /home/postgres/itn-gtm.sql > psql: could not connect to server: No such file or directory > Is the server running locally and accepting > connections on Unix domain socket "/tmp/.s.PGSQL.5432"? > > PGXC psql astpp < /home/postgres/itn-gtm.sql > psql: could not connect to server: No such file or directory > Is the server running locally and accepting > connections on Unix domain socket "/tmp/.s.PGSQL.5432"? > > I have dump of postgresql database which i want to import in postgre-xc > but its gving me above error > > So here what i need to do make it working ? > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |
From: Koichi S. <koi...@gm...> - 2014-03-14 22:29:49
|
Application can connect to ANY coordinator (not datanode). So most likely is to assign different coordinator to different application instance. You can use usual -p and -h parameter for different coordinator from your applications. All the coordinator provides the same database view and any updating transaction is propagated to all the node without conflict. Regards; --- Koichi Suzuki 2014-03-14 12:11 GMT+00:00 Juned Khan <jkh...@gm...>: > Hi all, > > I have just setup postgre-xc with four servers for testing. > with this four system from GTM server i am able to connect > to database and it selects one of coordinator,. it just works fine. > > But now i want to integrate this with my application where application > is on separate server. > > so in this case where to connect in pgxc ? > > which IP and port i should set in my application to communicate with it? > > From some documentation i came to know i should connect to coordinator > but from other system i am not able connect to the database. i am getting > this > >> [postgres@localhost ~]$ psql -H 192.168.1.73 -U postgres -d dbname -p >> 20004 >> psql: warning: extra command-line argument "192.168.1.73" ignored >> psql: could not connect to server: No such file or directory >> Is the server running locally and accepting >> connections on Unix domain socket "/tmp/.s.PGSQL.20004"? > > > > But on this server seems socket port is open >> >> [root@localhost ~]# netstat -pan | grep postgre >> tcp 0 0 0.0.0.0:20004 0.0.0.0:* >> LISTEN 9454/postgres >> tcp 0 0 0.0.0.0:20008 0.0.0.0:* >> LISTEN 9522/postgres >> tcp 0 0 192.168.1.73:20008 192.168.1.73:33950 >> ESTABLISHED 10025/postgres >> tcp 0 0 192.168.1.73:33950 192.168.1.73:20008 >> ESTABLISHED 9459/postgres >> tcp 0 0 192.168.1.73:35014 192.168.1.73:20001 >> ESTABLISHED 9522/postgres >> tcp 0 0 192.168.1.73:35006 192.168.1.73:20001 >> ESTABLISHED 9454/postgres >> tcp 0 0 192.168.1.73:57794 192.168.1.43:20009 >> ESTABLISHED 9459/postgres >> tcp 0 0 :::20004 :::* >> LISTEN 9454/postgres >> tcp 0 0 :::20008 :::* >> LISTEN 9522/postgres >> udp 0 0 ::1:60142 ::1:60142 >> ESTABLISHED 9522/postgres >> udp 0 0 ::1:59683 ::1:59683 >> ESTABLISHED 9454/postgres >> unix 2 [ ACC ] STREAM LISTENING 84606 9454/postgres >> /tmp/.s.PGSQL.20004 >> unix 2 [ ACC ] STREAM LISTENING 84641 9459/postgres >> /tmp/.s.PGPOOL.20010 >> unix 2 [ ACC ] STREAM LISTENING 85268 9522/postgres >> /tmp/.s.PGSQL.20008 > > > > > am i doing correct ? > > Please suggest. > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |
From: Koichi S. <koi...@gm...> - 2014-03-14 22:26:59
|
pgxc_ctl command "add datanode master" should run all the necessary clean_connection calls. Try to run clean_connection SQL command (specific to XC) as seen in http://postgres-xc.sourceforge.net/docs/1_1/sql-cleanconnection.html I found a document bug in the example CLEAN CONNECTION TO COORDINATOR coord1,coord2 FOR DATABASEname; You should enclose set of node names with (). Regards; --- Koichi Suzuki 2014-03-14 5:59 GMT+00:00 Juned Khan <jkh...@gm...>: > Koichi=# alter table t1 add node (datanode3); > > ERROR: Failed to get pooled connections > CONTEXT: SQL statement "EXECUTE DIRECT ON (coord3) 'SELECT > pg_catalog.pg_try_advisory_xact_lock_shared(65535, 0)'" > > > > On Fri, Mar 14, 2014 at 11:20 AM, Juned Khan <jkh...@gm...> wrote: >> >> Hi Masataka, Koichi, >> >> New datanode is successfully added and all components are running.i have >> small doubt. >> >> As i just added new datanode so , will existing database automatically >> copied >> on this datanode or i have to create and import it manually from another >> datanode ? >> >> As per that video, we need to just fire alter query just like : >> alter table t1 add node (datanode3); >> is that so ? >> >> and yeah as of now i am getting Failed to get pooled connections error. >> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> ERROR: Failed to get pooled connections >> >> Please advice. >> >> >> >> On Fri, Mar 14, 2014 at 11:03 AM, Juned Khan <jkh...@gm...> wrote: >>> >>> Hi Masataka >>> >>> Thanks you very much, commands are working now. >>> I thought that element doesn't affect because at initial level >>> it was not showing any error. >>> >>> But thanks a lot, just fixed another same kind of problems. ;) >>> >>> >>> >>> On Fri, Mar 14, 2014 at 10:40 AM, Masataka Saito <pg...@gm...> >>> wrote: >>>> >>>> coordMasterServers defines 2 nodes, but coordSpecificExtraConfig and >>>> coordSpecificExtraPgHba have 4 elements. >>>> >>>> On 14 March 2014 13:51, Juned Khan <jkh...@gm...> wrote: >>>> > Hi Masataka, >>>> > >>>> > Please find the attachment. i have attached my pgxc_ctl.conf >>>> > >>>> > see my pastebin link : http://pastebin.com/n35QkmpK >>>> > >>>> > >>>> > On Fri, Mar 14, 2014 at 10:18 AM, Juned Khan <jkh...@gm...> >>>> > wrote: >>>> >> >>>> >> Hi Masataka, >>>> >> >>>> >> Please find the attachment. i have attached my pgxc_ctl.conf >>>> >> >>>> >> >>>> >> On Thu, Mar 13, 2014 at 11:39 PM, Masataka Saito <pg...@gm...> >>>> >> wrote: >>>> >>> >>>> >>> Can you provide your pgxc_ctl.conf? >>>> >>> >>>> >>> On 14 March 2014 00:31, Juned Khan <jkh...@gm...> wrote: >>>> >>> > Hi Masataka, >>>> >>> > >>>> >>> > Thanks for confirmation. >>>> >>> > is there any alternative for me to get this working? >>>> >>> > >>>> >>> > This can be very problematic with live servers. >>>> >>> > >>>> >>> > >>>> >>> > On Thu, Mar 13, 2014 at 8:56 PM, Masataka Saito <pg...@gm...> >>>> >>> > wrote: >>>> >>> >> >>>> >>> >> I think there's no problem in your command line. >>>> >>> >> >>>> >>> >> >>>> >>> >> On 13 March 2014 23:05, Juned Khan <jkh...@gm...> wrote: >>>> >>> >> > Hi Masataka, >>>> >>> >> > >>>> >>> >> > Its fine but i think i have specified only one element for each >>>> >>> >> > parameter. >>>> >>> >> > please check my command if it needs any correction >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >>>> >>> >> > /home/postgres/pgxc/nodes/coord >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > On Thu, Mar 13, 2014 at 7:07 PM, Masataka Saito >>>> >>> >> > <pg...@gm...> >>>> >>> >> > wrote: >>>> >>> >> >> >>>> >>> >> >> Sorry. I lead your misunderstanding. >>>> >>> >> >> I meant about array style parameters and number of elements in >>>> >>> >> >> each >>>> >>> >> >> array. >>>> >>> >> >> >>>> >>> >> >> For example, you have one coordNames, almost of array style >>>> >>> >> >> parameters >>>> >>> >> >> for coordinators except for coordPgHbaEntries -- coordPorts, >>>> >>> >> >> poolerPorts, coordMasterServers, coordMasterDirs, >>>> >>> >> >> coordMaxWALSenders, >>>> >>> >> >> coordSpecificExtraConfig, coordSpecificExtraPgHba -- must have >>>> >>> >> >> only >>>> >>> >> >> one element. >>>> >>> >> >> >>>> >>> >> >> That's all I can guess by your description. >>>> >>> >> >> >>>> >>> >> >> Regards. >>>> >>> >> >> >>>> >>> >> >> On 13 March 2014 18:07, Juned Khan <jkh...@gm...> >>>> >>> >> >> wrote: >>>> >>> >> >> > Hi Masataka, >>>> >>> >> >> > >>>> >>> >> >> > As per that documentation i have provided all those >>>> >>> >> >> > parameters >>>> >>> >> >> > what else i should add or remove to make that command >>>> >>> >> >> > working ? >>>> >>> >> >> > >>>> >>> >> >> > I want to add datanode and coordinator with below >>>> >>> >> >> > configuration >>>> >>> >> >> > and i think i specified all values as per that >>>> >>> >> >> > documentation. >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> >> Coordinator Master: >>>> >>> >> >> >> Nodename: 'coord3', port: 20004, pooler port: 20010 >>>> >>> >> >> >> MaxWalSenders: (null), Dir: >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/coord' >>>> >>> >> >> >> ExtraConfig: 'coordExtraConfig', Specific Extra Config: >>>> >>> >> >> >> 'none' >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32' >>>> >>> >> >> >> '192.168.1.73/32' >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >>>> >>> >> >> >> >>>> >>> >> >> >> Datanode Master: >>>> >>> >> >> >> Nodename: 'datanode3', port: 20008 >>>> >>> >> >> >> MaxWALSenders: 3, Dir: >>>> >>> >> >> >> '/home/postgres/pgxc/nodes/dn_master' >>>> >>> >> >> >> ExtraConfig: 'none', Specific Extra Config: 'none' >>>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32' >>>> >>> >> >> >> '192.168.1.73/32' >>>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >>>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > Please suggest. >>>> >>> >> >> > >>>> >>> >> >> > Regards >>>> >>> >> >> > Juned Khan >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > On Thu, Mar 13, 2014 at 1:06 PM, Masataka Saito >>>> >>> >> >> > <pg...@gm...> >>>> >>> >> >> > wrote: >>>> >>> >> >> >> >>>> >>> >> >> >> On 12 March 2014 22:43, Juned Khan <jkh...@gm...> >>>> >>> >> >> >> wrote: >>>> >>> >> >> >> > Hi Koichi,Masataka >>>> >>> >> >> >> > >>>> >>> >> >> >> > Successfully added gtm proxy but having issue with >>>> >>> >> >> >> > coordinator >>>> >>> >> >> >> > and >>>> >>> >> >> >> > datanode. >>>> >>> >> >> >> > >>>> >>> >> >> >> > Coordinator : >>>> >>> >> >> >> > add coordinator master name host port pooler dir >>>> >>> >> >> >> > here what value i should use in place of pooler ? pooler >>>> >>> >> >> >> > port >>>> >>> >> >> >> > ? >>>> >>> >> >> >> > >>>> >>> >> >> >> >>>> >>> >> >> >> pooler port >>>> >>> >> >> >> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in coordinator master >>>> >>> >> >> >> > configuration. >>>> >>> >> >> >> > >>>> >>> >> >> >> >>>> >>> >> >> >> It is due to misconfigure. In detail, numbers of element >>>> >>> >> >> >> for >>>> >>> >> >> >> same >>>> >>> >> >> >> component are not same. >>>> >>> >> >> >> >>>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >>>> >>> >> >> >> > ERROR: please specify the working director for the >>>> >>> >> >> >> > coordinator >>>> >>> >> >> >> > master >>>> >>> >> >> >> > >>>> >>> >> >> >> > Datanode : >>>> >>> >> >> >> > add datanode master name host port dir >>>> >>> >> >> >> > pgxc_ctl add datanode master new node5 20008 >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master >>>> >>> >> >> >> > ERROR: sorry found some inconflicts in datanode master >>>> >>> >> >> >> > configuration. >>>> >>> >> >> >> > >>>> >>> >> >> >> > Does earlier manual installation could be reason for this >>>> >>> >> >> >> > issue ? >>>> >>> >> >> >> > >>>> >>> >> >> >> > P.S: >>>> >>> >> >> >> > gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: >>>> >>> >> >> >> > '/home/postgres/pgxc/nodes/gtm_pxy' >>>> >>> >> >> >> > Coordinator Master: Nodename: 'coord3', port: 20004, >>>> >>> >> >> >> > pooler >>>> >>> >> >> >> > port: >>>> >>> >> >> >> > 20010, >>>> >>> >> >> >> > dir:' /home/postgres/pgxc/nodes/coord' >>>> >>> >> >> >> > Datanode Master : Nodename: 'datanode3', port: 20008, >>>> >>> >> >> >> > dir:' >>>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master' >>>> >>> >> >> >> > >>>> >>> >> >> >> > please look at my commands if its erroneous >>>> >>> >> >> >> > >>>> >>> >> >> >> > Please advice. >>>> >>> >> >> >> > >>>> >>> >> >> >> > Regards, >>>> >>> >> >> >> > Juned Khan >>>> >>> >> >> >> > >>>> >>> >> >> >> > >>>> >>> >> >> >> > >>>> >>> >> >> >> > On Wed, Mar 12, 2014 at 11:45 AM, Juned Khan >>>> >>> >> >> >> > <jkh...@gm...> >>>> >>> >> >> >> > wrote: >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> I tried to add coordinator and datanode manually >>>> >>> >> >> >> >> and now it seems everything is messed up. >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> Every component is just stopped working, if i kill all >>>> >>> >> >> >> >> and >>>> >>> >> >> >> >> start all again then again its shows everything is >>>> >>> >> >> >> >> running >>>> >>> >> >> >> >> but in that case it takes too long to connect >>>> >>> >> >> >> >> dtabase(Psql >>>> >>> >> >> >> >> -dkoichi) >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> and at last it just fails to connect to the database >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> PGXC Psql -dkoichi >>>> >>> >> >> >> >> Selected coord1. >>>> >>> >> >> >> >> psql: server closed the connection unexpectedly >>>> >>> >> >> >> >> This probably means the server terminated >>>> >>> >> >> >> >> abnormally >>>> >>> >> >> >> >> before or while processing the request. >>>> >>> >> >> >> >> PGXC >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> Please advice. >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> On Wed, Mar 12, 2014 at 4:34 AM, Michael Paquier >>>> >>> >> >> >> >> <mic...@gm...> wrote: >>>> >>> >> >> >> >>> >>>> >>> >> >> >> >>> On Wed, Mar 12, 2014 at 4:10 AM, Masataka Saito >>>> >>> >> >> >> >>> <pg...@gm...> >>>> >>> >> >> >> >>> wrote: >>>> >>> >> >> >> >>> > On 11 March 2014 16:42, Juned Khan >>>> >>> >> >> >> >>> > <jkh...@gm...> >>>> >>> >> >> >> >>> > wrote: >>>> >>> >> >> >> >>> >> Hi Masataka, >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> For testing i am tried to get this work added manual >>>> >>> >> >> >> >>> >> query >>>> >>> >> >> >> >>> >> for >>>> >>> >> >> >> >>> >> CREATE >>>> >>> >> >> >> >>> >> NODE. >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> Now its look like this: >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> postgres=# \q >>>> >>> >> >> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20004 >>>> >>> >> >> >> >>> >> Selected coord3. >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> postgres=# select * from pgxc_node; >>>> >>> >> >> >> >>> >> node_name | node_type | node_port | node_host | >>>> >>> >> >> >> >>> >> nodeis_primary >>>> >>> >> >> >> >>> >> | >>>> >>> >> >> >> >>> >> nodeis_preferred | node_id >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >>>> >>> >> >> >> >>> >> coord3 | C | 5432 | localhost | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | 1638403545 >>>> >>> >> >> >> >>> >> coord1 | C | 20004 | node3 | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | 1885696643 >>>> >>> >> >> >> >>> >> coord2 | C | 20005 | node4 | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | -1197102633 >>>> >>> >> >> >> >>> >> datanode1 | D | 20008 | node3 | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | 888802358 >>>> >>> >> >> >> >>> >> datanode2 | D | 20009 | node4 | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | -905831925 >>>> >>> >> >> >> >>> >> datanode3 | D | 20008 | node5 | f >>>> >>> >> >> >> >>> >> | f >>>> >>> >> >> >> >>> >> | -1894792127 >>>> >>> >> >> >> >>> >> (6 rows) >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> >> Here coord3 runs on 5432 which should 20004., it >>>> >>> >> >> >> >>> >> creates >>>> >>> >> >> >> >>> >> problem >>>> >>> >> >> >> >>> >> i >>>> >>> >> >> >> >>> >> think >>>> >>> >> >> >> >>> >> isn't it ? >>>> >>> >> >> >> >>> >> >>>> >>> >> >> >> >>> > >>>> >>> >> >> >> >>> > As far as I know, the local node information is not >>>> >>> >> >> >> >>> > important >>>> >>> >> >> >> >>> > and >>>> >>> >> >> >> >>> > it >>>> >>> >> >> >> >>> > is not necessary to update. >>>> >>> >> >> >> >>> > "pgxc_ctl add" corrects it by "ALTER NODE". >>>> >>> >> >> >> >>> CREATE NODE and DROP NODE only run locally. Why not >>>> >>> >> >> >> >>> ALTER >>>> >>> >> >> >> >>> NODE >>>> >>> >> >> >> >>> for >>>> >>> >> >> >> >>> consistency? Am I missing smth? >>>> >>> >> >> >> >>> -- >>>> >>> >> >> >> >>> Michael >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> >>>> >>> >> >> >> >> -- >>>> >>> >> >> >> >> Thanks, >>>> >>> >> >> >> >> Juned Khan >>>> >>> >> >> >> >> iNextrix Technologies Pvt Ltd. >>>> >>> >> >> >> >> www.inextrix.com >>>> >>> >> >> >> > >>>> >>> >> >> >> > >>>> >>> >> >> >> > >>>> >>> >> >> >> > >>>> >>> >> >> >> > -- >>>> >>> >> >> >> > Thanks, >>>> >>> >> >> >> > Juned Khan >>>> >>> >> >> >> > iNextrix Technologies Pvt Ltd. >>>> >>> >> >> >> > www.inextrix.com >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > >>>> >>> >> >> > -- >>>> >>> >> >> > Thanks, >>>> >>> >> >> > Juned Khan >>>> >>> >> >> > iNextrix Technologies Pvt Ltd. >>>> >>> >> >> > www.inextrix.com >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > >>>> >>> >> > -- >>>> >>> >> > Thanks, >>>> >>> >> > Juned Khan >>>> >>> >> > iNextrix Technologies Pvt Ltd. >>>> >>> >> > www.inextrix.com >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > -- >>>> >>> > Thanks, >>>> >>> > Juned Khan >>>> >>> > iNextrix Technologies Pvt Ltd. >>>> >>> > www.inextrix.com >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> Thanks, >>>> >> Juned Khan >>>> >> iNextrix Technologies Pvt Ltd. >>>> >> www.inextrix.com >>>> > >>>> > >>>> > >>>> > >>>> > -- >>>> > Thanks, >>>> > Juned Khan >>>> > iNextrix Technologies Pvt Ltd. >>>> > www.inextrix.com >>> >>> >>> >>> >>> -- >>> Thanks, >>> Juned Khan >>> iNextrix Technologies Pvt Ltd. >>> www.inextrix.com >> >> >> >> >> -- >> Thanks, >> Juned Khan >> iNextrix Technologies Pvt Ltd. >> www.inextrix.com > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |
From: Juned K. <jkh...@gm...> - 2014-03-14 12:11:36
|
Hi all, I have just setup postgre-xc with four servers for testing. with this four system from GTM server i am able to connect to database and it selects one of coordinator,. it just works fine. But now i want to integrate this with my application where application is on separate server. so in this case where to connect in pgxc ? which IP and port i should set in my application to communicate with it? >From some documentation i came to know i should connect to coordinator but from other system i am not able connect to the database. i am getting this [postgres@localhost ~]$ psql -H 192.168.1.73 -U postgres -d dbname -p 20004 > psql: warning: extra command-line argument "192.168.1.73" ignored > psql: could not connect to server: No such file or directory > Is the server running locally and accepting > connections on Unix domain socket "/tmp/.s.PGSQL.20004"? > But on this server seems socket port is open > [root@localhost ~]# netstat -pan | grep postgre > tcp 0 0 0.0.0.0:20004 0.0.0.0:* > LISTEN 9454/postgres > tcp 0 0 0.0.0.0:20008 0.0.0.0:* > LISTEN 9522/postgres > tcp 0 0 192.168.1.73:20008 192.168.1.73:33950 > ESTABLISHED 10025/postgres > tcp 0 0 192.168.1.73:33950 192.168.1.73:20008 > ESTABLISHED 9459/postgres > tcp 0 0 192.168.1.73:35014 192.168.1.73:20001 > ESTABLISHED 9522/postgres > tcp 0 0 192.168.1.73:35006 192.168.1.73:20001 > ESTABLISHED 9454/postgres > tcp 0 0 192.168.1.73:57794 192.168.1.43:20009 > ESTABLISHED 9459/postgres > tcp 0 0 :::20004 > :::* LISTEN 9454/postgres > tcp 0 0 :::20008 > :::* LISTEN 9522/postgres > udp 0 0 ::1:60142 > ::1:60142 ESTABLISHED 9522/postgres > udp 0 0 ::1:59683 > ::1:59683 ESTABLISHED 9454/postgres > unix 2 [ ACC ] STREAM LISTENING 84606 > 9454/postgres /tmp/.s.PGSQL.20004 > unix 2 [ ACC ] STREAM LISTENING 84641 > 9459/postgres /tmp/.s.PGPOOL.20010 > unix 2 [ ACC ] STREAM LISTENING 85268 > 9522/postgres /tmp/.s.PGSQL.20008 > am i doing correct ? Please suggest. -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-14 09:08:45
|
Hi All, I have just setup postgre-xc with four servers for testing. but i have some questions regarding import process. I just found this link to backup and dump http://postgres-xc.sourceforge.net/docs/1_0/backup-dump.html my question is do i need to specifu coordinator name or datanode name or port for restoring dump file? If i don't specify datanode and port then where this data will be imported ? PGXC psql -d astpp /home/postgres/itn-gtm.sql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? PGXC psql astpp < /home/postgres/itn-gtm.sql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? I have dump of postgresql database which i want to import in postgre-xc but its gving me above error So here what i need to do make it working ? -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-14 05:59:12
|
Koichi=# alter table t1 add node (datanode3); ERROR: Failed to get pooled connections CONTEXT: SQL statement "EXECUTE DIRECT ON (coord3) 'SELECT pg_catalog.pg_try_advisory_xact_lock_shared(65535, 0)'" On Fri, Mar 14, 2014 at 11:20 AM, Juned Khan <jkh...@gm...> wrote: > Hi Masataka, Koichi, > > New datanode is successfully added and all components are running.i have > small doubt. > > As i just added new datanode so , will existing database automatically > copied > on this datanode or i have to create and import it manually from another > datanode ? > > As per that video, we need to just fire alter query just like : > *alter table t1 add node (datanode3);* > is that so ? > > and yeah as of now i am getting Failed to get pooled connections error. > > koichi=# execute direct on (datanode3) 'select * from t1'; > ERROR: Failed to get pooled connections > > Please advice. > > > > On Fri, Mar 14, 2014 at 11:03 AM, Juned Khan <jkh...@gm...> wrote: > >> Hi Masataka >> >> Thanks you very much, commands are working now. >> I thought that element doesn't affect because at initial level >> it was not showing any error. >> >> But thanks a lot, just fixed another same kind of problems. ;) >> >> >> >> On Fri, Mar 14, 2014 at 10:40 AM, Masataka Saito <pg...@gm...>wrote: >> >>> coordMasterServers defines 2 nodes, but coordSpecificExtraConfig and >>> coordSpecificExtraPgHba have 4 elements. >>> >>> On 14 March 2014 13:51, Juned Khan <jkh...@gm...> wrote: >>> > Hi Masataka, >>> > >>> > Please find the attachment. i have attached my pgxc_ctl.conf >>> > >>> > see my pastebin link : http://pastebin.com/n35QkmpK >>> > >>> > >>> > On Fri, Mar 14, 2014 at 10:18 AM, Juned Khan <jkh...@gm...> >>> wrote: >>> >> >>> >> Hi Masataka, >>> >> >>> >> Please find the attachment. i have attached my pgxc_ctl.conf >>> >> >>> >> >>> >> On Thu, Mar 13, 2014 at 11:39 PM, Masataka Saito <pg...@gm...> >>> wrote: >>> >>> >>> >>> Can you provide your pgxc_ctl.conf? >>> >>> >>> >>> On 14 March 2014 00:31, Juned Khan <jkh...@gm...> wrote: >>> >>> > Hi Masataka, >>> >>> > >>> >>> > Thanks for confirmation. >>> >>> > is there any alternative for me to get this working? >>> >>> > >>> >>> > This can be very problematic with live servers. >>> >>> > >>> >>> > >>> >>> > On Thu, Mar 13, 2014 at 8:56 PM, Masataka Saito <pg...@gm...> >>> >>> > wrote: >>> >>> >> >>> >>> >> I think there's no problem in your command line. >>> >>> >> >>> >>> >> >>> >>> >> On 13 March 2014 23:05, Juned Khan <jkh...@gm...> wrote: >>> >>> >> > Hi Masataka, >>> >>> >> > >>> >>> >> > Its fine but i think i have specified only one element for each >>> >>> >> > parameter. >>> >>> >> > please check my command if it needs any correction >>> >>> >> > >>> >>> >> > >>> >>> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >>> >>> >> > /home/postgres/pgxc/nodes/coord >>> >>> >> > >>> >>> >> > >>> >>> >> > >>> >>> >> > On Thu, Mar 13, 2014 at 7:07 PM, Masataka Saito < >>> pg...@gm...> >>> >>> >> > wrote: >>> >>> >> >> >>> >>> >> >> Sorry. I lead your misunderstanding. >>> >>> >> >> I meant about array style parameters and number of elements in >>> each >>> >>> >> >> array. >>> >>> >> >> >>> >>> >> >> For example, you have one coordNames, almost of array style >>> >>> >> >> parameters >>> >>> >> >> for coordinators except for coordPgHbaEntries -- coordPorts, >>> >>> >> >> poolerPorts, coordMasterServers, coordMasterDirs, >>> >>> >> >> coordMaxWALSenders, >>> >>> >> >> coordSpecificExtraConfig, coordSpecificExtraPgHba -- must have >>> only >>> >>> >> >> one element. >>> >>> >> >> >>> >>> >> >> That's all I can guess by your description. >>> >>> >> >> >>> >>> >> >> Regards. >>> >>> >> >> >>> >>> >> >> On 13 March 2014 18:07, Juned Khan <jkh...@gm...> >>> wrote: >>> >>> >> >> > Hi Masataka, >>> >>> >> >> > >>> >>> >> >> > As per that documentation i have provided all those >>> parameters >>> >>> >> >> > what else i should add or remove to make that command >>> working ? >>> >>> >> >> > >>> >>> >> >> > I want to add datanode and coordinator with below >>> configuration >>> >>> >> >> > and i think i specified all values as per that documentation. >>> >>> >> >> > >>> >>> >> >> > >>> >>> >> >> >> Coordinator Master: >>> >>> >> >> >> Nodename: 'coord3', port: 20004, pooler port: 20010 >>> >>> >> >> >> MaxWalSenders: (null), Dir: >>> >>> >> >> >> '/home/postgres/pgxc/nodes/coord' >>> >>> >> >> >> ExtraConfig: 'coordExtraConfig', Specific Extra Config: >>> >>> >> >> >> 'none' >>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32' >>> >>> >> >> >> '192.168.1.73/32' >>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >>> >>> >> >> >> >>> >>> >> >> >> Datanode Master: >>> >>> >> >> >> Nodename: 'datanode3', port: 20008 >>> >>> >> >> >> MaxWALSenders: 3, Dir: >>> '/home/postgres/pgxc/nodes/dn_master' >>> >>> >> >> >> ExtraConfig: 'none', Specific Extra Config: 'none' >>> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32' >>> >>> >> >> >> '192.168.1.73/32' >>> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >>> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >>> >>> >> >> > >>> >>> >> >> > >>> >>> >> >> > >>> >>> >> >> > Please suggest. >>> >>> >> >> > >>> >>> >> >> > Regards >>> >>> >> >> > Juned Khan >>> >>> >> >> > >>> >>> >> >> > >>> >>> >> >> > >>> >>> >> >> > On Thu, Mar 13, 2014 at 1:06 PM, Masataka Saito >>> >>> >> >> > <pg...@gm...> >>> >>> >> >> > wrote: >>> >>> >> >> >> >>> >>> >> >> >> On 12 March 2014 22:43, Juned Khan <jkh...@gm...> >>> wrote: >>> >>> >> >> >> > Hi Koichi,Masataka >>> >>> >> >> >> > >>> >>> >> >> >> > Successfully added gtm proxy but having issue with >>> coordinator >>> >>> >> >> >> > and >>> >>> >> >> >> > datanode. >>> >>> >> >> >> > >>> >>> >> >> >> > Coordinator : >>> >>> >> >> >> > add coordinator master name host port pooler dir >>> >>> >> >> >> > here what value i should use in place of pooler ? pooler >>> port >>> >>> >> >> >> > ? >>> >>> >> >> >> > >>> >>> >> >> >> >>> >>> >> >> >> pooler port >>> >>> >> >> >> >>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >>> >>> >> >> >> > ERROR: sorry found some inconflicts in coordinator master >>> >>> >> >> >> > configuration. >>> >>> >> >> >> > >>> >>> >> >> >> >>> >>> >> >> >> It is due to misconfigure. In detail, numbers of element for >>> >>> >> >> >> same >>> >>> >> >> >> component are not same. >>> >>> >> >> >> >>> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 >>> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >>> >>> >> >> >> > ERROR: please specify the working director for the >>> coordinator >>> >>> >> >> >> > master >>> >>> >> >> >> > >>> >>> >> >> >> > Datanode : >>> >>> >> >> >> > add datanode master name host port dir >>> >>> >> >> >> > pgxc_ctl add datanode master new node5 20008 >>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master >>> >>> >> >> >> > ERROR: sorry found some inconflicts in datanode master >>> >>> >> >> >> > configuration. >>> >>> >> >> >> > >>> >>> >> >> >> > Does earlier manual installation could be reason for this >>> >>> >> >> >> > issue ? >>> >>> >> >> >> > >>> >>> >> >> >> > P.S: >>> >>> >> >> >> > gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: >>> >>> >> >> >> > '/home/postgres/pgxc/nodes/gtm_pxy' >>> >>> >> >> >> > Coordinator Master: Nodename: 'coord3', port: 20004, >>> pooler >>> >>> >> >> >> > port: >>> >>> >> >> >> > 20010, >>> >>> >> >> >> > dir:' /home/postgres/pgxc/nodes/coord' >>> >>> >> >> >> > Datanode Master : Nodename: 'datanode3', port: 20008, >>> dir:' >>> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master' >>> >>> >> >> >> > >>> >>> >> >> >> > please look at my commands if its erroneous >>> >>> >> >> >> > >>> >>> >> >> >> > Please advice. >>> >>> >> >> >> > >>> >>> >> >> >> > Regards, >>> >>> >> >> >> > Juned Khan >>> >>> >> >> >> > >>> >>> >> >> >> > >>> >>> >> >> >> > >>> >>> >> >> >> > On Wed, Mar 12, 2014 at 11:45 AM, Juned Khan >>> >>> >> >> >> > <jkh...@gm...> >>> >>> >> >> >> > wrote: >>> >>> >> >> >> >> >>> >>> >> >> >> >> I tried to add coordinator and datanode manually >>> >>> >> >> >> >> and now it seems everything is messed up. >>> >>> >> >> >> >> >>> >>> >> >> >> >> Every component is just stopped working, if i kill all >>> and >>> >>> >> >> >> >> start all again then again its shows everything is >>> running >>> >>> >> >> >> >> but in that case it takes too long to connect >>> dtabase(Psql >>> >>> >> >> >> >> -dkoichi) >>> >>> >> >> >> >> >>> >>> >> >> >> >> and at last it just fails to connect to the database >>> >>> >> >> >> >> >>> >>> >> >> >> >> PGXC Psql -dkoichi >>> >>> >> >> >> >> Selected coord1. >>> >>> >> >> >> >> psql: server closed the connection unexpectedly >>> >>> >> >> >> >> This probably means the server terminated >>> abnormally >>> >>> >> >> >> >> before or while processing the request. >>> >>> >> >> >> >> PGXC >>> >>> >> >> >> >> >>> >>> >> >> >> >> Please advice. >>> >>> >> >> >> >> >>> >>> >> >> >> >> >>> >>> >> >> >> >> >>> >>> >> >> >> >> On Wed, Mar 12, 2014 at 4:34 AM, Michael Paquier >>> >>> >> >> >> >> <mic...@gm...> wrote: >>> >>> >> >> >> >>> >>> >>> >> >> >> >>> On Wed, Mar 12, 2014 at 4:10 AM, Masataka Saito >>> >>> >> >> >> >>> <pg...@gm...> >>> >>> >> >> >> >>> wrote: >>> >>> >> >> >> >>> > On 11 March 2014 16:42, Juned Khan < >>> jkh...@gm...> >>> >>> >> >> >> >>> > wrote: >>> >>> >> >> >> >>> >> Hi Masataka, >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> >> For testing i am tried to get this work added manual >>> >>> >> >> >> >>> >> query >>> >>> >> >> >> >>> >> for >>> >>> >> >> >> >>> >> CREATE >>> >>> >> >> >> >>> >> NODE. >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> >> Now its look like this: >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> >> postgres=# \q >>> >>> >> >> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20004 >>> >>> >> >> >> >>> >> Selected coord3. >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> >> postgres=# select * from pgxc_node; >>> >>> >> >> >> >>> >> node_name | node_type | node_port | node_host | >>> >>> >> >> >> >>> >> nodeis_primary >>> >>> >> >> >> >>> >> | >>> >>> >> >> >> >>> >> nodeis_preferred | node_id >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> >> >>> -----------+-----------+-----------+-----------+----------------+------------------+------------- >>> >>> >> >> >> >>> >> coord3 | C | 5432 | localhost | f >>> >>> >> >> >> >>> >> | f >>> >>> >> >> >> >>> >> | 1638403545 >>> >>> >> >> >> >>> >> coord1 | C | 20004 | node3 | f >>> >>> >> >> >> >>> >> | f >>> >>> >> >> >> >>> >> | 1885696643 >>> >>> >> >> >> >>> >> coord2 | C | 20005 | node4 | f >>> >>> >> >> >> >>> >> | f >>> >>> >> >> >> >>> >> | -1197102633 >>> >>> >> >> >> >>> >> datanode1 | D | 20008 | node3 | f >>> >>> >> >> >> >>> >> | f >>> >>> >> >> >> >>> >> | 888802358 >>> >>> >> >> >> >>> >> datanode2 | D | 20009 | node4 | f >>> >>> >> >> >> >>> >> | f >>> >>> >> >> >> >>> >> | -905831925 >>> >>> >> >> >> >>> >> datanode3 | D | 20008 | node5 | f >>> >>> >> >> >> >>> >> | f >>> >>> >> >> >> >>> >> | -1894792127 >>> >>> >> >> >> >>> >> (6 rows) >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> >> Here coord3 runs on 5432 which should 20004., it >>> creates >>> >>> >> >> >> >>> >> problem >>> >>> >> >> >> >>> >> i >>> >>> >> >> >> >>> >> think >>> >>> >> >> >> >>> >> isn't it ? >>> >>> >> >> >> >>> >> >>> >>> >> >> >> >>> > >>> >>> >> >> >> >>> > As far as I know, the local node information is not >>> >>> >> >> >> >>> > important >>> >>> >> >> >> >>> > and >>> >>> >> >> >> >>> > it >>> >>> >> >> >> >>> > is not necessary to update. >>> >>> >> >> >> >>> > "pgxc_ctl add" corrects it by "ALTER NODE". >>> >>> >> >> >> >>> CREATE NODE and DROP NODE only run locally. Why not >>> ALTER >>> >>> >> >> >> >>> NODE >>> >>> >> >> >> >>> for >>> >>> >> >> >> >>> consistency? Am I missing smth? >>> >>> >> >> >> >>> -- >>> >>> >> >> >> >>> Michael >>> >>> >> >> >> >> >>> >>> >> >> >> >> >>> >>> >> >> >> >> >>> >>> >> >> >> >> >>> >>> >> >> >> >> -- >>> >>> >> >> >> >> Thanks, >>> >>> >> >> >> >> Juned Khan >>> >>> >> >> >> >> iNextrix Technologies Pvt Ltd. >>> >>> >> >> >> >> www.inextrix.com >>> >>> >> >> >> > >>> >>> >> >> >> > >>> >>> >> >> >> > >>> >>> >> >> >> > >>> >>> >> >> >> > -- >>> >>> >> >> >> > Thanks, >>> >>> >> >> >> > Juned Khan >>> >>> >> >> >> > iNextrix Technologies Pvt Ltd. >>> >>> >> >> >> > www.inextrix.com >>> >>> >> >> > >>> >>> >> >> > >>> >>> >> >> > >>> >>> >> >> > >>> >>> >> >> > -- >>> >>> >> >> > Thanks, >>> >>> >> >> > Juned Khan >>> >>> >> >> > iNextrix Technologies Pvt Ltd. >>> >>> >> >> > www.inextrix.com >>> >>> >> > >>> >>> >> > >>> >>> >> > >>> >>> >> > >>> >>> >> > -- >>> >>> >> > Thanks, >>> >>> >> > Juned Khan >>> >>> >> > iNextrix Technologies Pvt Ltd. >>> >>> >> > www.inextrix.com >>> >>> > >>> >>> > >>> >>> > >>> >>> > >>> >>> > -- >>> >>> > Thanks, >>> >>> > Juned Khan >>> >>> > iNextrix Technologies Pvt Ltd. >>> >>> > www.inextrix.com >>> >> >>> >> >>> >> >>> >> >>> >> -- >>> >> Thanks, >>> >> Juned Khan >>> >> iNextrix Technologies Pvt Ltd. >>> >> www.inextrix.com >>> > >>> > >>> > >>> > >>> > -- >>> > Thanks, >>> > Juned Khan >>> > iNextrix Technologies Pvt Ltd. >>> > www.inextrix.com >>> >> >> >> >> -- >> Thanks, >> Juned Khan >> iNextrix Technologies Pvt Ltd. >> www.inextrix.com >> > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-14 05:50:44
|
Hi Masataka, Koichi, New datanode is successfully added and all components are running.i have small doubt. As i just added new datanode so , will existing database automatically copied on this datanode or i have to create and import it manually from another datanode ? As per that video, we need to just fire alter query just like : *alter table t1 add node (datanode3);* is that so ? and yeah as of now i am getting Failed to get pooled connections error. koichi=# execute direct on (datanode3) 'select * from t1'; ERROR: Failed to get pooled connections Please advice. On Fri, Mar 14, 2014 at 11:03 AM, Juned Khan <jkh...@gm...> wrote: > Hi Masataka > > Thanks you very much, commands are working now. > I thought that element doesn't affect because at initial level > it was not showing any error. > > But thanks a lot, just fixed another same kind of problems. ;) > > > > On Fri, Mar 14, 2014 at 10:40 AM, Masataka Saito <pg...@gm...> wrote: > >> coordMasterServers defines 2 nodes, but coordSpecificExtraConfig and >> coordSpecificExtraPgHba have 4 elements. >> >> On 14 March 2014 13:51, Juned Khan <jkh...@gm...> wrote: >> > Hi Masataka, >> > >> > Please find the attachment. i have attached my pgxc_ctl.conf >> > >> > see my pastebin link : http://pastebin.com/n35QkmpK >> > >> > >> > On Fri, Mar 14, 2014 at 10:18 AM, Juned Khan <jkh...@gm...> >> wrote: >> >> >> >> Hi Masataka, >> >> >> >> Please find the attachment. i have attached my pgxc_ctl.conf >> >> >> >> >> >> On Thu, Mar 13, 2014 at 11:39 PM, Masataka Saito <pg...@gm...> >> wrote: >> >>> >> >>> Can you provide your pgxc_ctl.conf? >> >>> >> >>> On 14 March 2014 00:31, Juned Khan <jkh...@gm...> wrote: >> >>> > Hi Masataka, >> >>> > >> >>> > Thanks for confirmation. >> >>> > is there any alternative for me to get this working? >> >>> > >> >>> > This can be very problematic with live servers. >> >>> > >> >>> > >> >>> > On Thu, Mar 13, 2014 at 8:56 PM, Masataka Saito <pg...@gm...> >> >>> > wrote: >> >>> >> >> >>> >> I think there's no problem in your command line. >> >>> >> >> >>> >> >> >>> >> On 13 March 2014 23:05, Juned Khan <jkh...@gm...> wrote: >> >>> >> > Hi Masataka, >> >>> >> > >> >>> >> > Its fine but i think i have specified only one element for each >> >>> >> > parameter. >> >>> >> > please check my command if it needs any correction >> >>> >> > >> >>> >> > >> >>> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >> >>> >> > /home/postgres/pgxc/nodes/coord >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> > On Thu, Mar 13, 2014 at 7:07 PM, Masataka Saito < >> pg...@gm...> >> >>> >> > wrote: >> >>> >> >> >> >>> >> >> Sorry. I lead your misunderstanding. >> >>> >> >> I meant about array style parameters and number of elements in >> each >> >>> >> >> array. >> >>> >> >> >> >>> >> >> For example, you have one coordNames, almost of array style >> >>> >> >> parameters >> >>> >> >> for coordinators except for coordPgHbaEntries -- coordPorts, >> >>> >> >> poolerPorts, coordMasterServers, coordMasterDirs, >> >>> >> >> coordMaxWALSenders, >> >>> >> >> coordSpecificExtraConfig, coordSpecificExtraPgHba -- must have >> only >> >>> >> >> one element. >> >>> >> >> >> >>> >> >> That's all I can guess by your description. >> >>> >> >> >> >>> >> >> Regards. >> >>> >> >> >> >>> >> >> On 13 March 2014 18:07, Juned Khan <jkh...@gm...> wrote: >> >>> >> >> > Hi Masataka, >> >>> >> >> > >> >>> >> >> > As per that documentation i have provided all those parameters >> >>> >> >> > what else i should add or remove to make that command working >> ? >> >>> >> >> > >> >>> >> >> > I want to add datanode and coordinator with below >> configuration >> >>> >> >> > and i think i specified all values as per that documentation. >> >>> >> >> > >> >>> >> >> > >> >>> >> >> >> Coordinator Master: >> >>> >> >> >> Nodename: 'coord3', port: 20004, pooler port: 20010 >> >>> >> >> >> MaxWalSenders: (null), Dir: >> >>> >> >> >> '/home/postgres/pgxc/nodes/coord' >> >>> >> >> >> ExtraConfig: 'coordExtraConfig', Specific Extra Config: >> >>> >> >> >> 'none' >> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32' >> >>> >> >> >> '192.168.1.73/32' >> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >> >>> >> >> >> >> >>> >> >> >> Datanode Master: >> >>> >> >> >> Nodename: 'datanode3', port: 20008 >> >>> >> >> >> MaxWALSenders: 3, Dir: >> '/home/postgres/pgxc/nodes/dn_master' >> >>> >> >> >> ExtraConfig: 'none', Specific Extra Config: 'none' >> >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32' >> >>> >> >> >> '192.168.1.73/32' >> >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) >> >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' >> >>> >> >> > >> >>> >> >> > >> >>> >> >> > >> >>> >> >> > Please suggest. >> >>> >> >> > >> >>> >> >> > Regards >> >>> >> >> > Juned Khan >> >>> >> >> > >> >>> >> >> > >> >>> >> >> > >> >>> >> >> > On Thu, Mar 13, 2014 at 1:06 PM, Masataka Saito >> >>> >> >> > <pg...@gm...> >> >>> >> >> > wrote: >> >>> >> >> >> >> >>> >> >> >> On 12 March 2014 22:43, Juned Khan <jkh...@gm...> >> wrote: >> >>> >> >> >> > Hi Koichi,Masataka >> >>> >> >> >> > >> >>> >> >> >> > Successfully added gtm proxy but having issue with >> coordinator >> >>> >> >> >> > and >> >>> >> >> >> > datanode. >> >>> >> >> >> > >> >>> >> >> >> > Coordinator : >> >>> >> >> >> > add coordinator master name host port pooler dir >> >>> >> >> >> > here what value i should use in place of pooler ? pooler >> port >> >>> >> >> >> > ? >> >>> >> >> >> > >> >>> >> >> >> >> >>> >> >> >> pooler port >> >>> >> >> >> >> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 >> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >> >>> >> >> >> > ERROR: sorry found some inconflicts in coordinator master >> >>> >> >> >> > configuration. >> >>> >> >> >> > >> >>> >> >> >> >> >>> >> >> >> It is due to misconfigure. In detail, numbers of element for >> >>> >> >> >> same >> >>> >> >> >> component are not same. >> >>> >> >> >> >> >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 >> >>> >> >> >> > /home/postgres/pgxc/nodes/coord >> >>> >> >> >> > ERROR: please specify the working director for the >> coordinator >> >>> >> >> >> > master >> >>> >> >> >> > >> >>> >> >> >> > Datanode : >> >>> >> >> >> > add datanode master name host port dir >> >>> >> >> >> > pgxc_ctl add datanode master new node5 20008 >> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master >> >>> >> >> >> > ERROR: sorry found some inconflicts in datanode master >> >>> >> >> >> > configuration. >> >>> >> >> >> > >> >>> >> >> >> > Does earlier manual installation could be reason for this >> >>> >> >> >> > issue ? >> >>> >> >> >> > >> >>> >> >> >> > P.S: >> >>> >> >> >> > gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: >> >>> >> >> >> > '/home/postgres/pgxc/nodes/gtm_pxy' >> >>> >> >> >> > Coordinator Master: Nodename: 'coord3', port: 20004, pooler >> >>> >> >> >> > port: >> >>> >> >> >> > 20010, >> >>> >> >> >> > dir:' /home/postgres/pgxc/nodes/coord' >> >>> >> >> >> > Datanode Master : Nodename: 'datanode3', port: 20008, >> dir:' >> >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master' >> >>> >> >> >> > >> >>> >> >> >> > please look at my commands if its erroneous >> >>> >> >> >> > >> >>> >> >> >> > Please advice. >> >>> >> >> >> > >> >>> >> >> >> > Regards, >> >>> >> >> >> > Juned Khan >> >>> >> >> >> > >> >>> >> >> >> > >> >>> >> >> >> > >> >>> >> >> >> > On Wed, Mar 12, 2014 at 11:45 AM, Juned Khan >> >>> >> >> >> > <jkh...@gm...> >> >>> >> >> >> > wrote: >> >>> >> >> >> >> >> >>> >> >> >> >> I tried to add coordinator and datanode manually >> >>> >> >> >> >> and now it seems everything is messed up. >> >>> >> >> >> >> >> >>> >> >> >> >> Every component is just stopped working, if i kill all and >> >>> >> >> >> >> start all again then again its shows everything is running >> >>> >> >> >> >> but in that case it takes too long to connect dtabase(Psql >> >>> >> >> >> >> -dkoichi) >> >>> >> >> >> >> >> >>> >> >> >> >> and at last it just fails to connect to the database >> >>> >> >> >> >> >> >>> >> >> >> >> PGXC Psql -dkoichi >> >>> >> >> >> >> Selected coord1. >> >>> >> >> >> >> psql: server closed the connection unexpectedly >> >>> >> >> >> >> This probably means the server terminated >> abnormally >> >>> >> >> >> >> before or while processing the request. >> >>> >> >> >> >> PGXC >> >>> >> >> >> >> >> >>> >> >> >> >> Please advice. >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> >> On Wed, Mar 12, 2014 at 4:34 AM, Michael Paquier >> >>> >> >> >> >> <mic...@gm...> wrote: >> >>> >> >> >> >>> >> >>> >> >> >> >>> On Wed, Mar 12, 2014 at 4:10 AM, Masataka Saito >> >>> >> >> >> >>> <pg...@gm...> >> >>> >> >> >> >>> wrote: >> >>> >> >> >> >>> > On 11 March 2014 16:42, Juned Khan < >> jkh...@gm...> >> >>> >> >> >> >>> > wrote: >> >>> >> >> >> >>> >> Hi Masataka, >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> >> For testing i am tried to get this work added manual >> >>> >> >> >> >>> >> query >> >>> >> >> >> >>> >> for >> >>> >> >> >> >>> >> CREATE >> >>> >> >> >> >>> >> NODE. >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> >> Now its look like this: >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> >> postgres=# \q >> >>> >> >> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20004 >> >>> >> >> >> >>> >> Selected coord3. >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> >> postgres=# select * from pgxc_node; >> >>> >> >> >> >>> >> node_name | node_type | node_port | node_host | >> >>> >> >> >> >>> >> nodeis_primary >> >>> >> >> >> >>> >> | >> >>> >> >> >> >>> >> nodeis_preferred | node_id >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> >> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >> >>> >> >> >> >>> >> coord3 | C | 5432 | localhost | f >> >>> >> >> >> >>> >> | f >> >>> >> >> >> >>> >> | 1638403545 >> >>> >> >> >> >>> >> coord1 | C | 20004 | node3 | f >> >>> >> >> >> >>> >> | f >> >>> >> >> >> >>> >> | 1885696643 >> >>> >> >> >> >>> >> coord2 | C | 20005 | node4 | f >> >>> >> >> >> >>> >> | f >> >>> >> >> >> >>> >> | -1197102633 >> >>> >> >> >> >>> >> datanode1 | D | 20008 | node3 | f >> >>> >> >> >> >>> >> | f >> >>> >> >> >> >>> >> | 888802358 >> >>> >> >> >> >>> >> datanode2 | D | 20009 | node4 | f >> >>> >> >> >> >>> >> | f >> >>> >> >> >> >>> >> | -905831925 >> >>> >> >> >> >>> >> datanode3 | D | 20008 | node5 | f >> >>> >> >> >> >>> >> | f >> >>> >> >> >> >>> >> | -1894792127 >> >>> >> >> >> >>> >> (6 rows) >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> >> Here coord3 runs on 5432 which should 20004., it >> creates >> >>> >> >> >> >>> >> problem >> >>> >> >> >> >>> >> i >> >>> >> >> >> >>> >> think >> >>> >> >> >> >>> >> isn't it ? >> >>> >> >> >> >>> >> >> >>> >> >> >> >>> > >> >>> >> >> >> >>> > As far as I know, the local node information is not >> >>> >> >> >> >>> > important >> >>> >> >> >> >>> > and >> >>> >> >> >> >>> > it >> >>> >> >> >> >>> > is not necessary to update. >> >>> >> >> >> >>> > "pgxc_ctl add" corrects it by "ALTER NODE". >> >>> >> >> >> >>> CREATE NODE and DROP NODE only run locally. Why not ALTER >> >>> >> >> >> >>> NODE >> >>> >> >> >> >>> for >> >>> >> >> >> >>> consistency? Am I missing smth? >> >>> >> >> >> >>> -- >> >>> >> >> >> >>> Michael >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> >> >> >>> >> >> >> >> -- >> >>> >> >> >> >> Thanks, >> >>> >> >> >> >> Juned Khan >> >>> >> >> >> >> iNextrix Technologies Pvt Ltd. >> >>> >> >> >> >> www.inextrix.com >> >>> >> >> >> > >> >>> >> >> >> > >> >>> >> >> >> > >> >>> >> >> >> > >> >>> >> >> >> > -- >> >>> >> >> >> > Thanks, >> >>> >> >> >> > Juned Khan >> >>> >> >> >> > iNextrix Technologies Pvt Ltd. >> >>> >> >> >> > www.inextrix.com >> >>> >> >> > >> >>> >> >> > >> >>> >> >> > >> >>> >> >> > >> >>> >> >> > -- >> >>> >> >> > Thanks, >> >>> >> >> > Juned Khan >> >>> >> >> > iNextrix Technologies Pvt Ltd. >> >>> >> >> > www.inextrix.com >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> > -- >> >>> >> > Thanks, >> >>> >> > Juned Khan >> >>> >> > iNextrix Technologies Pvt Ltd. >> >>> >> > www.inextrix.com >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > -- >> >>> > Thanks, >> >>> > Juned Khan >> >>> > iNextrix Technologies Pvt Ltd. >> >>> > www.inextrix.com >> >> >> >> >> >> >> >> >> >> -- >> >> Thanks, >> >> Juned Khan >> >> iNextrix Technologies Pvt Ltd. >> >> www.inextrix.com >> > >> > >> > >> > >> > -- >> > Thanks, >> > Juned Khan >> > iNextrix Technologies Pvt Ltd. >> > www.inextrix.com >> > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-14 05:33:36
|
Hi Masataka Thanks you very much, commands are working now. I thought that element doesn't affect because at initial level it was not showing any error. But thanks a lot, just fixed another same kind of problems. ;) On Fri, Mar 14, 2014 at 10:40 AM, Masataka Saito <pg...@gm...> wrote: > coordMasterServers defines 2 nodes, but coordSpecificExtraConfig and > coordSpecificExtraPgHba have 4 elements. > > On 14 March 2014 13:51, Juned Khan <jkh...@gm...> wrote: > > Hi Masataka, > > > > Please find the attachment. i have attached my pgxc_ctl.conf > > > > see my pastebin link : http://pastebin.com/n35QkmpK > > > > > > On Fri, Mar 14, 2014 at 10:18 AM, Juned Khan <jkh...@gm...> > wrote: > >> > >> Hi Masataka, > >> > >> Please find the attachment. i have attached my pgxc_ctl.conf > >> > >> > >> On Thu, Mar 13, 2014 at 11:39 PM, Masataka Saito <pg...@gm...> > wrote: > >>> > >>> Can you provide your pgxc_ctl.conf? > >>> > >>> On 14 March 2014 00:31, Juned Khan <jkh...@gm...> wrote: > >>> > Hi Masataka, > >>> > > >>> > Thanks for confirmation. > >>> > is there any alternative for me to get this working? > >>> > > >>> > This can be very problematic with live servers. > >>> > > >>> > > >>> > On Thu, Mar 13, 2014 at 8:56 PM, Masataka Saito <pg...@gm...> > >>> > wrote: > >>> >> > >>> >> I think there's no problem in your command line. > >>> >> > >>> >> > >>> >> On 13 March 2014 23:05, Juned Khan <jkh...@gm...> wrote: > >>> >> > Hi Masataka, > >>> >> > > >>> >> > Its fine but i think i have specified only one element for each > >>> >> > parameter. > >>> >> > please check my command if it needs any correction > >>> >> > > >>> >> > > >>> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 > >>> >> > /home/postgres/pgxc/nodes/coord > >>> >> > > >>> >> > > >>> >> > > >>> >> > On Thu, Mar 13, 2014 at 7:07 PM, Masataka Saito <pg...@gm... > > > >>> >> > wrote: > >>> >> >> > >>> >> >> Sorry. I lead your misunderstanding. > >>> >> >> I meant about array style parameters and number of elements in > each > >>> >> >> array. > >>> >> >> > >>> >> >> For example, you have one coordNames, almost of array style > >>> >> >> parameters > >>> >> >> for coordinators except for coordPgHbaEntries -- coordPorts, > >>> >> >> poolerPorts, coordMasterServers, coordMasterDirs, > >>> >> >> coordMaxWALSenders, > >>> >> >> coordSpecificExtraConfig, coordSpecificExtraPgHba -- must have > only > >>> >> >> one element. > >>> >> >> > >>> >> >> That's all I can guess by your description. > >>> >> >> > >>> >> >> Regards. > >>> >> >> > >>> >> >> On 13 March 2014 18:07, Juned Khan <jkh...@gm...> wrote: > >>> >> >> > Hi Masataka, > >>> >> >> > > >>> >> >> > As per that documentation i have provided all those parameters > >>> >> >> > what else i should add or remove to make that command working ? > >>> >> >> > > >>> >> >> > I want to add datanode and coordinator with below configuration > >>> >> >> > and i think i specified all values as per that documentation. > >>> >> >> > > >>> >> >> > > >>> >> >> >> Coordinator Master: > >>> >> >> >> Nodename: 'coord3', port: 20004, pooler port: 20010 > >>> >> >> >> MaxWalSenders: (null), Dir: > >>> >> >> >> '/home/postgres/pgxc/nodes/coord' > >>> >> >> >> ExtraConfig: 'coordExtraConfig', Specific Extra Config: > >>> >> >> >> 'none' > >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32' > >>> >> >> >> '192.168.1.73/32' > >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) > >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' > >>> >> >> >> > >>> >> >> >> Datanode Master: > >>> >> >> >> Nodename: 'datanode3', port: 20008 > >>> >> >> >> MaxWALSenders: 3, Dir: > '/home/postgres/pgxc/nodes/dn_master' > >>> >> >> >> ExtraConfig: 'none', Specific Extra Config: 'none' > >>> >> >> >> pg_hba entries ( '192.168.1.71/32' '192.168.1.72/32' > >>> >> >> >> '192.168.1.73/32' > >>> >> >> >> '192.168.1.43/32' '192.168.1.75/32' ) > >>> >> >> >> Extra pg_hba: 'none', Specific Extra pg_hba: 'none' > >>> >> >> > > >>> >> >> > > >>> >> >> > > >>> >> >> > Please suggest. > >>> >> >> > > >>> >> >> > Regards > >>> >> >> > Juned Khan > >>> >> >> > > >>> >> >> > > >>> >> >> > > >>> >> >> > On Thu, Mar 13, 2014 at 1:06 PM, Masataka Saito > >>> >> >> > <pg...@gm...> > >>> >> >> > wrote: > >>> >> >> >> > >>> >> >> >> On 12 March 2014 22:43, Juned Khan <jkh...@gm...> > wrote: > >>> >> >> >> > Hi Koichi,Masataka > >>> >> >> >> > > >>> >> >> >> > Successfully added gtm proxy but having issue with > coordinator > >>> >> >> >> > and > >>> >> >> >> > datanode. > >>> >> >> >> > > >>> >> >> >> > Coordinator : > >>> >> >> >> > add coordinator master name host port pooler dir > >>> >> >> >> > here what value i should use in place of pooler ? pooler > port > >>> >> >> >> > ? > >>> >> >> >> > > >>> >> >> >> > >>> >> >> >> pooler port > >>> >> >> >> > >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 20010 > >>> >> >> >> > /home/postgres/pgxc/nodes/coord > >>> >> >> >> > ERROR: sorry found some inconflicts in coordinator master > >>> >> >> >> > configuration. > >>> >> >> >> > > >>> >> >> >> > >>> >> >> >> It is due to misconfigure. In detail, numbers of element for > >>> >> >> >> same > >>> >> >> >> component are not same. > >>> >> >> >> > >>> >> >> >> > pgxc_ctl add coordinator master coord3 node5 20004 > >>> >> >> >> > /home/postgres/pgxc/nodes/coord > >>> >> >> >> > ERROR: please specify the working director for the > coordinator > >>> >> >> >> > master > >>> >> >> >> > > >>> >> >> >> > Datanode : > >>> >> >> >> > add datanode master name host port dir > >>> >> >> >> > pgxc_ctl add datanode master new node5 20008 > >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master > >>> >> >> >> > ERROR: sorry found some inconflicts in datanode master > >>> >> >> >> > configuration. > >>> >> >> >> > > >>> >> >> >> > Does earlier manual installation could be reason for this > >>> >> >> >> > issue ? > >>> >> >> >> > > >>> >> >> >> > P.S: > >>> >> >> >> > gtm_prxy : Nodename: 'gtm_pxy3', port: 20001, dir: > >>> >> >> >> > '/home/postgres/pgxc/nodes/gtm_pxy' > >>> >> >> >> > Coordinator Master: Nodename: 'coord3', port: 20004, pooler > >>> >> >> >> > port: > >>> >> >> >> > 20010, > >>> >> >> >> > dir:' /home/postgres/pgxc/nodes/coord' > >>> >> >> >> > Datanode Master : Nodename: 'datanode3', port: 20008, > dir:' > >>> >> >> >> > /home/postgres/pgxc/nodes/dn_master' > >>> >> >> >> > > >>> >> >> >> > please look at my commands if its erroneous > >>> >> >> >> > > >>> >> >> >> > Please advice. > >>> >> >> >> > > >>> >> >> >> > Regards, > >>> >> >> >> > Juned Khan > >>> >> >> >> > > >>> >> >> >> > > >>> >> >> >> > > >>> >> >> >> > On Wed, Mar 12, 2014 at 11:45 AM, Juned Khan > >>> >> >> >> > <jkh...@gm...> > >>> >> >> >> > wrote: > >>> >> >> >> >> > >>> >> >> >> >> I tried to add coordinator and datanode manually > >>> >> >> >> >> and now it seems everything is messed up. > >>> >> >> >> >> > >>> >> >> >> >> Every component is just stopped working, if i kill all and > >>> >> >> >> >> start all again then again its shows everything is running > >>> >> >> >> >> but in that case it takes too long to connect dtabase(Psql > >>> >> >> >> >> -dkoichi) > >>> >> >> >> >> > >>> >> >> >> >> and at last it just fails to connect to the database > >>> >> >> >> >> > >>> >> >> >> >> PGXC Psql -dkoichi > >>> >> >> >> >> Selected coord1. > >>> >> >> >> >> psql: server closed the connection unexpectedly > >>> >> >> >> >> This probably means the server terminated > abnormally > >>> >> >> >> >> before or while processing the request. > >>> >> >> >> >> PGXC > >>> >> >> >> >> > >>> >> >> >> >> Please advice. > >>> >> >> >> >> > >>> >> >> >> >> > >>> >> >> >> >> > >>> >> >> >> >> On Wed, Mar 12, 2014 at 4:34 AM, Michael Paquier > >>> >> >> >> >> <mic...@gm...> wrote: > >>> >> >> >> >>> > >>> >> >> >> >>> On Wed, Mar 12, 2014 at 4:10 AM, Masataka Saito > >>> >> >> >> >>> <pg...@gm...> > >>> >> >> >> >>> wrote: > >>> >> >> >> >>> > On 11 March 2014 16:42, Juned Khan <jkh...@gm... > > > >>> >> >> >> >>> > wrote: > >>> >> >> >> >>> >> Hi Masataka, > >>> >> >> >> >>> >> > >>> >> >> >> >>> >> For testing i am tried to get this work added manual > >>> >> >> >> >>> >> query > >>> >> >> >> >>> >> for > >>> >> >> >> >>> >> CREATE > >>> >> >> >> >>> >> NODE. > >>> >> >> >> >>> >> > >>> >> >> >> >>> >> Now its look like this: > >>> >> >> >> >>> >> > >>> >> >> >> >>> >> postgres=# \q > >>> >> >> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20004 > >>> >> >> >> >>> >> Selected coord3. > >>> >> >> >> >>> >> > >>> >> >> >> >>> >> postgres=# select * from pgxc_node; > >>> >> >> >> >>> >> node_name | node_type | node_port | node_host | > >>> >> >> >> >>> >> nodeis_primary > >>> >> >> >> >>> >> | > >>> >> >> >> >>> >> nodeis_preferred | node_id > >>> >> >> >> >>> >> > >>> >> >> >> >>> >> > >>> >> >> >> >>> >> > >>> >> >> >> >>> >> > >>> >> >> >> >>> >> > >>> >> >> >> >>> >> > -----------+-----------+-----------+-----------+----------------+------------------+------------- > >>> >> >> >> >>> >> coord3 | C | 5432 | localhost | f > >>> >> >> >> >>> >> | f > >>> >> >> >> >>> >> | 1638403545 > >>> >> >> >> >>> >> coord1 | C | 20004 | node3 | f > >>> >> >> >> >>> >> | f > >>> >> >> >> >>> >> | 1885696643 > >>> >> >> >> >>> >> coord2 | C | 20005 | node4 | f > >>> >> >> >> >>> >> | f > >>> >> >> >> >>> >> | -1197102633 > >>> >> >> >> >>> >> datanode1 | D | 20008 | node3 | f > >>> >> >> >> >>> >> | f > >>> >> >> >> >>> >> | 888802358 > >>> >> >> >> >>> >> datanode2 | D | 20009 | node4 | f > >>> >> >> >> >>> >> | f > >>> >> >> >> >>> >> | -905831925 > >>> >> >> >> >>> >> datanode3 | D | 20008 | node5 | f > >>> >> >> >> >>> >> | f > >>> >> >> >> >>> >> | -1894792127 > >>> >> >> >> >>> >> (6 rows) > >>> >> >> >> >>> >> > >>> >> >> >> >>> >> Here coord3 runs on 5432 which should 20004., it > creates > >>> >> >> >> >>> >> problem > >>> >> >> >> >>> >> i > >>> >> >> >> >>> >> think > >>> >> >> >> >>> >> isn't it ? > >>> >> >> >> >>> >> > >>> >> >> >> >>> > > >>> >> >> >> >>> > As far as I know, the local node information is not > >>> >> >> >> >>> > important > >>> >> >> >> >>> > and > >>> >> >> >> >>> > it > >>> >> >> >> >>> > is not necessary to update. > >>> >> >> >> >>> > "pgxc_ctl add" corrects it by "ALTER NODE". > >>> >> >> >> >>> CREATE NODE and DROP NODE only run locally. Why not ALTER > >>> >> >> >> >>> NODE > >>> >> >> >> >>> for > >>> >> >> >> >>> consistency? Am I missing smth? > >>> >> >> >> >>> -- > >>> >> >> >> >>> Michael > >>> >> >> >> >> > >>> >> >> >> >> > >>> >> >> >> >> > >>> >> >> >> >> > >>> >> >> >> >> -- > >>> >> >> >> >> Thanks, > >>> >> >> >> >> Juned Khan > >>> >> >> >> >> iNextrix Technologies Pvt Ltd. > >>> >> >> >> >> www.inextrix.com > >>> >> >> >> > > >>> >> >> >> > > >>> >> >> >> > > >>> >> >> >> > > >>> >> >> >> > -- > >>> >> >> >> > Thanks, > >>> >> >> >> > Juned Khan > >>> >> >> >> > iNextrix Technologies Pvt Ltd. > >>> >> >> >> > www.inextrix.com > >>> >> >> > > >>> >> >> > > >>> >> >> > > >>> >> >> > > >>> >> >> > -- > >>> >> >> > Thanks, > >>> >> >> > Juned Khan > >>> >> >> > iNextrix Technologies Pvt Ltd. > >>> >> >> > www.inextrix.com > >>> >> > > >>> >> > > >>> >> > > >>> >> > > >>> >> > -- > >>> >> > Thanks, > >>> >> > Juned Khan > >>> >> > iNextrix Technologies Pvt Ltd. > >>> >> > www.inextrix.com > >>> > > >>> > > >>> > > >>> > > >>> > -- > >>> > Thanks, > >>> > Juned Khan > >>> > iNextrix Technologies Pvt Ltd. > >>> > www.inextrix.com > >> > >> > >> > >> > >> -- > >> Thanks, > >> Juned Khan > >> iNextrix Technologies Pvt Ltd. > >> www.inextrix.com > > > > > > > > > > -- > > Thanks, > > Juned Khan > > iNextrix Technologies Pvt Ltd. > > www.inextrix.com > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |