I have created an API and successfully deployed it via AWS Elastic Beanstalk. The server is running and works as expected.
However, i downloaded the log file and the error.log shows [warn] xxxx#xxxx: could not build optimal types_hash, you should increase types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size
I am not sure what this warning means and how i fix it. From my understanding this warning is related to NGINX, but that's about as much as i know.
I have looked around and it seems i may be able to resolve this through implementing a .ebextensions directory and then subsequent <filename>.config files but I don't know which files are needed, if any?
I am new to AWS, and to deploying projects in general, so any help would be greatly appreciated!
This can be resolved this by creating a configuration file within
.platform/nginx/conf.d, say10-types-hash.conf:During the deployment process, Elastic Beanstalk copies this file to the
/etc/nginx/conf.ddirectory which the main/etc/nginx/nginx.confconfiguration file includes within itshttpconfig block.You may need to adjust the
4096value. I tested by SSH-ing into an instance and upping the value then runningnginx -tuntil the warning went away.