Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Sja Hangs When Replicating Huge Tables #21494
    beblx
    Member
    peterlaursen wrote on May 1 2006, 06:26 PM:
    A more verbose behaviour has been requested by me to!

    I think it is the SJA for Linux that you are using? Running form same physical localtion as the servers?

    Or from somewhere else?

    Still you syould check if the data allows for use of and options.

    Could you post the 'CREATE statement for the table's involved ?? That could give an idea if this is normal.

    And still SJA does not REPLICATION. <_<

    Yes, I wanted to say Syncronization ;-))

    Here is the structure of the table:

    CREATE TABLE maillog (

    timestamp timestamp(14) NOT NULL,

    id text,

    size bigint(20) default '0',

    from_address text,

    from_domain text,

    to_address text,

    to_domain text,

    subject text,

    clientip text,

    archive text,

    isspam tinyint(1) default '0',

    ishighspam tinyint(1) default '0',

    issaspam tinyint(1) default '0',

    isrblspam tinyint(1) default '0',

    isfp tinyint(1) default '0',

    isfn tinyint(1) default '0',

    spamwhitelisted tinyint(1) default '0',

    spamblacklisted tinyint(1) default '0',

    sascore decimal(7,2) default '0.00',

    spamreport text,

    virusinfected tinyint(1) default '0',

    nameinfected tinyint(1) default '0',

    otherinfected tinyint(1) default '0',

    report text,

    ismcp tinyint(1) default '0',

    ishighmcp tinyint(1) default '0',

    issamcp tinyint(1) default '0',

    mcpwhitelisted tinyint(1) default '0',

    mcpblacklisted tinyint(1) default '0',

    mcpsascore decimal(7,2) default '0.00',

    mcpreport text,

    hostname text,

    date date default NULL,

    time time default NULL,

    headers text,

    quarantined tinyint(1) default '0',

    KEY maillog_datetime_idx (date,time),

    KEY maillog_id_idx (id(20)),

    KEY maillog_clientip_idx (clientip(20)),

    KEY maillog_from_idx (from_address(200)),

    KEY maillog_to_idx (to_address(200)),

    KEY maillog_host (hostname(30)),

    KEY from_domain_idx (from_domain(50)),

    KEY to_domain_idx (to_domain(50)),

    KEY maillog_quarantined (quarantined)

    ) TYPE=MyISAM;

    This is the table that stucks

    And, Yes this is the Linux version, the 2 boxes are distant of 20 cm in the same room connected by a Gigabit Ethernet link on Cisco Switch, the Linux Distro is CentOS 4.2 (RHEL 4.2 Free Clone) each box is DualCore Pentium D with 4 Gigs of RAM hardware is definitely not the bottleneck, here is the datasync-alltables.xml used to sync with sja:

    master-mlgw

    root

    xxxxxx 3306

    mailscanner

    127.0.0.1

    root

    xxxxxx 3306

    mailscanner

    Do you need more infos ?

    Thanks a lot for your help…

    in reply to: Sja Hangs When Replicating Huge Tables #21492
    beblx
    Member
    peterlaursen wrote on May 1 2006, 01:54 AM:
    I do not think it hangs. I think it is working! And it cannot works faster than it gets the data it needs from the servers!

    Check CPU and Network traffic from Task Manager! And don't be surprised if traffic is only 5-10 KB/sec. That is quite common with the sort of operation on cheap ISP's with a shared database server.

    If you work with big databases you should learn to use the and -options effectively.

    Refer to:

    http://www.webyog.com/articles/Using_SQLyo…L_Databases.pdf

    .. here I describe an example where I reduced sync time from 11 hours to 5 minutes doing so!

    A detail: SJA does not REPLICATE. It SYNCHRONIZES.

    http://www.webyog.com/faq/11_60_en.html

    Just a little precision, the TWO servers are in the same physical location, the goal of this is a MailScanner/Mailwatch heartbeat cluster where I want to have a replication of the active node on the second machine even for the MySQL database, and the link between the 2 notes in in Gigabit Ethernet, I checked CPU load during sja works and it vever exceeds 22% of the CPU, during this time, the load average is only at 0,40…

    Do you have an idea how we could have a more verbose log of what happens during this sync ?

Viewing 2 posts - 1 through 2 (of 2 total)