1 grid.probe

This tag executes a random test to get distribution statistics of data acording to the hash algorithm and the node names.

<grid.probe
    count='count'
    replication='replication'
    algorithm='MD5|SHA-1|SHA-256'
    nodes='nodes'
/>
Example
Copy
<xsql-script>
    <body>
        <println>Algorithm     Replicates</println>
        <println>---------     ----------</println>
        <println>MD5            1</println>
        <println>                        <grid.probe nodes='demo_sports, demo_cons, demo_industria' algorithm='MD5' replication='1' count='1000'/></println>
        <println>                        <grid.probe nodes='A, B, C' algorithm='MD5' replication='1' count='1000'/></println>

        <println>SHA1           1</println>
        <println>                        <grid.probe nodes='demo_sports, demo_cons, demo_industria' algorithm='SHA1' replication='1' count='1000'/></println>
        <println>                        <grid.probe nodes='A, B, C' algorithm='SHA1' replication='1' count='1000'/></println>

        <println>SHA-256        1</println>
        <println>                        <grid.probe nodes='demo_sports, demo_cons, demo_industria' algorithm='SHA-256' replication='1' count='1000'/></println>
        <println>                        <grid.probe nodes='A, B, C' algorithm='SHA-256' replication='1' count='1000'/></println>


        <println>MD5            4</println>
        <println>                        <grid.probe nodes='demo_sports, demo_cons, demo_industria' algorithm='MD5' replication='4' count='1000'/></println>
        <println>                        <grid.probe nodes='A, B, C' algorithm='MD5' replication='4' count='1000'/></println>

        <println>SHA1           4</println>
        <println>                        <grid.probe nodes='demo_sports, demo_cons, demo_industria' algorithm='SHA1' replication='4' count='1000'/></println>
        <println>                        <grid.probe nodes='A, B, C' algorithm='SHA1' replication='4' count='1000'/></println>

        <println>SHA-256        4</println>

        <println>                        <grid.probe nodes='demo_sports, demo_cons, demo_industria' algorithm='SHA-256' replication='4' count='1000'/></println>
        <println>                        <grid.probe nodes='A, B, C' algorithm='SHA-256' replication='4' count='1000'/></println>


        <println>MD5           16</println>
        <println>                        <grid.probe nodes='demo_sports, demo_cons, demo_industria' algorithm='MD5' replication='16' count='1000'/></println>
        <println>                        <grid.probe nodes='A, B, C' algorithm='MD5' replication='16' count='1000'/></println>

        <println>SHA1          16</println>
        <println>                        <grid.probe nodes='demo_sports, demo_cons, demo_industria' algorithm='SHA1' replication='16' count='1000'/></println>
        <println>                        <grid.probe nodes='A, B, C' algorithm='SHA1' replication='16' count='1000'/></println>

        <println>SHA-256       16</println>
        <println>                        <grid.probe nodes='demo_sports, demo_cons, demo_industria' algorithm='SHA-256' replication='16' count='1000'/></println>
        <println>                        <grid.probe nodes='A, B, C' algorithm='SHA-256' replication='16' count='1000'/></println>

    </body>
</xsql-script>
Algorithm     Replicates
---------     ----------
MD5            1
                        {demo_industria=37,9%, demo_cons= 2,0%, demo_sports=60,1%}
                        {A=16,1%, B=65,3%, C=18,6%}
SHA1           1
                        {demo_cons=62,4%, demo_industria=30,7%, demo_sports= 6,9%}
                        {A=42,1%, B=57,2%, C= 0,7%}
SHA-256        1
                        {demo_cons=53,6%, demo_industria=15,5%, demo_sports=30,9%}
                        {A=26,1%, B=42,9%, C=31,0%}
MD5            4
                        {demo_cons=28,1%, demo_industria=52,4%, demo_sports=19,5%}
                        {A=36,6%, B=18,9%, C=44,5%}
SHA1           4
                        {demo_cons=49,7%, demo_industria=29,5%, demo_sports=20,8%}
                        {A=28,6%, B=42,1%, C=29,3%}
SHA-256        4
                        {demo_cons=31,6%, demo_industria=15,0%, demo_sports=53,4%}
                        {A=41,3%, B=23,5%, C=35,2%}
MD5           16
                        {demo_industria=25,3%, demo_cons=34,5%, demo_sports=40,2%}
                        {A=32,7%, B=35,2%, C=32,1%}
SHA1          16
                        {demo_industria=38,6%, demo_cons=33,5%, demo_sports=27,9%}
                        {A=44,1%, B=24,9%, C=31,0%}
SHA-256       16
                        {demo_cons=30,1%, demo_industria=34,8%, demo_sports=35,1%}
                        {A=31,6%, B=17,9%, C=50,5%}