Archive for MySQL

Free Webinar: Shopatron’s eCommerce Services Powered by MySQL Cluster – Best Practices

As one of the world’s leading eCommerce Service Providers, Shopatron needed to further improve scalability and availability of their eCommerce services to keep pace with their rapidly growing business, while at the same time, reducing costs.

After extensive evaluations, Shopatron selected MySQL Cluster to power its back-end database, running the entire eCommerce fulfillment engine.

Since deploying MySQL Cluster, Shopatron have achieved:

  • continuous service availability with sub-second failover and fully automated recovery
  • real-time performance, reducing query times from 3 seconds to 2 milliseconds
  • extreme levels of scalability on commodity hardware and open source software
  • reduced licensing, support and operational management costs

Tune into this webinar where Shopatron’s CIO/COO and VP of Engineering will both share their experiences and best practices of implementing the MySQL Cluster database for eCommerce applications.

WHO:

Sean Collier, CIO & COO, Shopatron Inc.
David Dalrymple, VP of Engineering, Shopatron Inc.
Matthew Keep, MySQL Product Management

WHEN:

Thursday, October 22, 2009: 10:00 Pacific time (America)
Thu, Oct 22: 07:00 Hawaii time
Thu, Oct 22: 11:00 Mountain time (America)
Thu, Oct 22: 12:00 Central time (America)
Thu, Oct 22: 13:00 Eastern time (America)
Thu, Oct 22: 17:00 UTC
Thu, Oct 22: 18:00 Western European time
Thu, Oct 22: 19:00 Central European time
Thu, Oct 22: 20:00 Eastern European time





Free webinar: FreeRADIUS & MySQL Cluster: Scalable and Highly Available AAA Services – EMEA

FreeRADIUS And MySQL ClusterAs network use grows and services become more dynamic, so existing Authentication, Authorization and Accounting (AAA) environments can struggle to keep pace with demand.

Tune into this webinar where you can hear from the Alan Dekok, one of the founders of the FreeRADIUS project and CEO of Network RADIUS, discuss the concepts and implementation of RADIUS services using the FreeRADIUS server and the MySQL Cluster database to deliver highly available and scalable AAA services.

As always, this webinar is free and you can register here. I will be manning the Q&A during the webinar.

In this session, you will learn about:

  • potential AAA limitations as network environments grow
  • advantages of deploying FreeRADIUS with MySQL Cluster
  • Performance, sizing and deployment of an AAA environment using FreeRADIUS with MySQL Cluster
  • customer case studies
  • how to get started

WHO:

Alan Dekok, Founder of the FreeRADIUS project and CEO of Network RADIUS
Matthew Keep, MySQL Cluster Product Management

WHAT:

FreeRADIUS & MySQL Cluster: Scalable and Highly Available AAA Services web presentation.

WHEN:

Tuesday, October 20, 2009: 10:00 Central European time

Tue, Oct 20: 09:00 Western European time

Tue, Oct 20: 11:00 Eastern European time

The presentation will be approximately 45 minutes long followed by Q&A.

WHERE:

Simply access the web seminar from the comfort of your own office.

WHY:

To learn more about how you can use FreeRADIUS and MySQL Cluster 7.0





MySQL Cluster 7.0.8a is now released

The GA binaries for MySQL Cluster 7.0.8a (the “a” is used to indicate that this is an increment on the original 7.0.8 source release) have been released – download them from http://dev.mysql.com/downloads/select.php?id=14

A summary of the changes can be found in the MySQL Cluster 7.0.8a Change Log





MySQL Cluster 7.0.8 source released

7.0.8aa source release is now available from ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/

The source version for MySQL Cluster 7.0.8 has now been made available at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/mysql-5.1.37-ndb-7.0.8/

You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“.

A description of all of the changes (fixes) that have gone into MySQL Cluster 7.0.8 (compared to 7.0.7) can be found in the MySQL Cluster 7.0.8 Change Log.





Another free webinar today – FreeRADIUS & MySQL Cluster: Scalable and Highly Available AAA Services

As network use grows and services become more dynamic, so existing Authentication, Authorization and Accounting (AAA) environments can struggle to keep pace with demand.

Tune into this webinar where you can hear from the Alan Dekok, one of the founders of the FreeRADIUS project and CEO of Network RADIUS, discuss the concepts and implementation of RADIUS services using the FreeRADIUS server and the MySQL Cluster database to deliver highly available and scalable AAA services.

As always, this webinar is free and you can register here. I will be manning the Q&A during the webinar.

In this session, you will learn about:

  • potential AAA limitations as network environments grow
  • advantages of deploying FreeRADIUS with MySQL Cluster
  • Performance, sizing and deployment of an AAA environment using FreeRADIUS with MySQL Cluster
  • customer case studies
  • how to get started

    WHO:

    Alan Dekok, Founder of the FreeRADIUS project and CEO of Network RADIUS
    Matthew Keep, MySQL Cluster Product Management

    WHAT:

    FreeRADIUS & MySQL Cluster: Scalable and Highly Available AAA Services web presentation.

    WHEN:

    Wednesday, September 30, 2009: 09:30 Pacific time (America)
    Wed, Sep 30: 06:30 Hawaii time
    Wed, Sep 30: 10:30 Mountain time (America)
    Wed, Sep 30: 11:30 Central time (America)
    Wed, Sep 30: 12:30 Eastern time (America)
    Wed, Sep 30: 16:30 UTC
    Wed, Sep 30: 17:30 Western European time
    Wed, Sep 30: 18:30 Central European time
    Wed, Sep 30: 19:30 Eastern European time

    The presentation will be approximately 45 minutes long followed by Q&A.

    WHERE:

    Simply access the web seminar from the comfort of your own office.

    WHY:

    To learn more about how you can use FreeRADIUS and MySQL Cluster 7.0





    Free MySQL webinar today – High Availability Architectures for Online Applications

    Update: You can now download a recording of the webinar and the slides from http://www.mysql.com/news-and-events/on-demand-webinars/display-od-403.html

    I’ll be presenting the fourth (and final) session of the MySQL for Online Applications webinar series today (29 September). Today’s High Availability Architectures for Online Applications webinar covers:

    • MySQL Replication
    • MySQL Cluster
    • Distributed Replicated Block Device (DRBD)
    • Other high-availability technologies

    Register here.

    This session starts at 10:00 am Pacific Time but will be rerun tomorrow at 10:00 am CET (9:00 am UK) with Ivan Zoratti presenting (I’ll be handling questions).

    More details for today’s webinar:

    Tuesday, September 29, 2009

    Join us for the last of our 4 part webinar series exploring the different aspects of using MySQL as the backend database for online applications. With real life experience gained working with MySQL Customers such as Facebook, Alcatel Lucent and Google, this webinar series will give you the information you need to run scalable, highly available online applications.

    In this last installment we look at MySQL high availability technologies and architectures. We will explore the uses cases for implementing:

    • MySQL Replication
    • MySQL Cluster
    • Distributed Replicated Block Device (DRBD)
    • Other high-availability technologies

    Also, covered will be the fundamentals of how these technologies work and how they can be combined to create a more scalable and highly available database infrastructure. Several case studies will be presented to show how these technologies have been implemented in the real world.

    Whether you are already using MySQL for your online application or considering it for a new project then register today to learn how you can make best use of the world’s most popular database for online applications.

    WHO:

    Andrew Morgan, Senior Product Manager, MySQL

    WHAT:

    High Availability Architectures for Online Applications web presentation.

    WHEN:

    Tuesday, September 29, 2009: 10:00 Pacific time (America)

    Tue, Sep 29: 07:00 Hawaii time
    Tue, Sep 29: 11:00 Mountain time (America)
    Tue, Sep 29: 12:00 Central time (America)
    Tue, Sep 29: 13:00 Eastern time (America)
    Tue, Sep 29: 17:00 UTC
    Tue, Sep 29: 18:00 Western European time
    Tue, Sep 29: 19:00 Central European time
    Tue, Sep 29: 20:00 Eastern European time
    High Availability Architectures for Online Applications




    MySQL Cluster Helps Mapion to Improve its User Experience

    A new case study has been published that describes how and why Mapion adopted MySQL Cluster as the real-time, mission critical database for their Mapion Mobile applications.

    Mapion adopted MySQL Cluster Databse because it allows for the availability of existing applications through its ‘shared-nothing’ distributed architecture with no single point of failure, to meet Mapion’s mission-critical application requirements of 99.999% availability. This is coupled with automatic data partitioning with load balancing, which allows almost unlimited database scalability for the company. Mr. Takashi Ando comments, “Some databases supported clusters when we previously reviewed our database technology, but they were hard to operate and would have increased costs substantially. We found ourselves in a completely different situation when planning the introduction of the new system. MySQL Cluster Database had made it possible to construct a highly available system while keeping costs down.”

    Mapion’s online map service enables users to search for addresses as well as gain access to navigation information such as directions for driving and public transport routes. The fee-based service for mobile users, Mapion Mobile, sends maps and directions direct to users’ mobile phones, while the Mapion BB broadband service offers more detailed maps, which smoothly and instantaneously refresh as the user navigates around the displayed map.

    Headquartered in Tokyo, Japan, Mapion Co. Ltd delivers Japan’s leading online map search service, with over 700,000 page views per day, and over 200 enterprise customers. Mapion’s shareholders include Toppan, NTT East, Dentsu, Yahoo Japan, and Sharp.
    The company’s online map service enables users to search for addresses as well as gain access to navigation information such as directions for driving and public transport routes. The fee-based service for mobile users, Mapion Mobile, sends maps and directions direct to users’ mobile phones, while the Mapion BB broadband service offers more detailed maps, which smoothly and instantaneously refresh as the user navigates around the displayed map




    Free Guide released: Scalable Authentication Services with FreeRADIUS and MySQL Cluster

    MySQL/Sun have releases a new white paper…

    Do you want to ensure that your Authentication, Authorization and Accounting (AAA) infrastructure will scale to support your business growth?
    As network use grows and services become more dynamic, limitations can occur which add administrative overhead, inhibit flexible scaling and impact the timely synchronization of data across the AAA environment.
    To address these challenges, Sun has collaborated with the FreeRADIUS server team, the most widely deployed RADIUS server in the world, to integrate the carrier-grade, real-time MySQL Cluster database with the FreeRADIUS Server.
    Delivering Scalable Authentication Services:
    Get the whitepaper now!
    Attend Webinar
    Download our free whitepaper “Delivering Scalable and Highly Available Authentication, Authorization and Accounting Services” now to better understand:
    The concepts of current data storage solutions for AAA environments and their potential limitations as network use grows
    How you can implement an infrastructure for high growth and high availability with low complexity by deploying the FreeRADIUS server and MySQL Cluster
    How the solution performs in real world AAA environments via a user case study.

    Do you want to ensure that your Authentication, Authorization and Accounting (AAA) infrastructure will scale to support your business growth?

    As network use grows and services become more dynamic, limitations can occur which add administrative overhead, inhibit flexible scaling and impact the timely synchronization of data across the AAA environment.

    To address these challenges, Sun has collaborated with the FreeRADIUS server team, the most widely deployed RADIUS server in the world, to integrate the carrier-grade, real-time MySQL Cluster database with the FreeRADIUS Server.

    Download our free whitepaper “Delivering Scalable and Highly Available Authentication, Authorization and Accounting Services” now to better understand:

    • The concepts of current data storage solutions for AAA environments and their potential limitations as network use grows
    • How you can implement an infrastructure for high growth and high availability with low complexity by deploying the FreeRADIUS server and MySQL Cluster
    • How the solution performs in real world AAA environments via a user case study.




    Creating a MySQL plugin to produce an integer timestamp

    This article shows how to create a MySQL-plugin that can be used to create a function which can in turn be used in stored procedures. The function will produce an integer value representing the time (to the nearest usec).

    I’m working on an article for conflict detection/resolution when using MySQL Cluster asynchronous replication which requires an integer column to store a timestamp for comparison purposes. In fact, it doesn’t actually need the timestamp to represent an absolute or even a relative point in time – all it cares about is that the if the function is called twice on 2 different hosts that the 2nd call will always result in a larger number than the 1st. Obviously, in a production environment the times on the 2 hosts would need to be kept in sync.

    The c code (inttime.c)

    #include <mysql.h>
    #include <sys/time.h>
    
    my_bool inttime_init(UDF_INIT *initid,UDF_ARGS *args, char *message) {
      return 0;
    }
    
    void inttime_deinit(UDF_INIT *initid) {};
    
    unsigned long int inttime(UDF_INIT *initid, UDF_ARGS *args, char *result,
                              unsigned long  *length, char *is_null, char *error)
    {
      struct timeval tv;
      gettimeofday(&tv,(void *)0);
      return ((double)tv.tv_usec)+tv.tv_sec*1000000;
    }

    Compiling and deploying the shared library

    [billy@ws1 timestamp]$ gcc -I/usr/local/mysql/include/ -fPIC -shared -o inttime.so inttime.c
    [billy@ws1 timestamp]$ cp inttime.so /usr/local/mysql/lib/plugin/

    Creating the function

    mysql> create function inttime RETURNS REAL SONAME 'inttime.so';

    Test the function

    mysql> select inttime();select inttime();
    +------------------+
    | inttime()        |
    +------------------+
    | 1250080524270706 |
    +------------------+
    1 row in set (0.00 sec)
    
    +------------------+
    | inttime()        |
    +------------------+
    | 1250080524270833 |
    +------------------+
    1 row in set (0.00 sec)

    Note that the results are different and the second result is always larger than the first – function is fit for purpose 🙂

    Using the function from a stored procedure

    mysql> CREATE TRIGGER updateTAB1 BEFORE UPDATE ON TAB1 FOR EACH ROW SET NEW.ts = inttime();

    Acknowledgements

    I used the c code found at http://lists.mysql.com/internals/33702 as the starting point.