Swap space in AWS



  • I'm trying to get Oracle Express Edition running on an AWS t2 instance. (I've heard that Oracle publish a pre-built AMI for it but that information seems to be out of date. However if I could find such a thing it might solve all my problems.)

    XE demands a certain amount of swap space and won't even attempt to install without it.

    AWS say you should use instance store volumes to add swap space. But t2 can't have instance storage.

    We don't actually intend to use the database, we just need to get .dmp files into it so that we can import them into an RDS instance. Can anyone suggest anything that doesn't involve paying for a more expensive instance?


  • sockdevs

    put a file in the mounted s3 bucket, format and mount it as swap?

    you don't have to use a partition for swap space on linux. you can mount a file as swap too, it's just not the default way to do it.



  • @CarrieVS I was actually looking for something similar recently and found this

    sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
    sudo /sbin/mkswap /var/swap.1
    sudo chmod 600 /var/swap.1
    sudo /sbin/swapon /var/swap.1
    

    basically make a file of desired size and tell your instance to use it as swap



  • @CarrieVS said in Swap space in AWS:

    AWS say you should use instance store volumes to add swap space.

    You should for efficiency, but as I understand it there's no reason why you can't use EBS, or S3, or Elastic File System (which I had never heard about before but is apparently an option too). It will be slower but you don't care about that.

    Linux is very flexible when it comes to file systems. If you can mount it, you can almost certainly use it as swap.

    Or you could just buy a bigger instance for a few hours while you do the import. That's the nice thing about the cloud.


  • Winner of the 2016 Presidential Election

    @anonymous234 said in Swap space in AWS:

    If you can mount it, you can almost certainly use it as swap.

    :giggity: ???




  • Winner of the 2016 Presidential Election

    @anonymous234 Damn. Maybe I shouldn't have muted that thread.



  • @CarrieVS said in Swap space in AWS:

    I've heard that Oracle publish a pre-built AMI for it but that information seems to be out of date.

    They probably want you to use their own cloud offerings instead.



  • For a moment I thought it was about putting your PC's swap space on AWS. Which, hm, I suppose is technically possible... thinks Cloud-based swap. Why waste precious GBs on your harddrive when you can store it in the cloud? And it'll be protected from system failure too. Add to it the sister service of cloud-based hibernation file! Restore your session instantly on any PC anywhere! I'll need to get this business started asap, there's gold to be made here! :dollar:


  • sockdevs

    And now my brain is asking me how long it will be before people start running the cloud in the cloud.



  • @RaceProUK
    Technically I can already run my Cloud into your Cloud.


  • sockdevs

    @Luhmann said in Swap space in AWS:

    @RaceProUK
    Technically I can already run my Cloud into your Cloud.

    Not without buying me a :cocktail: first! :P



  • @RaceProUK
    To the SkyBar!

    0_1489500431649_upload-55ac75b8-096f-4e12-91e4-2096f4084171



  • @Atazhaia said in Swap space in AWS:

    For a moment I thought it was about putting your PC's swap space on AWS. Which, hm, I suppose is technically possible... thinks Cloud-based swap. Why waste precious GBs on your harddrive when you can store it in the cloud? And it'll be protected from system failure too. Add to it the sister service of cloud-based hibernation file! Restore your session instantly on any PC anywhere! I'll need to get this business started asap, there's gold to be made here!

    RAM as a service.



  • @Zecc
    Or RaaS as we Cloud experts call it


  • sockdevs

    @Luhmann Not RAMaaS?



  • @RaceProUK
    If you don't pay your bills, you'll get No MaaS



  • @izzion
    OoMaaS



  • @RaceProUK
    I need more then one drink before even considering that!



  • @anonymous234 said in Swap space in AWS:

    Or you could just buy a bigger instance for a few hours while you do the import. That's the nice thing about the cloud.

    It's not exactly a one-off import. This is our new project with all teh shinies, continuous integration, infrastructure as code, and so on. Our entire environment is created and provisioned with a single build job; I'm sure it is possible to get that job to spin up the Oracle XE instance and then take it down after the RDS is provisioned, but I'm not sure how to do it so that it fits with the way we're doing everything else.



  • Thanks for your help, guys. It's sorted now.



  • @CarrieVS said in Swap space in AWS:

    It's sorted now

    Descending by free space remaining


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.