Alternate disk / volume

User 960 | 1/6/2015, 1:32:19 AM

Hi, I'm running an EC2 instance w/ local sdd mounted on /mnt -- How do I tell graphlab to use this instead of EBS?

Comments

User 6 | 1/6/2015, 8:19:43 AM

This problem can be solved by set a runtime configuration:

<pre class="CodeBlock"><code>>>> import graphlab

graphlab.getruntimeconfig() {'GRAPHLABCACHEFILELOCATIONS': '/var/tmp', 'GRAPHLABFILEIOMAXIMUMCACHECAPACITY': 2147483648, 'GRAPHLABFILEIOMAXIMUMCACHECAPACITYPERFILE': 134217728, 'GRAPHLABSFRAMECSVPARSERREADSIZE': 52428800, 'GRAPHLABSFRAMEDEFAULTBLOCKSIZE': 65536, 'GRAPHLABSFRAMEDEFAULTNUMSEGMENTS': 8, 'GRAPHLABSFRAMEFILEHANDLEPOOLSIZE': 128, 'GRAPHLABSFRAMEGROUPBYBUFFERNUMROWS': 1048576, 'GRAPHLABSFRAMEIOREADLOCK': 1, 'GRAPHLABSFRAMEJOINBUFFERNUMCELLS': 52428800, 'GRAPHLABSFRAMEMAXBLOCKSINCACHE': 32, 'GRAPHLABSFRAMEREADBATCHSIZE': 128, 'GRAPHLABSFRAMESORTBUFFERNUMCELLS': 52428800, 'GRAPHLABSFRAMESORTPIVOTESTIMATIONSAMPLESIZE': 100000, 'GRAPHLABSFRAMEWRITERMAXBUFFEREDCELLS': 33554432, 'GRAPHLABSFRAMEWRITERMAXBUFFEREDCELLSPERBLOCK': 262144, 'GRAPHLABSGRAPHBATCHTRIPLEAPPLYLOCKARRAYSIZE': 1048576, 'GRAPHLABSGRAPHDEFAULTNUMPARTITIONS': 8, 'GRAPHLABSGRAPHINGRESSVIDBUFFERSIZE': 4194304, 'GRAPHLABSGRAPHTRIPLEAPPLYEDGEBATCHSIZE': 1024, 'GRAPHLABSGRAPHTRIPLEAPPLYLOCKARRAY_SIZE': 1048576}

customcachelocation='/home/ubuntu/mytmpdir' graphlab.setruntimeconfig('GRAPHLABCACHEFILELOCATIONS', customcache_location)</code></pre>