<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
    <channel>
        <title>CUBRID Q&amp;A</title>
        <link>http://www.cubrid.org/?mid=questions</link>
        <description>CUBRID Q&amp;A</description>
        <language>en</language>
        <pubDate>Fri, 21 Oct 2011 02:37:10 -0800</pubDate>
        <lastBuildDate>Mon, 20 May 2013 01:15:17 -0800</lastBuildDate>
        <generator>XpressEngine 1.4.4.1</generator>
                        										        <item>
            <title>Join between multiple Shard</title>
            <dc:creator></dc:creator>
            <link>http://www.cubrid.org/questions/617483</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/617483</guid>
                                    <description><![CDATA[<p>Hi,</p>
<p>I might miss this out when skimming tru the docs. How do we run query (join) accross multiple shard? if I had few tables in the join that is sharded and they are shard base on different columns, how will the performance like? any best practices or things to avoids?</p>]]></description>
                        <pubDate>Wed, 20 Mar 2013 20:17:56 -0800</pubDate>
                        <category>Sharding</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>Strange behavior in HA mode</title>
            <dc:creator></dc:creator>
            <link>http://www.cubrid.org/questions/541665</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/541665</guid>
                                    <description><![CDATA[<p style="line-height: 1;">Hi!</p>

<p style="line-height: 1;">

</p>

<p style="line-height: 1;">I setup a ha cluster with master+slave following this tutorial:&nbsp;<a href="/manual/843/en/CUBRID%20HA" target="_self">http://www.cubrid.org/manual/843/en/CUBRID%20HA</a>.</p>

<p style="line-height: 1;">

</p>

<p style="line-height: 1;">I called my nodes : <b>cubrid</b> and <b>cubrid2</b>.</p>

<p style="line-height: 1;">

</p>

<p style="line-height: 1;">All nodes have this in <i>cubrid.conf</i>:</p>

<p style="line-height: 1;">

</p>

<p style="line-height: 1;"></p>

<div editor_component="code_highlighter" code_type="Plain" title="" first_line="1" collapse="false" highlight="" nogutter="false" style="border:#666 1px dotted;border-left:#2AE 5px solid;padding:5px;background:#FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">[@demodb]<br />
ha_mode=on<br />
force_remove_log_archives=no<br />
log_max_archives=100</div>

<p></p>

<p style="line-height: 1;"><i>cubrid_ha.conf</i>:</p>

<p></p>

<p style="line-height: 1;"></p>

<div editor_component="code_highlighter" code_type="Plain" title="" first_line="1" collapse="false" highlight="" nogutter="false" style="border:#666 1px dotted;border-left:#2AE 5px solid;padding:5px;background:#FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">[common]<br />
ha_copy_sync_mode=sync:sync<br />
ha_port_id=59901<br />
ha_node_list=demodb@cubrid:cubrid2<br />
ha_db_list=demodb<br />
ha_apply_max_mem_size=500</div>

<p></p>

<p style="line-height: 1;"><br /></p>

<p></p>

<p><span style="line-height: 13px;"></span></p>

<div editor_component="code_highlighter" code_type="Bash" title="" first_line="1" collapse="false" highlight="" nogutter="false" style="border:#666 1px dotted;border-left:#2AE 5px solid;padding:5px;background:#FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">cubrid@cubrid:~$&nbsp;cubrid&nbsp;heartbeat&nbsp;status<br />
@&nbsp;cubrid&nbsp;heartbeat&nbsp;list<br />
&nbsp;HA-Node&nbsp;Info&nbsp;(current&nbsp;cubrid,&nbsp;state&nbsp;master)<br />
&nbsp;&nbsp;&nbsp;Node&nbsp;cubrid2&nbsp;(priority&nbsp;2,&nbsp;state&nbsp;slave)<br />
&nbsp;&nbsp;&nbsp;Node&nbsp;cubrid&nbsp;(priority&nbsp;1,&nbsp;state&nbsp;master)<br />
&nbsp;HA-Process&nbsp;Info&nbsp;(master&nbsp;882,&nbsp;state&nbsp;master)<br />
&nbsp;&nbsp;&nbsp;Applylogdb&nbsp;demodb@localhost:/var/opt/cubrid/databases/demodb_cubrid2&nbsp;(pid&nbsp;3342,&nbsp;state&nbsp;registered)<br />
&nbsp;&nbsp;&nbsp;Copylogdb&nbsp;demodb@cubrid2:/var/opt/cubrid/databases/demodb_cubrid2&nbsp;(pid&nbsp;3340,&nbsp;state&nbsp;registered)<br />
&nbsp;&nbsp;&nbsp;Server&nbsp;demodb&nbsp;(pid&nbsp;3123,&nbsp;state&nbsp;registered_and_active)<br />
<br />
<br />
cubrid@cubrid2:~$&nbsp;cubrid&nbsp;heartbeat&nbsp;status<br />
@&nbsp;cubrid&nbsp;heartbeat&nbsp;list<br />
<br />
&nbsp;HA-Node&nbsp;Info&nbsp;(current&nbsp;cubrid2,&nbsp;state&nbsp;slave)<br />
&nbsp;&nbsp;&nbsp;Node&nbsp;cubrid2&nbsp;(priority&nbsp;2,&nbsp;state&nbsp;slave)<br />
&nbsp;&nbsp;&nbsp;Node&nbsp;cubrid&nbsp;(priority&nbsp;1,&nbsp;state&nbsp;master)<br />
&nbsp;HA-Process&nbsp;Info&nbsp;(master&nbsp;2478,&nbsp;state&nbsp;slave)<br />
&nbsp;&nbsp;&nbsp;Applylogdb&nbsp;demodb@localhost:/var/opt/cubrid/databases/demodb_cubrid&nbsp;(pid&nbsp;2704,&nbsp;state&nbsp;registered)<br />
&nbsp;&nbsp;&nbsp;Copylogdb&nbsp;demodb@cubrid:/var/opt/cubrid/databases/demodb_cubrid&nbsp;(pid&nbsp;2702,&nbsp;state&nbsp;registered)<br />
&nbsp;&nbsp;&nbsp;Server&nbsp;demodb&nbsp;(pid&nbsp;2485,&nbsp;state&nbsp;registered)</div>

<p>When I do some benchmark on the node "cubrid2", I can see node "cubrid" sending the data to cubrid2 then cubrid2 to my client. Using "top" command I can see node "cubrid" becomes busy with many INSERT, where as node "cubrid2" idle.</p>

<p>When I shutdown the node "cubrid", "cubrid2" becomes the new master but I can't send any query to cubrid2, it times out (trying to fetch data from node "cubrid"). When node "cubrid" is back, cubrid2 answer (I have to reload the heartbeat).</p>


<p>I'm using CUBRID version 8.4.3 from Ubuntu (12.04) repository</p>

<p>Thanks!</p>]]></description>
                        <pubDate>Wed, 02 Jan 2013 00:54:07 -0800</pubDate>
                        <category>HA</category>
                                    <slash:comments>3</slash:comments>
                    </item>
        										        <item>
            <title>cubrid shard start: fail:   failed to connect database</title>
            <dc:creator>lzfcome</dc:creator>
            <link>http://www.cubrid.org/questions/507666</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/507666</guid>
                                    <description><![CDATA[<div><div><div editor_component="code_highlighter" code_type="Bash" title="" first_line="1" collapse="false" highlight="" nogutter="false" style="border:#666 1px dotted;border-left:#2AE 5px solid;padding:5px;background:#FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">sh&gt;&nbsp;cubrid&nbsp;shard&nbsp;start@&nbsp;cubrid&nbsp;shard&nbsp;startfailed&nbsp;to&nbsp;connect&nbsp;database.&nbsp;[shard]<br />
please&nbsp;check&nbsp;your&nbsp;$CUBRID/conf/shard.conf&nbsp;or&nbsp;database&nbsp;status.<br />
[%shard]<br />
SHARD_DB_NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;shard1<br />
SHARD_DB_USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;shard<br />
++&nbsp;cubrid&nbsp;shard&nbsp;start:&nbsp;fail</div>

</div>

<div></div>

<div><br /></div>

</div>

<div>My&nbsp;shard_connection.txt :</div>

<div><br /></div>

<div><div editor_component="code_highlighter" code_type="Bash" title="" first_line="1" collapse="false" highlight="" nogutter="false" style="border:#666 1px dotted;border-left:#2AE 5px solid;padding:5px;background:#FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">&nbsp;#&nbsp;cubrid<br />
<br />
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shard1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10.34.64.220<br />
<br />
1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shard1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10.34.64.220<br />
<br />
2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shard1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;localhost<br />
<br />
3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shard1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;localhost</div>

<p>The database shard1 in localhost and the&nbsp;database <b>shard1</b> in 10.4.64.220 are OK, &nbsp;I can connect to either.</p>

<p>The error_log/shard_1_0_1.err:</p>

<p></p>

<div editor_component="code_highlighter" code_type="Bash" title="" first_line="1" collapse="false" highlight="" nogutter="false" style="border:#666 1px dotted;border-left:#2AE 5px solid;padding:5px;background:#FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">[tobi@NC-PL-DEV001&nbsp;conf]$&nbsp;tail&nbsp;../log/broker/error_log/shard_1_1_1.err&nbsp;<br />
<br />
Server&nbsp;bit&nbsp;platform&nbsp;(64)&nbsp;is&nbsp;different&nbsp;from&nbsp;client&nbsp;bit&nbsp;platform&nbsp;(32).<br />
<br />
Time:&nbsp;05/15/06&nbsp;04:28:50.048&nbsp;-&nbsp;ERROR&nbsp;***&nbsp;file&nbsp;../../src/transaction/boot_cl.c,&nbsp;line&nbsp;1453&nbsp;ERROR&nbsp;CODE&nbsp;=&nbsp;-677&nbsp;Tran&nbsp;=&nbsp;-1,&nbsp;EID&nbsp;=&nbsp;206<br />
<br />
Failed&nbsp;to&nbsp;connect&nbsp;to&nbsp;database&nbsp;server,&nbsp;'shard1',&nbsp;on&nbsp;the&nbsp;following&nbsp;host(s):&nbsp;10.34.64.220<br />
<br />
Time:&nbsp;05/15/06&nbsp;04:28:50.048&nbsp;-&nbsp;ERROR&nbsp;***&nbsp;file&nbsp;../../src/transaction/boot_cl.c,&nbsp;line&nbsp;1468&nbsp;ERROR&nbsp;CODE&nbsp;=&nbsp;-677&nbsp;Tran&nbsp;=&nbsp;-1,&nbsp;EID&nbsp;=&nbsp;207<br />
<br />
Failed&nbsp;to&nbsp;connect&nbsp;to&nbsp;database&nbsp;server,&nbsp;'shard1',&nbsp;on&nbsp;the&nbsp;following&nbsp;host(s):&nbsp;10.34.64.220:10.34.64.220<br />
<br />
***&nbsp;The&nbsp;previous&nbsp;error&nbsp;message&nbsp;is&nbsp;the&nbsp;last&nbsp;one.&nbsp;***</div>

<p>Can you help me? thanks.</p>

</div>]]></description>
                        <pubDate>Mon, 26 Nov 2012 22:06:13 -0800</pubDate>
                        <category>HA</category>
                        <category>Sharding</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>&quot;ha_node_list&quot;: Unknown system parameter or bad value.</title>
            <dc:creator></dc:creator>
            <link>http://www.cubrid.org/questions/472808</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/472808</guid>
                                    <description><![CDATA[<div>I'am trying to configure HA with CentOS5/CUBRID 9.0 Beta. All configs are filled according to manual, but both servers print error on start:</div><div><br /></div><div>Time: 10/30/12 02:33:30.825 - ERROR *** file ../src/executables/master_heartbeat.c, line 3164 ERROR CODE = -839 Tran = -1, EID = 1</div><div>"ha_node_list": Unknown system parameter or bad value.</div><div><br /></div><div><br /></div><div><div>cubrid_ha.conf contains line:</div><div>ha_node_list=cubrid@nodeA:nodeB</div></div><div><br /></div><div>nodeA and nodeB are described in /etc/hosts</div>]]></description>
                        <pubDate>Mon, 29 Oct 2012 22:45:26 -0800</pubDate>
                        <category>HA</category>
                                    <slash:comments>3</slash:comments>
                    </item>
        										        <item>
            <title>How to find out the Charset CUBRID uses ?</title>
            <dc:creator>ovidiuv</dc:creator>
            <link>http://www.cubrid.org/questions/431786</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/431786</guid>
                                    <description><![CDATA[<p>Hello,</p><p>I want to find out the charset used in CUBRID using SQL. In MySQL it is possible to perform this operation by running "SHOW VARIABLES LIKE 'character_set%'". Is there anything similar for CUBRID ?</p><p>Best regards,</p><p>Ovidiu</p>]]></description>
                        <pubDate>Wed, 19 Sep 2012 04:54:59 -0800</pubDate>
                        <category>SQL</category>
                        <category>CUBRID</category>
                        <category>charset</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>Does Cubrid support Master:Master replication</title>
            <dc:creator></dc:creator>
            <link>http://www.cubrid.org/questions/414266</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/414266</guid>
                                    <description><![CDATA[<p>In my use case I require every node to be a master node, accept reads and writes is this possible with cubrid?</p><p>







<p class="p1"><span class="s1">As it says on&nbsp;<a href="/key_features"><span class="s2">http://www.cubrid.org/key_features</span></a></span></p>
<p class="p2">"Reduced hardware costs with the configuration of multiple master&nbsp;database&nbsp;nodes and one or more slave database nodes."</p></p><p>Thanks,</p><p>Duarte</p>]]></description>
                        <pubDate>Thu, 23 Aug 2012 04:01:50 -0800</pubDate>
                        <category>HA</category>
                                    <slash:comments>2</slash:comments>
                    </item>
        										        <item>
            <title>Multiple CUBRID Instances</title>
            <dc:creator>dolph</dc:creator>
            <link>http://www.cubrid.org/questions/235384</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/235384</guid>
                                    <description><![CDATA[<p>I can see in jdbc help manual that you can login to alternative servers.</p><p>Can multiple instances of CUBRID run on the same machine? Also, can you please describe the setup?</p>]]></description>
                        <pubDate>Sat, 05 Nov 2011 11:13:29 -0800</pubDate>
                        <category>JDBC</category>
                        <category>HA</category>
                        <category>alternative host</category>
                                    <slash:comments>1</slash:comments>
                    </item>
            </channel>
</rss>
