Skip to content

dacr/finatra-dummy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

finatra-dummy

This a dummy project, to play with various technologies :

quick starts

  • sbt run starts the server which listens on 0.0.0.0:8888
git clone https://github.com/dacr/finatra-dummy.git
sbt run

run in place in developer mode

As soon as something changes, finatra restarts...

sbt '~re-start'
sbt '~re-start -maxRequestSize=500.megabytes'

ps : brought to us thanks to https://github.com/spray/sbt-revolver sbt plugin

Packaging and quick in-place run

sbt assembly
./runit.sh

./runit.sh -help to view options.

Some requirements

docker run --name elasticsearch -p 9200:9200 -p 9300:9300 elasticsearch

tuning

  • Use java 8
  • System tuning :
    sysctl -w net.ipv4.ip_local_port_range="5000 65535"
    sysctl -w net.ipv4.tcp_tw_reuse=0
    sysctl -w net.ipv4.tcp_tw_recycle=0
    
  • Elasticsearch system mandatory requirements :
    sysctl -w vm.max_map_count=262144

Some various notes

  • some usefull elasticsearch command :
    • curl -s 'http://localhost:9200/_search?q=*' | jq
    • curl -s 'http://localhost:9200/_search?q=*&size=100' | jq
    • curl -XPOST 'http://localhost:9200/dummy/basic' -d '{ "message" : "hello" }'

About

finatra, scala, javascript experiences

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published